Activity icon
A free pencil-style activity icon, drawn by code from 1 polyline. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use activity
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 { Activity } from '@matita/icons/react';
<Activity size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="activity" />JavaScript
import { Activity, toSvg } from '@matita/icons';
toSvg(Activity, { 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-activity" data-sketch="" aria-hidden="true"><path d="M1.88 12.21Q4.2 12.23 6.5 11.85Q7.71 8.36 9.49 5.12Q11.75 12.21 14.61 19.08Q16.05 15.51 17.41 11.91Q19.63 12.06 21.85 12.22" stroke-width="1.52"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Activity } from '@matita/icons/react';
<Activity size={32} pencil />The file is icons/activity.svg in the package (pencil/activity.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for activity
Activity is not stored as a drawing. It is a recipe of 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.
P 2.5 12 6.5 12 9.5 5 14.5 19 17.5 12 21.5 12
activity as a number: 2720649964
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 activity. Seed 0 is the default.
True pixel sizes.