Gentleface › Games & sports › sword
sword icon
swordSword: sword, weapon, rpg, role playing game. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated sword-slash · line-round
The sword is raised back, then slashes down to the right so fast that its tip leaves the edge, leaving a swoosh along its path. It recoils and comes back to guard.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 1.8 s. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.385 1.222C12.742 1.074 13.114 1 13.5 1C13.691 1 13.875 1.035 14.052 1.105C14.245 1.182 14.414 1.293 14.561 1.439C14.707 1.586 14.818 1.755 14.895 1.948C14.965 2.125 15 2.309 15 2.5C15 2.886 14.926 3.258 14.778 3.615C14.63 3.972 14.42 4.287 14.146 4.561L8.207 10.5L9.854 12.146C9.953 12.246 10.003 12.364 10.003 12.5C10.003 12.636 9.953 12.754 9.854 12.854C9.754 12.953 9.636 13.003 9.5 13.003C9.364 13.003 9.246 12.953 9.146 12.854L6.5 10.207L3.207 13.5L3.854 14.146C3.953 14.246 4.003 14.364 4.003 14.5C4.003 14.636 3.953 14.754 3.854 14.854C3.756 14.951 3.638 15 3.5 15C3.362 15 3.244 14.951 3.146 14.854L1.146 12.854C1.047 12.754 0.997 12.636 0.997 12.5C0.997 12.364 1.047 12.246 1.146 12.146C1.244 12.049 1.362 12 1.5 12C1.638 12 1.756 12.049 1.854 12.146L2.5 12.793L5.793 9.5L5.146 8.854L5.146 8.853L3.146 6.854C3.047 6.754 2.997 6.636 2.997 6.5C2.997 6.364 3.047 6.246 3.146 6.146C3.244 6.049 3.362 6 3.5 6C3.638 6 3.756 6.049 3.854 6.146L5.5 7.793L11.439 1.854C11.713 1.58 12.028 1.37 12.385 1.222ZM13.439 3.854C13.619 3.674 13.757 3.467 13.854 3.233C13.951 2.998 14 2.754 14 2.5C14 2.362 13.951 2.244 13.854 2.146C13.756 2.049 13.638 2 13.5 2C13.246 2 13.002 2.049 12.767 2.146C12.533 2.243 12.326 2.381 12.146 2.561L6.207 8.5L7.5 9.793L13.439 3.854Z"/></svg>
// Gentleface "sword" (line-round), MIT. https://gentleface.com/icons/sword
import type { SVGProps } from 'react';
export function SwordIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M12.385 1.222C12.742 1.074 13.114 1 13.5 1C13.691 1 13.875 1.035 14.052 1.105C14.245 1.182 14.414 1.293 14.561 1.439C14.707 1.586 14.818 1.755 14.895 1.948C14.965 2.125 15 2.309 15 2.5C15 2.886 14.926 3.258 14.778 3.615C14.63 3.972 14.42 4.287 14.146 4.561L8.207 10.5L9.854 12.146C9.953 12.246 10.003 12.364 10.003 12.5C10.003 12.636 9.953 12.754 9.854 12.854C9.754 12.953 9.636 13.003 9.5 13.003C9.364 13.003 9.246 12.953 9.146 12.854L6.5 10.207L3.207 13.5L3.854 14.146C3.953 14.246 4.003 14.364 4.003 14.5C4.003 14.636 3.953 14.754 3.854 14.854C3.756 14.951 3.638 15 3.5 15C3.362 15 3.244 14.951 3.146 14.854L1.146 12.854C1.047 12.754 0.997 12.636 0.997 12.5C0.997 12.364 1.047 12.246 1.146 12.146C1.244 12.049 1.362 12 1.5 12C1.638 12 1.756 12.049 1.854 12.146L2.5 12.793L5.793 9.5L5.146 8.854L5.146 8.853L3.146 6.854C3.047 6.754 2.997 6.636 2.997 6.5C2.997 6.364 3.047 6.246 3.146 6.146C3.244 6.049 3.362 6 3.5 6C3.638 6 3.756 6.049 3.854 6.146L5.5 7.793L11.439 1.854C11.713 1.58 12.028 1.37 12.385 1.222ZM13.439 3.854C13.619 3.674 13.757 3.467 13.854 3.233C13.951 2.998 14 2.754 14 2.5C14 2.362 13.951 2.244 13.854 2.146C13.756 2.049 13.638 2 13.5 2C13.246 2 13.002 2.049 12.767 2.146C12.533 2.243 12.326 2.381 12.146 2.561L6.207 8.5L7.5 9.793L13.439 3.854Z" />
</svg>
);
}Vue: see /icons/sword.md
Svelte: see /icons/sword.md
HTML img: see /icons/sword.md
CSS: see /icons/sword.md
Data URL: see /icons/sword.md
Sprite: see /icons/sword.md
SwiftUI: see /icons/sword.md
Compose: see /icons/sword.md
Android XML: see /icons/sword.md
Flutter: see /icons/sword.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { SwordIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- sword, weapon, rpg, role playing game, melee
- Alternatives
swords: a battle, combat or versus
- Tags
- sword, blade, weapon, attack, fight, rpg, fantasy, knight, game
- Category
- Games & sports
- Component name
SwordIcon- History
- added
- released in 0.1.0
- changed in 0.2.0
- 20 px drawn, 24 px drawn, 16 px redrawn
- Since
- version 0.1.0
Family 1
More games & sports icons
alien american-football american-football-off badminton barbell barbell-off baseball baseball-bat baseball-helmet basketball basketball-court basketball-hoop beach-ball bench-press billiards bomb · all games & sports icons
For agents
Metadata: /icons/sword.json · Markdown: /icons/sword.md · SVG: https://gentleface.com/svg/{style}/16/sword.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/sword.png