Milk icon
New Added in v0.6.0
A free pencil-style milk icon, drawn by code from 3 polylines, 9 lines and 1 arc. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use milk
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 { Milk } from '@matita/icons/react';
<Milk size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="milk" />JavaScript
import { Milk, toSvg } from '@matita/icons';
toSvg(Milk, { 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-milk" data-sketch="" aria-hidden="true"><path d="M4.85 8.24Q5.07 14.67 4.89 21.1Q10 20.97 15.11 20.89Q14.99 14.83 14.83 8.78" stroke-width="1.68"/><path d="M14.83 21.15Q16.82 21.19 18.8 21.17Q19.11 14.91 19.01 8.64" stroke-width="1.376"/><path d="M7.11 5.16Q6.98 4.14 6.8 3.13Q11.93 2.86 17.05 3.04Q17.06 4.36 17.15 5.67" stroke-width="1.408"/><path d="M4.41 9.03Q12.07 9.04 19.72 9.07" stroke-width="1.632"/><path d="M16.86 4.63Q18.11 6.77 19.06 9.07" stroke-width="1.52"/><path d="M9.8 12.73Q10.54 13.99 11.21 15.28" stroke-width="1.712"/><path d="M17.19 4.62Q15.9 7.05 14.59 9.48" stroke-width="1.392"/><path d="M7.06 5.01Q8.1 4.88 9.14 4.86" stroke-width="1.792"/><path d="M10.94 4.83Q11.99 5 13.04 5.16" stroke-width="1.76"/><path d="M14.2 4.81Q15.26 4.96 16.33 5.03" stroke-width="1.616"/><path d="M4.85 9.27Q5.87 6.99 7.15 4.84" stroke-width="1.584"/><path d="M10.81 15C10.9 15.06 11.24 15.21 11.32 15.38C11.39 15.54 11.26 15.8 11.26 16.01C11.26 16.22 11.39 16.47 11.31 16.64C11.23 16.8 10.95 16.85 10.79 16.99C10.62 17.13 10.51 17.41 10.33 17.45C10.15 17.49 9.9 17.32 9.72 17.24C9.53 17.16 9.38 17.09 9.22 16.98C9.06 16.88 8.84 16.77 8.76 16.61C8.67 16.44 8.72 16.2 8.74 16.01C8.75 15.82 8.79 15.63 8.86 15.46C8.94 15.29 9.13 15.08 9.19 15" stroke-width="1.44"/><path d="M8.86 15.31Q9.59 13.98 10.23 12.61" stroke-width="1.44"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Milk } from '@matita/icons/react';
<Milk size={32} pencil />The file is icons/milk.svg in the package (pencil/milk.svg for the pencil variant). Matita 0.6.0.
02How it's drawn
The recipe for milk
Milk is not stored as a drawing. It is a recipe of 3 polylines, 9 lines and 1 arc 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 5 9 5 21 15 21 15 9;
P 15 21 19 21 19 9;
P 7 5 7 3 17 3 17 5;
L 5 9 19 9;
L 17 5 19 9;
L 10 13 11 15;
L 17 5 15 9;
L 7.5 5 9 5;
L 11 5 12.5 5;
L 14.5 5 16 5;
L 5 9 7 5;
A 10 16 1.41 -45 225;
L 9 15 10 13
milk as a number: 2291038882
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 milk. Seed 0 is the default.
milk from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/milk.svg.
True pixel sizes.