Braces icon
A free pencil-style braces icon, drawn by code from 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use braces
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 { Braces } from '@matita/icons/react';
<Braces size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="braces" />JavaScript
import { Braces, toSvg } from '@matita/icons';
toSvg(Braces, { 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-braces" data-sketch="" aria-hidden="true"><path d="M9.18 4.15Q8.07 4.21 6.96 4.32Q7.17 7.4 6.94 10.47Q6.08 11.28 5.09 11.92Q5.97 12.7 6.84 13.49Q6.82 16.52 6.82 19.54Q7.91 19.84 9.01 20.08" stroke-width="1.728"/><path d="M14.68 3.99Q15.83 4.08 16.96 4.35Q17.18 7.41 17.03 10.47Q17.88 11.33 18.83 12.06Q17.98 12.7 17.16 13.38Q17.3 16.49 17.04 19.6Q15.88 19.86 14.75 20.2" stroke-width="1.488"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Braces } from '@matita/icons/react';
<Braces size={32} pencil />The file is icons/braces.svg in the package (pencil/braces.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for braces
Braces is not stored as a drawing. It is a recipe of 2 polylines 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 9 4 7 4.5 7 10.5 5 12 7 13.5 7 19.5 9 20;
P 15 4 17 4.5 17 10.5 19 12 17 13.5 17 19.5 15 20
braces as a number: 1261724305
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 braces. Seed 0 is the default.
True pixel sizes.