Life buoy icon
New Added in v0.5.0
A free pencil-style life buoy icon, drawn by code from 2 circles and 4 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use life-buoy
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 { LifeBuoy } from '@matita/icons/react';
<LifeBuoy size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="life-buoy" />JavaScript
import { LifeBuoy, toSvg } from '@matita/icons';
toSvg(LifeBuoy, { 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-life-buoy" data-sketch="" aria-hidden="true"><path d="M12.98 2.56C13.52 2.79 15.18 3.38 16.19 3.98C17.19 4.58 18.28 5.23 19.02 6.17C19.76 7.1 20.32 8.37 20.63 9.59C20.94 10.8 21.04 12.18 20.9 13.44C20.75 14.7 20.39 16.1 19.76 17.15C19.13 18.2 18.08 19.01 17.11 19.77C16.15 20.53 15.1 21.43 13.97 21.7C12.85 21.97 11.52 21.66 10.37 21.39C9.21 21.11 8 20.73 7.04 20.04C6.07 19.36 5.24 18.32 4.56 17.28C3.87 16.23 3.22 15.02 2.95 13.77C2.67 12.52 2.64 11.04 2.91 9.79C3.19 8.53 3.87 7.28 4.59 6.25C5.32 5.22 6.27 4.29 7.28 3.62C8.3 2.94 9.5 2.46 10.69 2.21C11.88 1.96 13.22 1.87 14.43 2.14C15.64 2.4 17.35 3.51 17.94 3.79" stroke-width="1.472"/><path d="M8.73 10.1C8.87 9.9 9.21 9.21 9.57 8.91C9.93 8.61 10.43 8.44 10.89 8.29C11.35 8.15 11.84 8.04 12.32 8.05C12.8 8.06 13.35 8.14 13.78 8.36C14.2 8.58 14.55 9 14.88 9.37C15.21 9.74 15.58 10.12 15.78 10.57C15.99 11.03 16.11 11.58 16.11 12.08C16.1 12.59 15.95 13.13 15.74 13.59C15.54 14.05 15.23 14.48 14.88 14.86C14.54 15.23 14.15 15.62 13.7 15.85C13.25 16.09 12.69 16.24 12.18 16.28C11.66 16.31 11.09 16.24 10.6 16.07C10.11 15.89 9.62 15.59 9.23 15.24C8.84 14.89 8.49 14.44 8.26 13.97C8.03 13.51 7.89 12.96 7.83 12.44C7.78 11.92 7.8 11.36 7.92 10.84C8.04 10.33 8.45 9.6 8.56 9.35" stroke-width="1.776"/><path d="M5.22 5.51Q7.05 7.08 8.75 8.79" stroke-width="1.392"/><path d="M15.48 8.7Q17.01 6.94 18.74 5.38" stroke-width="1.504"/><path d="M15.19 15.06Q16.88 16.84 18.51 18.69" stroke-width="1.472"/><path d="M5.33 18.64Q7.09 16.83 8.89 15.07" stroke-width="1.488"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { LifeBuoy } from '@matita/icons/react';
<LifeBuoy size={32} pencil />The file is icons/life-buoy.svg in the package (pencil/life-buoy.svg for the pencil variant). Matita 0.5.1.
02How it's drawn
The recipe for life-buoy
Life buoy is not stored as a drawing. It is a recipe of 2 circles and 4 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.
C 12 12 9;
C 12 12 3.8;
L 5.6 5.6 8.5 8.5;
L 15.5 8.5 18.4 5.6;
L 15.5 15.5 18.4 18.4;
L 5.6 18.4 8.5 15.5
life-buoy as a number: 3571648175
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 life-buoy. Seed 0 is the default.
life-buoy from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/life-buoy.svg.
True pixel sizes.