Snowflake icon
New Added in v0.5.0
A free pencil-style snowflake icon, drawn by code from 3 lines and 6 polylines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use snowflake
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 { Snowflake } from '@matita/icons/react';
<Snowflake size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="snowflake" />JavaScript
import { Snowflake, toSvg } from '@matita/icons';
toSvg(Snowflake, { 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-snowflake" data-sketch="" aria-hidden="true"><path d="M11.87 2.09Q11.8 11.91 11.88 21.73" stroke-width="1.696"/><path d="M20.62 6.9Q12.25 12.2 3.63 17.05" stroke-width="1.504"/><path d="M20.63 16.99Q12.33 11.44 3.45 6.89" stroke-width="1.408"/><path d="M17.01 17.66Q18.65 17.21 20.22 16.56Q19.68 15.38 19.33 14.12" stroke-width="1.648"/><path d="M9.75 19.42Q10.92 20.41 12.15 21.34Q13.21 20.3 14.39 19.38" stroke-width="1.6"/><path d="M4.48 13.54Q4.16 15.11 3.77 16.66Q5.35 17.15 6.89 17.73" stroke-width="1.536"/><path d="M6.69 6.28Q5.15 6.84 3.59 7.34Q4.13 8.73 4.42 10.2" stroke-width="1.616"/><path d="M14.08 4.58Q12.97 3.57 11.93 2.48Q10.79 3.52 9.69 4.6" stroke-width="1.504"/><path d="M19.14 10.53Q19.88 9 20.35 7.37Q18.93 6.96 17.56 6.41" stroke-width="1.376"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Snowflake } from '@matita/icons/react';
<Snowflake size={32} pencil />The file is icons/snowflake.svg in the package (pencil/snowflake.svg for the pencil variant). Matita 0.5.1.
02How it's drawn
The recipe for snowflake
Snowflake is not stored as a drawing. It is a recipe of 3 lines and 6 polylines 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.
L 12 2.5 12 21.5;
L 20.23 7.25 3.77 16.75;
L 20.23 16.75 3.77 7.25;
P 17.63 17.45 20.23 16.75 19.53 14.15;
P 10.1 19.6 12 21.5 13.9 19.6;
P 4.47 14.15 3.77 16.75 6.37 17.45;
P 6.37 6.55 3.77 7.25 4.47 9.85;
P 13.9 4.4 12 2.5 10.1 4.4;
P 19.53 9.85 20.23 7.25 17.63 6.55
snowflake as a number: 2449344743
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 snowflake. Seed 0 is the default.
snowflake from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/snowflake.svg.
True pixel sizes.