Pencil icon
A free pencil-style pencil icon, drawn by code from 1 closed shape and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use pencil
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 { Pencil } from '@matita/icons/react';
<Pencil size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="pencil" />JavaScript
import { Pencil, toSvg } from '@matita/icons';
toSvg(Pencil, { 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-pencil" data-sketch="" aria-hidden="true"><path d="M16.53 3.69Q18.37 5.8 20.5 7.63Q14.17 13.86 7.88 20.13Q5.78 20.33 3.7 20.63Q3.99 18.38 3.89 16.12Q10.46 10.15 16.53 3.69Q17.23 4.31 17.86 5.01" stroke-width="1.776"/><path d="M13.9 5.61Q16.1 7.76 18.25 9.96" stroke-width="1.696"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Pencil } from '@matita/icons/react';
<Pencil size={32} pencil />The file is icons/pencil.svg in the package (pencil/pencil.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for pencil
Pencil is not stored as a drawing. It is a recipe of 1 closed shape 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.
Z 16.5 3.5 20.5 7.5 8 20 3.5 20.5 4 16;
L 14 6 18 10
pencil as a number: 2019719684
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 pencil. Seed 0 is the default.
True pixel sizes.