Flask icon
A free pencil-style flask icon, drawn by code from 1 polyline and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use flask
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 { Flask } from '@matita/icons/react';
<Flask size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="flask" />JavaScript
import { Flask, toSvg } from '@matita/icons';
toSvg(Flask, { size: 24 }); // SVG stringSVG
<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-flask" data-sketch="" aria-hidden="true"><path d="M9.95 3.05Q9.97 6.36 10.01 9.68Q7.35 15.22 4.02 20.4Q12.09 20.85 20.17 20.54Q17.48 14.85 14.13 9.52Q14.16 6.35 14 3.18" stroke-width="1.712"/><path d="M8.16 3.43Q12.1 3.37 16.03 3.54" stroke-width="1.376"/><path d="M6.19 14.9Q11.87 15.37 17.56 15.12" stroke-width="1.808"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Flask } from '@matita/icons/react';
<Flask size={32} pencil />The file is icons/flask.svg in the package (pencil/flask.svg for the pencil variant). Matita 0.3.0.
02How it's drawn
The recipe for flask
Flask is not stored as a drawing. It is a recipe of 1 polyline and 2 lines 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.
P 10 3.5 10 9.5 4 20.5 20 20.5 14 9.5 14 3.5;
L 8.5 3.5 15.5 3.5;
L 6.8 15 17.2 15
flask as a number: 2894440560
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
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.
Five seeds of flask. Seed 0 is the default.
True pixel sizes.