Power icon

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

power

01Use it

Use power

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

<Power size={24} />

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

JavaScript

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

toSvg(Power, { 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-power" data-sketch="" aria-hidden="true"><path d="M14.9 6.09C15.32 6.4 16.75 7.17 17.44 7.92C18.12 8.67 18.7 9.65 19.01 10.61C19.32 11.57 19.39 12.67 19.32 13.68C19.24 14.7 19.04 15.83 18.55 16.71C18.07 17.6 17.24 18.41 16.41 19C15.58 19.6 14.56 20.05 13.56 20.29C12.56 20.53 11.41 20.66 10.4 20.46C9.4 20.26 8.37 19.7 7.54 19.07C6.71 18.45 5.93 17.62 5.43 16.72C4.92 15.83 4.57 14.72 4.5 13.7C4.44 12.68 4.68 11.58 5.02 10.62C5.36 9.65 5.87 8.65 6.56 7.91C7.24 7.18 8.72 6.51 9.16 6.22" stroke-width="1.76"/><path d="M12.19 2.5Q11.77 6.9 12.05 11.29" stroke-width="1.392"/></svg>

Pencil variant

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

<Power size={32} pencil />

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

02How it's drawn

The recipe for power

Power is not stored as a drawing. It is a recipe of 1 arc and 1 line 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
A 12 13 7.5 -60 240;
L 12 3 12 11
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 power. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil