Undo icon

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

undo

01Use it

Use undo

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

<Undo size={24} />

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

JavaScript

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

toSvg(Undo, { 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-undo" data-sketch="" aria-hidden="true"><path d="M8.49 4.65Q6.11 7.11 3.85 9.68Q6.25 12 8.84 14.12" stroke-width="1.616"/><path d="M3.64 9.32Q9.28 9.67 14.92 9.62" stroke-width="1.424"/><path d="M13.76 9.44C14.11 9.48 15.23 9.48 15.9 9.7C16.56 9.91 17.22 10.29 17.74 10.74C18.26 11.2 18.73 11.81 19.02 12.43C19.31 13.06 19.48 13.81 19.48 14.5C19.48 15.19 19.31 15.93 19.04 16.58C18.77 17.22 18.38 17.93 17.85 18.38C17.33 18.84 16.58 19.12 15.9 19.31C15.22 19.5 14.12 19.5 13.76 19.53" stroke-width="1.584"/><path d="M14.86 19.43Q12.18 19.31 9.51 19.4" stroke-width="1.632"/></svg>

Pencil variant

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

<Undo size={32} pencil />

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

02How it's drawn

The recipe for undo

Undo is not stored as a drawing. It is a recipe of 1 polyline, 2 lines and 1 arc 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
P 8.5 5 4 9.5 8.5 14;
L 4 9.5 14.5 9.5;
A 14.5 14.5 5 270 450;
L 14.5 19.5 10 19.5
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 undo. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil