Command icon
New Added in v0.7.0
A free pencil-style command icon, drawn by code from 4 lines and 4 arcs. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use command
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 { Command } from '@matita/icons/react';
<Command size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="command" />JavaScript
import { Command, toSvg } from '@matita/icons';
toSvg(Command, { 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-command" data-sketch="" aria-hidden="true"><path d="M9.66 6.53Q9.72 11.95 9.43 17.36" stroke-width="1.76"/><path d="M14.38 6.56Q14.48 11.88 14.32 17.21" stroke-width="1.456"/><path d="M6.41 9.53Q11.89 9.49 17.37 9.51" stroke-width="1.68"/><path d="M6.45 14.53Q11.91 14.79 17.37 14.4" stroke-width="1.584"/><path d="M7.23 9.57C7.05 9.52 6.52 9.35 6.17 9.22C5.83 9.09 5.4 9.04 5.14 8.8C4.89 8.57 4.74 8.15 4.63 7.8C4.51 7.45 4.39 7.04 4.45 6.7C4.52 6.35 4.82 6.06 5.02 5.75C5.21 5.43 5.33 5.02 5.61 4.8C5.89 4.58 6.34 4.45 6.7 4.44C7.05 4.43 7.4 4.65 7.76 4.76C8.12 4.87 8.58 4.88 8.84 5.11C9.1 5.34 9.21 5.78 9.33 6.13C9.45 6.49 9.5 7.04 9.54 7.23" stroke-width="1.488"/><path d="M14.51 7.2C14.56 7.03 14.66 6.49 14.79 6.17C14.93 5.84 15.09 5.53 15.33 5.26C15.56 5 15.86 4.71 16.19 4.58C16.52 4.45 16.94 4.46 17.3 4.5C17.67 4.54 18.07 4.63 18.38 4.82C18.68 5.02 18.92 5.35 19.12 5.66C19.32 5.97 19.52 6.34 19.55 6.69C19.58 7.04 19.44 7.44 19.31 7.77C19.18 8.11 19.02 8.47 18.78 8.71C18.53 8.95 18.16 9.07 17.83 9.2C17.5 9.32 16.97 9.4 16.8 9.44" stroke-width="1.52"/><path d="M16.7 14.67C16.88 14.65 17.49 14.45 17.82 14.55C18.15 14.66 18.4 15.03 18.67 15.29C18.95 15.55 19.34 15.78 19.47 16.11C19.6 16.44 19.5 16.89 19.45 17.26C19.41 17.64 19.38 18.05 19.2 18.37C19.01 18.7 18.69 19.01 18.37 19.19C18.05 19.37 17.62 19.43 17.26 19.43C16.9 19.44 16.54 19.33 16.21 19.2C15.88 19.08 15.55 18.9 15.3 18.67C15.04 18.43 14.79 18.11 14.67 17.78C14.56 17.45 14.63 16.87 14.63 16.69" stroke-width="1.536"/><path d="M9.59 16.72C9.56 16.91 9.51 17.5 9.37 17.84C9.23 18.18 9.01 18.5 8.76 18.77C8.5 19.03 8.18 19.3 7.84 19.42C7.5 19.55 7.07 19.58 6.71 19.53C6.35 19.48 5.97 19.32 5.67 19.11C5.37 18.91 5.09 18.62 4.91 18.31C4.74 18.01 4.65 17.62 4.62 17.27C4.58 16.92 4.59 16.54 4.69 16.2C4.79 15.86 4.96 15.47 5.22 15.23C5.47 14.99 5.87 14.86 6.21 14.76C6.55 14.65 7.09 14.62 7.26 14.59" stroke-width="1.472"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Command } from '@matita/icons/react';
<Command size={32} pencil />The file is icons/command.svg in the package (pencil/command.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for command
Command is not stored as a drawing. It is a recipe of 4 lines and 4 arcs 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.
L 9.5 7 9.5 17;
L 14.5 7 14.5 17;
L 7 9.5 17 9.5;
L 7 14.5 17 14.5;
A 7 7 2.5 90 360;
A 17 7 2.5 180 450;
A 17 17 2.5 270 540;
A 7 17 2.5 0 270
command as a number: 2472102578
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, 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 command. Seed 0 is the default.
command from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/command.svg.
True pixel sizes.