Blocks icon
New Added in v0.7.0
A free pencil-style blocks icon, drawn by code from 3 rectangles. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use blocks
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 { Blocks } from '@matita/icons/react';
<Blocks size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="blocks" />JavaScript
import { Blocks, toSvg } from '@matita/icons';
toSvg(Blocks, { 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-blocks" data-sketch="" aria-hidden="true"><path d="M2 14.33Q9.32 14.82 16.64 14.6M16.18 13.37Q16.33 17.37 16.02 21.38M16.97 20.87Q9.44 21.16 1.91 21.12M2.92 22.36Q2.92 17.76 2.93 13.17" stroke-width="1.776"/><path d="M1.76 8.09Q6.31 8.33 10.85 8.15M9.63 7.32Q9.99 14.42 9.3 21.53M10.75 21.1Q6.19 21.35 1.64 21.15M3.09 22.44Q3.07 14.53 3.18 6.62" stroke-width="1.584"/><path d="M13.31 2.89Q17.36 2.9 21.42 3.1M21.03 2.2Q20.75 6.13 20.99 10.06M21.93 9.56Q17.8 9.54 13.66 9.5M14.34 10.23Q14.44 6.14 14.49 2.04" stroke-width="1.616"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Blocks } from '@matita/icons/react';
<Blocks size={32} pencil />The file is icons/blocks.svg in the package (pencil/blocks.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for blocks
Blocks is not stored as a drawing. It is a recipe of 3 rectangles 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.
R 3 14.5 13 6.5;
R 3 8 6.5 13;
R 14.5 3 6.5 6.5
blocks as a number: 369992131
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 blocks. Seed 0 is the default.
blocks from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/blocks.svg.
True pixel sizes.