Gentleface › Buildings › castle
castle icon
castleCastle: castle, fortress, tower, fort. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated castle-portcullis · line-round
The portcullis drops out of the arch and slams down in the gate with a small bounce. It is then winched back up into the wall in three pulls.
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 2.6 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="M5 7L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1C6.276 1 6.512 1.098 6.707 1.293C6.902 1.488 7 1.724 7 2L7 3L9 3L9 2C9 1.724 9.098 1.488 9.293 1.293C9.488 1.098 9.724 1 10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L11 7L13 7L13 6C13 5.724 13.098 5.488 13.293 5.293C13.488 5.098 13.724 5 14 5C14.276 5 14.512 5.098 14.707 5.293C14.902 5.488 15 5.724 15 6L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L11 15C10.746 15 10.5 14.953 10.264 14.86C10.007 14.758 9.781 14.609 9.586 14.414C9.391 14.219 9.242 13.993 9.14 13.736C9.047 13.5 9 13.254 9 13L9 11C9 10.724 8.902 10.488 8.707 10.293C8.512 10.098 8.276 10 8 10C7.724 10 7.488 10.098 7.293 10.293C7.098 10.488 7 10.724 7 11L7 13C7 13.254 6.953 13.5 6.86 13.736C6.758 13.993 6.609 14.219 6.414 14.414C6.219 14.609 5.993 14.758 5.736 14.86C5.5 14.953 5.254 15 5 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5C2.276 5 2.512 5.098 2.707 5.293C2.902 5.488 3 5.724 3 6L3 7L5 7ZM9 4L7 4C6.724 4 6.488 3.902 6.293 3.707C6.098 3.512 6 3.276 6 3L6 7L10 7L10 3C10 3.276 9.902 3.512 9.707 3.707C9.512 3.902 9.276 4 9 4ZM5.707 13.707C5.902 13.512 6 13.276 6 13L6 11C6 10.746 6.047 10.5 6.14 10.264C6.242 10.007 6.391 9.781 6.586 9.586C6.781 9.391 7.007 9.242 7.264 9.14C7.5 9.047 7.746 9 8 9C8.254 9 8.5 9.047 8.736 9.14C8.993 9.242 9.219 9.391 9.414 9.586C9.609 9.781 9.758 10.007 9.86 10.264C9.953 10.5 10 10.746 10 11L10 13C10 13.276 10.098 13.512 10.293 13.707C10.488 13.902 10.724 14 11 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L11 8C10.815 8 10.649 7.956 10.5 7.869C10.416 7.953 10.301 8 10.182 8L5.818 8C5.699 8 5.584 7.953 5.5 7.869C5.351 7.956 5.185 8 5 8L3 8C2.724 8 2.488 7.902 2.293 7.707C2.098 7.512 2 7.276 2 7L2 13C2 13.276 2.098 13.512 2.293 13.707C2.488 13.902 2.724 14 3 14L5 14C5.276 14 5.512 13.902 5.707 13.707Z"/></svg>
// Gentleface "castle" (line-round), MIT. https://gentleface.com/icons/castle
import type { SVGProps } from 'react';
export function CastleIcon(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="M5 7L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1C6.276 1 6.512 1.098 6.707 1.293C6.902 1.488 7 1.724 7 2L7 3L9 3L9 2C9 1.724 9.098 1.488 9.293 1.293C9.488 1.098 9.724 1 10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L11 7L13 7L13 6C13 5.724 13.098 5.488 13.293 5.293C13.488 5.098 13.724 5 14 5C14.276 5 14.512 5.098 14.707 5.293C14.902 5.488 15 5.724 15 6L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L11 15C10.746 15 10.5 14.953 10.264 14.86C10.007 14.758 9.781 14.609 9.586 14.414C9.391 14.219 9.242 13.993 9.14 13.736C9.047 13.5 9 13.254 9 13L9 11C9 10.724 8.902 10.488 8.707 10.293C8.512 10.098 8.276 10 8 10C7.724 10 7.488 10.098 7.293 10.293C7.098 10.488 7 10.724 7 11L7 13C7 13.254 6.953 13.5 6.86 13.736C6.758 13.993 6.609 14.219 6.414 14.414C6.219 14.609 5.993 14.758 5.736 14.86C5.5 14.953 5.254 15 5 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5C2.276 5 2.512 5.098 2.707 5.293C2.902 5.488 3 5.724 3 6L3 7L5 7ZM9 4L7 4C6.724 4 6.488 3.902 6.293 3.707C6.098 3.512 6 3.276 6 3L6 7L10 7L10 3C10 3.276 9.902 3.512 9.707 3.707C9.512 3.902 9.276 4 9 4ZM5.707 13.707C5.902 13.512 6 13.276 6 13L6 11C6 10.746 6.047 10.5 6.14 10.264C6.242 10.007 6.391 9.781 6.586 9.586C6.781 9.391 7.007 9.242 7.264 9.14C7.5 9.047 7.746 9 8 9C8.254 9 8.5 9.047 8.736 9.14C8.993 9.242 9.219 9.391 9.414 9.586C9.609 9.781 9.758 10.007 9.86 10.264C9.953 10.5 10 10.746 10 11L10 13C10 13.276 10.098 13.512 10.293 13.707C10.488 13.902 10.724 14 11 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L11 8C10.815 8 10.649 7.956 10.5 7.869C10.416 7.953 10.301 8 10.182 8L5.818 8C5.699 8 5.584 7.953 5.5 7.869C5.351 7.956 5.185 8 5 8L3 8C2.724 8 2.488 7.902 2.293 7.707C2.098 7.512 2 7.276 2 7L2 13C2 13.276 2.098 13.512 2.293 13.707C2.488 13.902 2.724 14 3 14L5 14C5.276 14 5.512 13.902 5.707 13.707Z" />
</svg>
);
}Vue: see /icons/castle.md
Svelte: see /icons/castle.md
HTML img: see /icons/castle.md
CSS: see /icons/castle.md
Data URL: see /icons/castle.md
Sprite: see /icons/castle.md
SwiftUI: see /icons/castle.md
Compose: see /icons/castle.md
Android XML: see /icons/castle.md
Flutter: see /icons/castle.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 { CastleIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- castle, fortress, tower, fort, palace, citadel
- Alternatives
tower-control: an air traffic control towerantenna: a radio or cell towerlighthouse: a lighthouse
- Don’t confuse with
chess-rook: the chess piece, not a castle
- Not for
- chess rook (use
chess-rook): castle is the building or a landmark
- chess rook (use
- Tags
- castle, fortress, fort, tower, kingdom, medieval, landmark, palace
- Category
- Buildings
- Component name
CastleIcon- History
- added
- released in 0.1.0
- 20 px drawn, 24 px drawn
- Since
- version 0.1.0
More buildings icons
arch balcony building building-alert building-apartment building-check building-gear building-lock building-off building-pencil building-plus building-search building-x buildings city cottage · all buildings icons
For agents
Metadata: /icons/castle.json · Markdown: /icons/castle.md · SVG: https://gentleface.com/svg/{style}/16/castle.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/castle.png