Presentation icon

New Added in v0.7.0

A free pencil-style presentation icon, drawn by code from 4 lines and 1 polyline. Use it as an SVG, a React component, or by name. MIT licensed.

presentation

01Use it

Use presentation

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

<Presentation size={24} />

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

JavaScript

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

toSvg(Presentation, { 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-presentation" data-sketch="" aria-hidden="true"><path d="M2.45 3.88Q12.01 3.76 21.58 3.88" stroke-width="1.568"/><path d="M4.87 3.44Q5.24 9.21 5 14.98Q12.07 15.38 19.12 14.83Q18.88 9.14 19.07 3.45" stroke-width="1.44"/><path d="M12.14 14.74Q12.05 18.05 12.14 21.36" stroke-width="1.584"/><path d="M12.05 14.71Q10.06 18 8.29 21.43" stroke-width="1.488"/><path d="M11.9 14.61Q13.68 17.93 15.63 21.15" stroke-width="1.52"/></svg>

Pencil variant

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

<Presentation size={32} pencil />

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

02How it's drawn

The recipe for presentation

Presentation is not stored as a drawing. It is a recipe of 4 lines and 1 polyline 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 3 4 21 4;
P 5 4 5 15 19 15 19 4;
L 12 15 12 21;
L 12 15 8.5 21;
L 12 15 15.5 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 presentation. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil