Triangle alert icon
A free pencil-style triangle alert icon, drawn by code from 1 closed shape, 1 line and 1 dot. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use triangle-alert
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 { TriangleAlert } from '@matita/icons/react';
<TriangleAlert size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="triangle-alert" />JavaScript
import { TriangleAlert, toSvg } from '@matita/icons';
toSvg(TriangleAlert, { 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-triangle-alert" data-sketch="" aria-hidden="true"><path d="M12.13 3.59Q16.21 11.83 21.04 19.65Q12.07 20.05 3.11 19.53Q7.65 11.58 12.13 3.59Q12.5 4.33 12.92 5.03" stroke-width="1.712"/><path d="M11.99 8.88Q12.15 11.63 11.99 14.39" stroke-width="1.808"/><path d="M11.96 16.96l.01 0" stroke-width="2.48"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { TriangleAlert } from '@matita/icons/react';
<TriangleAlert size={32} pencil />The file is icons/triangle-alert.svg in the package (pencil/triangle-alert.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for triangle-alert
Triangle alert is not stored as a drawing. It is a recipe of 1 closed shape, 1 line and 1 dot 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.
Z 12 3.5 21 19.5 3 19.5;
L 12 9.5 12 13.8;
O 12 16.8
triangle-alert as a number: 3089003126
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 triangle-alert. Seed 0 is the default.
True pixel sizes.