Brush icon
A free pencil-style brush icon, drawn by code from 1 line, 1 closed shape and 2 curves. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use brush
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 { Brush } from '@matita/icons/react';
<Brush size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="brush" />JavaScript
import { Brush, toSvg } from '@matita/icons';
toSvg(Brush, { 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-brush" data-sketch="" aria-hidden="true"><path d="M20.92 3.34Q16.02 7.68 11.56 12.46" stroke-width="1.456"/><path d="M10 10.41Q11.78 12.21 13.46 14.11Q12.14 15.28 10.97 16.62Q9.34 14.64 7.44 12.91Q8.83 11.78 10 10.41Q10.38 10.83 10.77 11.23" stroke-width="1.696"/><path d="M7.63 12.77Q4.43 15.04 3.38 20.79" stroke-width="1.6"/><path d="M3.36 20.71Q9.03 19.7 11.2 16.4" stroke-width="1.728"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Brush } from '@matita/icons/react';
<Brush size={32} pencil />The file is icons/brush.svg in the package (pencil/brush.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for brush
Brush is not stored as a drawing. It is a recipe of 1 line, 1 closed shape and 2 curves 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.
L 20.5 3.5 11.75 12.25;
Z 10 10.5 13.5 14 11 16.5 7.5 13;
Q 7.5 13 4.5 15 3.5 20.5;
Q 3.5 20.5 9 19.5 11 16.5
brush as a number: 4207177203
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 brush. Seed 0 is the default.
True pixel sizes.