Redo icon

A free pencil-style redo 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.

redo

01Use it

Use redo

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

<Redo size={24} />

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

JavaScript

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

toSvg(Redo, { 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-redo" data-sketch="" aria-hidden="true"><path d="M15.28 4.52Q17.49 7 19.88 9.32Q17.71 12.13 15.1 14.54" stroke-width="1.504"/><path d="M20.2 9.39Q14.74 9.63 9.28 9.63" stroke-width="1.6"/><path d="M9.86 9.5C9.52 9.53 8.46 9.5 7.81 9.71C7.17 9.91 6.47 10.26 5.99 10.73C5.52 11.2 5.21 11.9 4.99 12.53C4.76 13.16 4.68 13.83 4.65 14.5C4.63 15.17 4.57 15.94 4.82 16.54C5.07 17.14 5.65 17.66 6.16 18.09C6.67 18.51 7.27 18.89 7.88 19.1C8.5 19.3 9.52 19.29 9.85 19.33" stroke-width="1.648"/><path d="M9.29 19.31Q11.86 19.43 14.43 19.36" stroke-width="1.616"/></svg>

Pencil variant

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

<Redo size={32} pencil />

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

02How it's drawn

The recipe for redo

Redo 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 15.5 5 20 9.5 15.5 14;
L 20 9.5 9.5 9.5;
A 9.5 14.5 5 270 90;
L 9.5 19.5 14 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 redo. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil