Pen nib icon
Added in v0.2.0
A free pencil-style pen nib icon, drawn by code from 1 closed shape, 1 polyline, 1 line and 1 circle. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use pen-nib
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 { PenNib } from '@matita/icons/react';
<PenNib size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="pen-nib" />JavaScript
import { PenNib, toSvg } from '@matita/icons';
toSvg(PenNib, { 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-pen-nib" data-sketch="" aria-hidden="true"><path d="M12.1 21.2Q9.06 16.66 5.46 12.56Q7.08 10.04 8.57 7.44Q11.95 7.48 15.34 7.4Q16.87 9.98 18.3 12.61Q14.99 16.76 12.1 21.2Q11.71 20.6 11.23 20.07" stroke-width="1.712"/><path d="M8.93 7.88Q9.19 5.69 9.12 3.48Q11.97 3.55 14.82 3.41Q14.9 5.65 15.22 7.86" stroke-width="1.488"/><path d="M12 20.24Q12.05 16.46 11.81 12.69" stroke-width="1.552"/><path d="M11.18 12.62C11.11 12.56 10.84 12.38 10.73 12.22C10.62 12.06 10.56 11.86 10.51 11.66C10.47 11.46 10.44 11.22 10.49 11.03C10.54 10.83 10.68 10.63 10.82 10.46C10.96 10.29 11.15 10.12 11.36 10.02C11.56 9.92 11.82 9.86 12.06 9.85C12.3 9.85 12.57 9.9 12.78 10C13 10.11 13.19 10.28 13.35 10.46C13.51 10.64 13.65 10.85 13.73 11.08C13.8 11.31 13.86 11.58 13.83 11.82C13.8 12.06 13.68 12.31 13.54 12.53C13.4 12.75 13.22 12.98 13 13.13C12.78 13.28 12.48 13.38 12.21 13.41C11.94 13.44 11.64 13.38 11.37 13.3C11.1 13.23 10.8 13.12 10.58 12.95C10.36 12.78 10.16 12.53 10.05 12.27C9.93 12.01 9.92 11.56 9.9 11.42" stroke-width="1.392"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { PenNib } from '@matita/icons/react';
<PenNib size={32} pencil />The file is icons/pen-nib.svg in the package (pencil/pen-nib.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for pen-nib
Pen nib is not stored as a drawing. It is a recipe of 1 closed shape, 1 polyline, 1 line and 1 circle 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 12 21 5.5 12.5 8.5 7.5 15.5 7.5 18.5 12.5;
P 9 7.5 9 3.5 15 3.5 15 7.5;
L 12 20 12 13;
C 12 11.5 1.4
pen-nib as a number: 1726399564
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, 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 pen-nib. Seed 0 is the default.
pen-nib from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/pen-nib.svg.
True pixel sizes.