Paintbrush icon

New Added in v0.7.0

A free pencil-style paintbrush icon, drawn by code from 2 bezier curves and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.

paintbrush

01Use it

Use paintbrush

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 { Paintbrush } from '@matita/icons/react';

<Paintbrush size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="paintbrush" />

JavaScript

import { Paintbrush, toSvg } from '@matita/icons';

toSvg(Paintbrush, { size: 24 });   // SVG string

SVG

<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-paintbrush" data-sketch="" aria-hidden="true"><path d="M8.02 10.08C10.26 12.2 12.05 13.88 13.55 15.56C15.11 15.95 15.79 14.99 15.75 13.75C15.17 13.04 14.59 12.35 13.85 11.8C16.39 9.16 18.32 7.28 20.56 4.67C21.06 3.23 20.84 2.94 19.18 3.15C16.82 5.87 14.91 7.76 12.17 10.23C11.67 9.44 10.99 8.95 10.23 8.42C8.93 8.31 8.06 9.09 8.07 10.78" stroke-width="1.472"/><path d="M9.14 10.85C7.17 12.61 6.91 13.85 3.07 15.04C2.7 15.17 6.82 17.95 7.97 20.31C8.13 21.07 11.43 16.56 13.19 14.95" stroke-width="1.664"/><path d="M5.92 17.09Q8.41 17.16 10.9 17.35" stroke-width="1.632"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { Paintbrush } from '@matita/icons/react';

<Paintbrush size={32} pencil />

The file is icons/paintbrush.svg in the package (pencil/paintbrush.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for paintbrush

Paintbrush is not stored as a drawing. It is a recipe of 2 bezier curves and 1 line 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.

A · Recipe
B 8.25 10.25 10.08 12.08 11.92 13.92 13.75 15.75 15.08 15.75 15.75 15.08 15.75 13.75 15.08 13.08 14.42 12.42 13.75 11.75 16.25 9.25 18.25 7.25 20.75 4.75 21.25 3.42 20.75 2.92 19.25 3.25 16.75 5.75 14.75 7.75 12.25 10.25 11.58 9.58 10.92 8.92 10.25 8.25 8.92 8.25 8.25 8.92 8.25 10.25;
B 8.75 11.25 7.25 12.5 7 13.75 3 15 2.76 15.07 6.7 17.89 8 20.5 8.25 21 11.42 16.58 12.75 15.25;
L 6 17.25 10.5 17.25
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of paintbrush. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

paintbrush from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/paintbrush.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil