Receipt icon

New Added in v0.4.0

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

receipt

01Use it

Use receipt

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

<Receipt size={24} />

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

JavaScript

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

toSvg(Receipt, { 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-receipt" data-sketch="" aria-hidden="true"><path d="M5.54 3.43Q12.02 3.65 18.51 3.64Q18.5 12.41 18.69 21.19Q17.5 20.5 16.42 19.64Q15.34 20.34 14.32 21.12Q13.2 20.32 11.98 19.69Q10.73 20.49 9.37 21.08Q8.38 20.32 7.33 19.65Q6.29 20.22 5.34 20.94Q5.24 12.18 5.54 3.43Q6.37 3.37 7.19 3.46" stroke-width="1.44"/><path d="M8.82 8.14Q12.15 7.83 15.47 8.03" stroke-width="1.504"/><path d="M8.47 11.54Q11.89 11.36 15.31 11.64" stroke-width="1.744"/><path d="M8.82 14.84Q10.76 14.87 12.69 14.9" stroke-width="1.696"/></svg>

Pencil variant

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

<Receipt size={32} pencil />

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

02How it's drawn

The recipe for receipt

Receipt is not stored as a drawing. It is a recipe of 1 closed shape and 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
Z 5.5 3.5 18.5 3.5 18.5 21 16.5 19.5 14.5 21 12 19.5 9.5 21 7.5 19.5 5.5 21;
L 9 8 15 8;
L 9 11.5 15 11.5;
L 9 15 12.5 15
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 receipt. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil