Beaker icon

New Added in v0.5.0

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

beaker

01Use it

Use beaker

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

<Beaker size={24} />

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

JavaScript

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

toSvg(Beaker, { 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-beaker" data-sketch="" aria-hidden="true"><path d="M10.12 3.53Q10.24 6.53 9.88 9.5Q6.7 14.64 4.33 20.19Q4.95 20.7 5.65 21.08Q12.17 20.57 18.69 20.92Q19.15 20.35 19.64 19.81Q17.27 14.36 14.08 9.35Q14.22 6.6 14.09 3.85" stroke-width="1.392"/><path d="M8.03 3.87Q12.08 3.86 16.12 4.12" stroke-width="1.76"/><path d="M6.19 16.18Q9.18 13.84 12.11 16.34" stroke-width="1.472"/><path d="M11.53 15.65Q14.52 18.17 17.66 15.7" stroke-width="1.616"/><path d="M10.37 19.06l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<Beaker size={32} pencil />

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

02How it's drawn

The recipe for beaker

Beaker is not stored as a drawing. It is a recipe of 1 polyline, 1 line, 2 curves 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
P 10 4 10 9.5 4.5 20 5.5 21 18.5 21 19.5 20 14 9.5 14 4;
L 8.5 4 15.5 4;
Q 6.6 16 9.3 13.8 12 16;
Q 12 16 14.7 18.2 17.4 16;
O 10.5 19
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 beaker. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil