History icon

Added in v0.3.0

A free pencil-style history icon, drawn by code from 1 arc and 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.

history

01Use it

Use history

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

<History size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="history" />

JavaScript

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

toSvg(History, { 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-history" data-sketch="" aria-hidden="true"><path d="M3.46 11.25C3.57 11.84 3.7 13.66 4.09 14.77C4.47 15.88 5.01 17.04 5.79 17.91C6.57 18.78 7.67 19.53 8.76 19.97C9.84 20.41 11.15 20.6 12.32 20.54C13.49 20.47 14.75 20.14 15.78 19.6C16.81 19.07 17.74 18.21 18.49 17.31C19.24 16.41 19.93 15.33 20.27 14.22C20.61 13.1 20.75 11.75 20.54 10.6C20.33 9.46 19.7 8.31 19.04 7.33C18.38 6.34 17.57 5.32 16.59 4.7C15.61 4.08 14.33 3.77 13.16 3.6C11.99 3.43 10.67 3.38 9.55 3.7C8.44 4.03 7.36 4.8 6.47 5.57C5.57 6.35 4.58 7.9 4.2 8.37" stroke-width="1.568"/><path d="M3.69 3.2Q3.77 6 3.86 8.8Q6.49 8.58 9.13 8.74" stroke-width="1.44"/><path d="M12.11 7.44Q12.06 9.78 11.99 12.13Q13.96 13.25 15.92 14.39" stroke-width="1.728"/></svg>

Pencil variant

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

<History size={32} pencil />

The file is icons/history.svg in the package (pencil/history.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for history

History is not stored as a drawing. It is a recipe of 1 arc 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.

A · Recipe
A 12 12 8.5 180 -150;
P 3.8 3.8 4 9 8.8 8.8;
P 12 7.5 12 12 15.5 14
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 history. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

history from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/history.svg.

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

True pixel sizes.

Ink
Pencil