Scale icon
New Added in v0.5.0
A free pencil-style scale icon, drawn by code from 7 lines and 2 arcs. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use scale
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 { Scale } from '@matita/icons/react';
<Scale size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="scale" />JavaScript
import { Scale, toSvg } from '@matita/icons';
toSvg(Scale, { 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-scale" data-sketch="" aria-hidden="true"><path d="M11.9 3.86Q12.14 12 11.87 20.14" stroke-width="1.728"/><path d="M5.93 20.35Q11.87 20.25 17.82 20.42" stroke-width="1.648"/><path d="M4.45 7.13Q12.26 6.94 20.07 6.96" stroke-width="1.44"/><path d="M4.73 6.71Q3.03 10.41 1.82 14.28" stroke-width="1.504"/><path d="M4.34 6.75Q5.85 10.44 7.11 14.22" stroke-width="1.44"/><path d="M7.03 13.67C6.99 13.84 6.91 14.38 6.8 14.7C6.68 15.02 6.55 15.36 6.33 15.61C6.11 15.85 5.79 16.04 5.48 16.17C5.18 16.3 4.83 16.36 4.5 16.37C4.17 16.38 3.8 16.35 3.49 16.23C3.18 16.11 2.86 15.9 2.61 15.66C2.37 15.41 2.11 15.08 2.02 14.76C1.94 14.43 2.09 13.87 2.11 13.69" stroke-width="1.808"/><path d="M19.68 6.53Q18.44 10.47 16.8 14.28" stroke-width="1.44"/><path d="M19.43 6.87Q20.54 10.68 21.98 14.38" stroke-width="1.392"/><path d="M22.1 13.72C22.04 13.89 21.88 14.42 21.74 14.73C21.61 15.04 21.46 15.31 21.26 15.59C21.07 15.87 20.86 16.28 20.57 16.4C20.28 16.53 19.85 16.36 19.5 16.35C19.15 16.34 18.77 16.46 18.45 16.36C18.12 16.26 17.77 16.02 17.56 15.75C17.35 15.48 17.31 15.08 17.2 14.74C17.09 14.41 16.95 13.89 16.9 13.72" stroke-width="1.392"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Scale } from '@matita/icons/react';
<Scale size={32} pencil />The file is icons/scale.svg in the package (pencil/scale.svg for the pencil variant). Matita 0.5.1.
02How it's drawn
The recipe for scale
Scale is not stored as a drawing. It is a recipe of 7 lines and 2 arcs 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 12 4 12 20;
L 6.5 20.5 17.5 20.5;
L 4.5 7 19.5 7;
L 4.5 7 2 14;
L 4.5 7 7 14;
A 4.5 14 2.5 0 180;
L 19.5 7 17 14;
L 19.5 7 22 14;
A 19.5 14 2.5 0 180
scale as a number: 2190941297
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 scale. Seed 0 is the default.
scale from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/scale.svg.
True pixel sizes.