Dimension icon
A free pencil-style dimension icon, drawn by code from 3 lines and 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use dimension
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 { Dimension } from '@matita/icons/react';
<Dimension size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="dimension" />JavaScript
import { Dimension, toSvg } from '@matita/icons';
toSvg(Dimension, { 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-dimension" data-sketch="" aria-hidden="true"><path d="M3.64 6.54Q3.49 12 3.68 17.47" stroke-width="1.792"/><path d="M20.32 6.42Q19.99 11.82 20.32 17.21" stroke-width="1.616"/><path d="M3.73 11.84Q12.14 11.5 20.55 12.1" stroke-width="1.728"/><path d="M7.67 9.25Q5.73 10.53 3.95 12.02Q5.54 13.51 7.29 14.8" stroke-width="1.536"/><path d="M16.77 9.38Q18.57 10.5 20.2 11.86Q18.5 13.29 16.92 14.86" stroke-width="1.712"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Dimension } from '@matita/icons/react';
<Dimension size={32} pencil />The file is icons/dimension.svg in the package (pencil/dimension.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for dimension
Dimension is not stored as a drawing. It is a recipe of 3 lines and 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.
L 3.5 7 3.5 17;
L 20.5 7 20.5 17;
L 4 12 20 12;
P 7 9.5 4 12 7 14.5;
P 17 9.5 20 12 17 14.5
dimension as a number: 1728801507
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 dimension. Seed 0 is the default.
True pixel sizes.