Building icon
New Added in v0.4.0
A free pencil-style building icon, drawn by code from 2 polylines, 1 line and 4 dots. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use building
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { Building } from '@matita/icons/react';
<Building size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="building" />JavaScript
import { Building, toSvg } from '@matita/icons';
toSvg(Building, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-building" data-sketch="" aria-hidden="true"><path d="M5.52 20.93Q5.93 12.21 5.35 3.49Q11.98 3.54 18.62 3.44Q18.15 12.27 18.47 21.11" stroke-width="1.424"/><path d="M2.82 20.48Q12.01 20.88 21.2 20.33" stroke-width="1.792"/><path d="M10.01 20.58Q9.83 18.58 9.91 16.57Q11.94 16.63 13.96 16.69Q13.92 18.72 14.05 20.75" stroke-width="1.696"/><path d="M9.34 8.17l.01 0M14.63 8.14l.01 0M9.51 12.17l.01 0M14.58 12.01l.01 0" stroke-width="2.48"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Building } from '@matita/icons/react';
<Building size={32} pencil />The file is icons/building.svg in the package (pencil/building.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for building
Building is not stored as a drawing. It is a recipe of 2 polylines, 1 line and 4 dots on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
P 5.5 20.5 5.5 3.5 18.5 3.5 18.5 20.5;
L 3 20.5 21 20.5;
O 9.5 8;
O 14.5 8;
O 9.5 12;
O 14.5 12;
P 10 20.5 10 16.5 14 16.5 14 20.5
building as a number: 954139509
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of building. Seed 0 is the default.
building from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/building.svg.
True pixel sizes.