Plug icon

New Added in v0.4.0

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

plug

01Use it

Use plug

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

<Plug size={24} />

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

JavaScript

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

toSvg(Plug, { 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-plug" data-sketch="" aria-hidden="true"><path d="M9.07 2.95Q9.26 5.51 9.06 8.07" stroke-width="1.488"/><path d="M15.1 2.53Q15.09 5.48 14.94 8.43" stroke-width="1.392"/><path d="M6.56 8.17Q11.94 7.85 17.34 7.8Q17.22 10.44 17.48 13.07Q14.59 14.99 11.82 17.08Q9.27 14.85 6.51 12.89Q6.41 10.53 6.56 8.17Q7.43 8.18 8.3 8.11" stroke-width="1.808"/><path d="M12.19 16.32Q12.17 18.83 12.01 21.35" stroke-width="1.52"/></svg>

Pencil variant

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

<Plug size={32} pencil />

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

02How it's drawn

The recipe for plug

Plug is not stored as a drawing. It is a recipe of 3 lines and 1 closed shape 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
L 9 3 9 8;
L 15 3 15 8;
Z 6.5 8 17.5 8 17.5 13 12 17 6.5 13;
L 12 17 12 21
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 plug. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil