Tooth icon
New Added in v0.4.0
A free pencil-style tooth icon, drawn by code from 1 closed shape. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use tooth
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 { Tooth } from '@matita/icons/react';
<Tooth size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="tooth" />JavaScript
import { Tooth, toSvg } from '@matita/icons';
toSvg(Tooth, { 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-tooth" data-sketch="" aria-hidden="true"><path d="M12.18 6.58Q13.67 5.43 15.18 4.3Q16.87 4.93 18.57 5.55Q18.91 7.59 19.53 9.56Q18.49 11.65 17.63 13.81Q17.58 16.91 17.11 19.97Q15.95 20.22 14.85 20.66Q14.01 18.23 13.59 15.69Q12.04 15.7 10.51 15.51Q9.48 17.99 8.91 20.62Q7.86 20.31 6.82 19.98Q6.75 17.01 6.34 14.07Q5.51 11.73 4.35 9.53Q5.18 7.48 5.66 5.32Q7.41 4.8 9.19 4.38Q10.64 5.55 12.18 6.58Q12.71 6.15 13.27 5.75" stroke-width="1.792"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Tooth } from '@matita/icons/react';
<Tooth size={32} pencil />The file is icons/tooth.svg in the package (pencil/tooth.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for tooth
Tooth is not stored as a drawing. It is a recipe of 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.
Z 12 6.5 15 4.5 18.5 5.5 19.5 9.5 17.5 14 17 20 15 20.5 13.5 15.5 10.5 15.5 9 20.5 7 20 6.5 14 4.5 9.5 5.5 5.5 9 4.5
tooth as a number: 168437173
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 tooth. Seed 0 is the default.
tooth from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/tooth.svg.
True pixel sizes.