Toast icon

New Added in v0.6.0

A free pencil-style toast icon, drawn by code from 3 lines. Use it as an SVG, a React component, or by name. MIT licensed.

toast

01Use it

Use toast

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

<Toast size={24} />

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

JavaScript

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

toSvg(Toast, { 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-toast" data-sketch="" aria-hidden="true"><path d="M5.56 21C5.31 17.2 5.33 14.95 5.45 12.35C1.86 11.32 2.37 4.44 8.33 4.39C10.85 4.65 12.88 4.56 15.6 4.43C21.44 4.44 22.02 11.33 18.46 12.61C18.43 14.94 18.47 16.82 18.58 20.64C16.11 20.38 8.03 20.33 5.13 20.72" stroke-width="1.648"/><path d="M7.67 11.29Q9.32 8.97 11.01 6.68" stroke-width="1.536"/><path d="M12.64 17.7Q14.23 15.37 16.14 13.28" stroke-width="1.536"/><path d="M9.74 15.75Q12.81 12.32 15.26 8.44" stroke-width="1.664"/></svg>

Pencil variant

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

<Toast size={32} pencil />

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

02How it's drawn

The recipe for toast

Toast is not stored as a drawing. It is a recipe of 3 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
B 5.5 20.5 5.5 17 5.5 15 5.5 12.5 2 11.5 2.5 4.5 8.5 4.5 11 4.5 13 4.5 15.5 4.5 21.5 4.5 22 11.5 18.5 12.5 18.5 15 18.5 17 18.5 20.5 16 20.5 8 20.5 5.5 20.5;
L 8 11 11 7;
L 13 17.5 16 13.5;
L 10 15.5 15 8.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 toast. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil