Umbrella icon

New Added in v0.4.0

A free pencil-style umbrella icon, drawn by code from 2 arcs and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.

umbrella

01Use it

Use umbrella

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

<Umbrella size={24} />

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

JavaScript

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

toSvg(Umbrella, { 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-umbrella" data-sketch="" aria-hidden="true"><path d="M3.64 12.08C3.7 11.49 3.68 9.68 4.01 8.56C4.34 7.45 4.87 6.26 5.62 5.39C6.37 4.52 7.47 3.81 8.53 3.33C9.59 2.85 10.83 2.52 12 2.5C13.17 2.47 14.46 2.71 15.54 3.19C16.61 3.66 17.67 4.45 18.44 5.34C19.22 6.22 19.85 7.38 20.17 8.51C20.5 9.63 20.34 11.49 20.37 12.08" stroke-width="1.536"/><path d="M3.17 11.17Q12.15 10.5 21.14 11" stroke-width="1.472"/><path d="M12.04 10.53Q12.41 14.88 12.18 19.23" stroke-width="1.808"/><path d="M12 18.77C11.96 18.92 11.86 19.36 11.78 19.66C11.69 19.96 11.66 20.31 11.49 20.57C11.32 20.83 11.02 21.1 10.73 21.2C10.44 21.3 10.08 21.15 9.75 21.15C9.42 21.15 9.05 21.3 8.77 21.2C8.49 21.1 8.23 20.79 8.05 20.53C7.88 20.27 7.81 19.96 7.71 19.67C7.61 19.37 7.49 18.91 7.45 18.76" stroke-width="1.696"/></svg>

Pencil variant

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

<Umbrella size={32} pencil />

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

02How it's drawn

The recipe for umbrella

Umbrella is not stored as a drawing. It is a recipe of 2 arcs and 2 lines 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
A 12 11 8.5 180 360;
L 3.5 11 20.5 11;
L 12 11 12 19;
A 9.75 19 2.25 0 180
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 umbrella. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil