Droplet icon

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

droplet

01Use it

Use droplet

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

<Droplet size={24} />

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

JavaScript

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

toSvg(Droplet, { 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-droplet" data-sketch="" aria-hidden="true"><path d="M16.84 10.85C16.99 11.26 17.54 12.47 17.73 13.32C17.92 14.17 18.15 15.14 17.97 15.96C17.79 16.79 17.23 17.65 16.65 18.29C16.08 18.93 15.3 19.46 14.52 19.81C13.75 20.16 12.85 20.35 12 20.38C11.15 20.41 10.16 20.34 9.39 19.99C8.63 19.63 7.95 18.92 7.4 18.25C6.86 17.57 6.34 16.77 6.12 15.94C5.9 15.11 5.9 14.12 6.1 13.28C6.29 12.45 7.1 11.34 7.3 10.95" stroke-width="1.616"/><path d="M6.42 11.8Q9.3 7.53 12.05 3.18Q14.92 7.32 17.2 11.81" stroke-width="1.696"/></svg>

Pencil variant

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

<Droplet size={32} pencil />

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

02How it's drawn

The recipe for droplet

Droplet is not stored as a drawing. It is a recipe of 1 arc 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
A 12 14.5 6 -31.5 211.5;
P 6.9 11.4 12 3 17.1 11.4
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 droplet. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil