Petri dish icon

New Added in v0.5.0

A free pencil-style petri dish icon, drawn by code from 4 circles and 2 dots. Use it as an SVG, a React component, or by name. MIT licensed.

petri-dish

01Use it

Use petri-dish

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

<PetriDish size={24} />

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

JavaScript

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

toSvg(PetriDish, { 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-petri-dish" data-sketch="" aria-hidden="true"><path d="M9.79 2.6C10.45 2.54 12.44 2.04 13.72 2.23C15 2.42 16.41 2.94 17.48 3.72C18.54 4.49 19.48 5.69 20.1 6.88C20.72 8.06 20.99 9.47 21.17 10.81C21.36 12.16 21.53 13.65 21.21 14.95C20.89 16.26 20.11 17.59 19.24 18.63C18.38 19.67 17.23 20.66 16.03 21.19C14.83 21.73 13.38 21.85 12.06 21.83C10.75 21.82 9.37 21.61 8.14 21.11C6.91 20.62 5.63 19.85 4.69 18.86C3.75 17.87 2.88 16.52 2.49 15.19C2.11 13.86 2.21 12.29 2.37 10.89C2.53 9.49 2.81 7.98 3.46 6.77C4.11 5.55 5.17 4.39 6.27 3.6C7.38 2.81 8.78 2.29 10.11 2.02C11.43 1.75 12.89 1.71 14.23 1.97C15.57 2.22 17.5 3.3 18.15 3.57" stroke-width="1.504"/><path d="M12.65 20.11C12.18 20.11 10.72 20.32 9.83 20.08C8.93 19.84 8.02 19.3 7.3 18.69C6.58 18.07 6.01 17.23 5.51 16.4C5.01 15.57 4.49 14.67 4.29 13.73C4.09 12.79 4.17 11.74 4.31 10.76C4.44 9.79 4.67 8.79 5.08 7.9C5.49 7 6.06 6.09 6.76 5.4C7.46 4.71 8.37 4.05 9.28 3.76C10.18 3.46 11.25 3.55 12.21 3.63C13.17 3.71 14.13 3.89 15.01 4.25C15.89 4.61 16.8 5.11 17.5 5.78C18.2 6.45 18.77 7.35 19.21 8.24C19.64 9.14 19.98 10.15 20.12 11.15C20.25 12.16 20.23 13.26 20.01 14.27C19.8 15.27 19.4 16.31 18.85 17.19C18.31 18.07 17.57 18.93 16.75 19.54C15.93 20.14 14.89 20.62 13.91 20.82C12.92 21.02 11.36 20.77 10.84 20.76" stroke-width="1.408"/><path d="M10.66 9.8C10.65 9.92 10.65 10.3 10.59 10.53C10.53 10.76 10.43 11 10.3 11.21C10.16 11.41 9.97 11.62 9.76 11.74C9.55 11.86 9.27 11.91 9.02 11.93C8.77 11.94 8.49 11.93 8.25 11.83C8.01 11.74 7.79 11.56 7.6 11.37C7.4 11.18 7.17 10.96 7.06 10.7C6.96 10.44 6.95 10.11 6.97 9.82C6.98 9.52 7.03 9.2 7.15 8.94C7.28 8.67 7.49 8.43 7.71 8.23C7.93 8.03 8.2 7.81 8.48 7.72C8.77 7.62 9.12 7.59 9.42 7.64C9.73 7.69 10.06 7.82 10.32 8C10.58 8.19 10.78 8.47 10.97 8.74C11.15 9.02 11.36 9.33 11.42 9.66C11.48 9.99 11.4 10.36 11.32 10.7C11.23 11.04 10.99 11.52 10.92 11.69" stroke-width="1.584"/><path d="M13.47 12.91C13.61 12.84 14.02 12.59 14.33 12.48C14.64 12.38 14.99 12.26 15.32 12.28C15.64 12.3 15.99 12.46 16.27 12.63C16.55 12.79 16.81 13.02 17.01 13.27C17.22 13.52 17.4 13.83 17.48 14.14C17.56 14.45 17.57 14.82 17.49 15.14C17.41 15.46 17.23 15.81 17 16.06C16.77 16.31 16.43 16.49 16.1 16.64C15.78 16.8 15.41 16.96 15.05 16.97C14.69 16.99 14.29 16.89 13.95 16.76C13.61 16.62 13.27 16.42 13.01 16.17C12.75 15.92 12.51 15.6 12.38 15.27C12.25 14.94 12.17 14.54 12.21 14.18C12.24 13.82 12.41 13.45 12.61 13.13C12.8 12.81 13.05 12.45 13.36 12.23C13.68 12.01 14.12 11.87 14.52 11.8C14.92 11.73 15.56 11.81 15.77 11.81" stroke-width="1.632"/><path d="M14.17 8.44l.01 0M8.38 15.69l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<PetriDish size={32} pencil />

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

02How it's drawn

The recipe for petri-dish

Petri dish is not stored as a drawing. It is a recipe of 4 circles and 2 dots 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
C 12 12 9.5;
C 12 12 8;
C 9 10 1.7;
C 15 14.5 2.2;
O 14 8.5;
O 8.5 15.5
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 petri-dish. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil