Flower icon

New Added in v0.5.0

A free pencil-style flower icon, drawn by code from 3 lines, 3 curves and 1 polyline. Use it as an SVG, a React component, or by name. MIT licensed.

flower

01Use it

Use flower

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 { Flower } from '@matita/icons/react';

<Flower size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="flower" />

JavaScript

import { Flower, toSvg } from '@matita/icons';

toSvg(Flower, { size: 24 });   // SVG string

SVG

<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-flower" data-sketch="" aria-hidden="true"><path d="M5.83 4.15Q5.93 7.27 6.43 10.36" stroke-width="1.44"/><path d="M6.25 9.67Q7.48 14.43 12.26 14.32" stroke-width="1.808"/><path d="M11.49 14.6Q16.41 14.48 17.62 9.92" stroke-width="1.792"/><path d="M17.45 10.31Q17.86 7.29 17.92 4.24" stroke-width="1.76"/><path d="M18.33 4.32Q16.64 6.19 14.87 8Q13.53 5.92 12.03 3.97Q10.46 6.04 8.99 8.17Q7.42 6.17 5.85 4.18" stroke-width="1.728"/><path d="M12 14.02Q12.11 18.1 12.13 22.18" stroke-width="1.392"/><path d="M11.58 21.27Q15.49 18.46 18.8 18.64" stroke-width="1.488"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { Flower } from '@matita/icons/react';

<Flower size={32} pencil />

The file is icons/flower.svg in the package (pencil/flower.svg for the pencil variant). Matita 0.5.1.

02How it's drawn

The recipe for flower

Flower is not stored as a drawing. It is a recipe of 3 lines, 3 curves and 1 polyline 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.

A · Recipe
L 6 4.5 6.5 10;
Q 6.5 10 7.5 14.5 12 14.5;
Q 12 14.5 16.5 14.5 17.5 10;
L 17.5 10 18 4.5;
P 18 4.5 15 8 12 4 9 8 6 4.5;
L 12 14.5 12 22;
Q 12 21 15.5 18.5 18.5 18.5
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of flower. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

flower from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/flower.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil