Drink icon
New Added in v0.6.0
A free pencil-style drink icon, drawn by code from 2 polylines, 2 lines and 2 dots. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use drink
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 { Drink } from '@matita/icons/react';
<Drink size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="drink" />JavaScript
import { Drink, toSvg } from '@matita/icons';
toSvg(Drink, { 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-drink" data-sketch="" aria-hidden="true"><path d="M5.76 7.29Q6.81 14.07 7.66 20.87Q12.02 20.79 16.37 20.9Q17.63 14.3 18.12 7.59" stroke-width="1.776"/><path d="M4.43 7.95Q11.99 8.28 19.55 8.15" stroke-width="1.52"/><path d="M12.52 8.64Q13.17 5.76 14 2.94Q15.6 3.08 17.21 3.16" stroke-width="1.696"/><path d="M6.19 14.11Q11.95 13.84 17.7 13.98" stroke-width="1.776"/><path d="M9.82 17.52l.01 0M13.37 17.06l.01 0" stroke-width="2.48"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Drink } from '@matita/icons/react';
<Drink size={32} pencil />The file is icons/drink.svg in the package (pencil/drink.svg for the pencil variant). Matita 0.6.0.
02How it's drawn
The recipe for drink
Drink is not stored as a drawing. It is a recipe of 2 polylines, 2 lines 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.
P 6 8 7.5 21 16.5 21 18 8;
L 5 8 19 8;
P 12.5 8 13.8 3 17 3;
L 6.7 14 17.3 14;
O 10 17.6;
O 13.5 17.2
drink as a number: 359939985
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 drink. Seed 0 is the default.
drink from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/drink.svg.
True pixel sizes.