Grid 3x3 icon

A free pencil-style grid 3x3 icon, drawn by code from 1 rectangle and 4 lines. Use it as an SVG, a React component, or by name. MIT licensed.

grid-3x3

01Use it

Use grid-3x3

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 { Grid3x3 } from '@matita/icons/react';

<Grid3x3 size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="grid-3x3" />

JavaScript

import { Grid3x3, toSvg } from '@matita/icons';

toSvg(Grid3x3, { size: 24 });   // SVG string

SVG

<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-grid-3x3" data-sketch="" aria-hidden="true"><path d="M2.62 4.15Q11.66 3.33 20.7 3.81M19.82 2.77Q20.23 11.9 20.2 21.04M21.03 20.14Q12.24 20.39 3.44 20.08M4.02 20.86Q4.3 11.92 4.11 2.99" stroke-width="1.744"/><path d="M9.23 3.89Q9.67 12.09 9.11 20.29" stroke-width="1.6"/><path d="M14.7 3.72Q14.42 11.94 14.58 20.15" stroke-width="1.664"/><path d="M3.58 9.48Q12.04 9.57 20.49 9.38" stroke-width="1.648"/><path d="M3.39 14.89Q11.96 14.37 20.53 14.66" stroke-width="1.712"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { Grid3x3 } from '@matita/icons/react';

<Grid3x3 size={32} pencil />

The file is icons/grid-3x3.svg in the package (pencil/grid-3x3.svg for the pencil variant). Matita 0.2.1.

02How it's drawn

The recipe for grid-3x3

Grid 3x3 is not stored as a drawing. It is a recipe of 1 rectangle and 4 lines 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.

A · Recipe
R 4 4 16 16;
L 9.3 4 9.3 20;
L 14.7 4 14.7 20;
L 4 9.3 20 9.3;
L 4 14.7 20 14.7
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of grid-3x3. Seed 0 is the default.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil