Test tube icon
New Added in v0.4.0
A free pencil-style test tube icon, drawn by code from 2 polylines, 1 arc and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use test-tube
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 { TestTube } from '@matita/icons/react';
<TestTube size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="test-tube" />JavaScript
import { TestTube, toSvg } from '@matita/icons';
toSvg(TestTube, { 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-test-tube" data-sketch="" aria-hidden="true"><path d="M8.49 3.3Q8.15 10.67 8.4 18.04" stroke-width="1.456"/><path d="M15.5 17.2C15.49 17.44 15.56 18.21 15.4 18.66C15.25 19.1 14.9 19.52 14.57 19.86C14.24 20.2 13.84 20.5 13.41 20.71C12.98 20.92 12.47 21.12 12 21.12C11.53 21.13 10.98 20.98 10.57 20.76C10.15 20.54 9.8 20.15 9.5 19.79C9.21 19.43 8.96 19.02 8.81 18.59C8.65 18.16 8.62 17.44 8.58 17.21" stroke-width="1.744"/><path d="M15.42 17.92Q14.93 10.43 15.51 2.95" stroke-width="1.744"/><path d="M6.39 3.4Q11.93 3.26 17.47 3.56" stroke-width="1.504"/><path d="M8.29 12.04Q12.07 12.14 15.85 11.88" stroke-width="1.6"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { TestTube } from '@matita/icons/react';
<TestTube size={32} pencil />The file is icons/test-tube.svg in the package (pencil/test-tube.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for test-tube
Test tube is not stored as a drawing. It is a recipe of 2 polylines, 1 arc 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 8.5 3.5 8.5 17.5;
A 12 17.5 3.5 0 180;
P 15.5 17.5 15.5 3.5;
L 7 3.5 17 3.5;
L 8.5 12 15.5 12
test-tube as a number: 2304583810
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 test-tube. Seed 0 is the default.
test-tube from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/test-tube.svg.
True pixel sizes.