Bezier icon

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

bezier

01Use it

Use bezier

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

<Bezier size={24} />

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

JavaScript

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

toSvg(Bezier, { 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-bezier" data-sketch="" aria-hidden="true"><path d="M3.93 17.63C4.04 17.09 4.22 15.43 4.59 14.42C4.96 13.42 5.45 12.36 6.16 11.59C6.87 10.82 7.88 10.21 8.85 9.79C9.82 9.38 10.95 9.09 12 9.08C13.05 9.08 14.2 9.32 15.17 9.74C16.14 10.16 17.08 10.85 17.82 11.62C18.55 12.39 19.21 13.37 19.58 14.37C19.94 15.37 19.92 17.08 19.99 17.62" stroke-width="1.552"/><path d="M3.94 8.85Q12.28 8.16 20.62 8.85" stroke-width="1.376"/><path d="M10.77 7.75Q11.93 7.68 13.09 7.75Q13.17 8.9 13.11 10.05Q11.9 10.24 10.68 10.3Q10.7 9.03 10.77 7.75Q11.53 7.75 12.29 7.75" stroke-width="1.632"/><path d="M3.91 8.88l.01 0M20.1 9.16l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<Bezier size={32} pencil />

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

02How it's drawn

The recipe for bezier

Bezier is not stored as a drawing. It is a recipe of 1 arc, 1 line, 2 dots 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
A 12 17 8 180 360;
L 4 9 20 9;
O 4 9;
O 20 9;
Z 10.8 7.8 13.2 7.8 13.2 10.2 10.8 10.2
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 bezier. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil