Wallet icon

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

wallet

01Use it

Use wallet

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

<Wallet size={24} />

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

JavaScript

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

toSvg(Wallet, { 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-wallet" data-sketch="" aria-hidden="true"><path d="M20.73 6.33Q12.91 6.83 5.08 6.37" stroke-width="1.504"/><path d="M5.72 6.55C5.61 6.56 5.28 6.53 5.1 6.61C4.92 6.68 4.81 6.87 4.62 6.98C4.44 7.1 4.11 7.14 4 7.31C3.89 7.48 3.91 7.79 3.95 8C4 8.21 4.17 8.39 4.28 8.56C4.39 8.73 4.48 8.89 4.61 9.03C4.75 9.17 4.92 9.33 5.1 9.38C5.28 9.43 5.6 9.34 5.7 9.33" stroke-width="1.488"/><path d="M3.86 8.06Q12.1 8.49 20.34 8.18Q20.27 13.79 20.69 19.38Q12.3 19.84 3.9 19.61Q4.36 13.83 3.86 8.06Q4.58 8.13 5.3 8.07" stroke-width="1.536"/><path d="M20.69 11.68Q18.27 11.65 15.86 11.66Q16.11 13.57 16.16 15.5Q18.34 15.47 20.5 15.7" stroke-width="1.376"/><path d="M18.18 13.62l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<Wallet size={32} pencil />

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

02How it's drawn

The recipe for wallet

Wallet is not stored as a drawing. It is a recipe of 2 polylines, 1 arc, 1 closed shape and 1 dot 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 20 6.5 5.5 6.5;
A 5.5 8 1.5 270 90;
Z 4 8 20.5 8 20.5 19.5 4 19.5;
P 20.5 11.5 16 11.5 16 15.5 20.5 15.5;
O 18 13.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 wallet. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil