Unlock icon

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

unlock

01Use it

Use unlock

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

<Unlock size={24} />

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

JavaScript

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

toSvg(Unlock, { 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-unlock" data-sketch="" aria-hidden="true"><path d="M4.56 10.89Q12.32 11.31 20.08 10.89M19.02 9.81Q19.06 15.7 18.84 21.58M20.13 20.66Q12.09 20.29 4.05 20.39M4.82 21.36Q4.97 15.58 5.17 9.8" stroke-width="1.664"/><path d="M8.15 11.1Q8.14 9.33 8.13 7.56" stroke-width="1.456"/><path d="M8.09 8.42C8.08 8.14 7.9 7.26 8.04 6.74C8.18 6.22 8.57 5.73 8.92 5.3C9.27 4.88 9.67 4.4 10.15 4.17C10.63 3.94 11.25 3.95 11.8 3.93C12.34 3.92 12.92 3.92 13.42 4.11C13.91 4.29 14.37 4.66 14.76 5.04C15.15 5.41 15.59 6.14 15.76 6.36" stroke-width="1.744"/><path d="M12.06 15.63l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<Unlock size={32} pencil />

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

02How it's drawn

The recipe for unlock

Unlock is not stored as a drawing. It is a recipe of 1 rectangle, 1 polyline, 1 arc 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
R 5 11 14 9.5;
P 8 11 8 7.8;
A 12 7.8 4 180 330;
O 12 15.8
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 unlock. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil