Bug icon
A free pencil-style bug icon, drawn by code from 1 ellipse, 1 arc and 4 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use bug
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 { Bug } from '@matita/icons/react';
<Bug size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="bug" />JavaScript
import { Bug, toSvg } from '@matita/icons';
toSvg(Bug, { 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-bug" data-sketch="" aria-hidden="true"><path d="M15.9 11.59C16 11.95 16.42 13.01 16.48 13.74C16.53 14.46 16.38 15.24 16.22 15.94C16.06 16.65 15.88 17.41 15.53 17.98C15.18 18.55 14.65 19 14.14 19.36C13.63 19.73 13.04 20.08 12.46 20.17C11.88 20.25 11.25 20.07 10.66 19.88C10.07 19.69 9.39 19.49 8.93 19.02C8.47 18.55 8.19 17.75 7.92 17.06C7.66 16.37 7.42 15.64 7.35 14.89C7.28 14.14 7.32 13.29 7.51 12.56C7.7 11.84 8.07 11.13 8.48 10.55C8.89 9.98 9.43 9.45 9.99 9.14C10.55 8.82 11.22 8.72 11.85 8.67C12.48 8.62 13.16 8.61 13.77 8.85C14.38 9.08 15.04 9.52 15.48 10.07C15.93 10.63 16.18 11.45 16.44 12.19C16.7 12.93 16.98 13.71 17.03 14.51C17.07 15.31 16.77 16.56 16.71 16.97" stroke-width="1.808"/><path d="M9.28 9.2C9.3 9.01 9.28 8.45 9.37 8.08C9.46 7.71 9.59 7.27 9.84 6.99C10.09 6.71 10.5 6.52 10.86 6.38C11.22 6.25 11.63 6.16 12 6.19C12.37 6.22 12.7 6.42 13.06 6.56C13.43 6.69 13.91 6.74 14.16 6.99C14.42 7.25 14.52 7.72 14.6 8.09C14.68 8.45 14.64 9.01 14.64 9.19" stroke-width="1.68"/><path d="M3.66 10.91Q5.91 11.6 8.03 12.59" stroke-width="1.44"/><path d="M20.04 10.79Q17.85 11.58 15.71 12.51" stroke-width="1.68"/><path d="M3.77 18.84Q5.93 17.56 8.14 16.38" stroke-width="1.52"/><path d="M20.34 18.74Q18.02 17.34 15.57 16.18" stroke-width="1.76"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Bug } from '@matita/icons/react';
<Bug size={32} pencil />The file is icons/bug.svg in the package (pencil/bug.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for bug
Bug is not stored as a drawing. It is a recipe of 1 ellipse, 1 arc 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.
E 12 14.5 4.5 5.5;
A 12 9 2.8 180 360;
L 4 11 7.8 12.5;
L 20 11 16.2 12.5;
L 4 18.5 8 16.5;
L 20 18.5 16 16.5
bug as a number: 1943375221
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 bug. Seed 0 is the default.
True pixel sizes.