Drafting compass icon

Added in v0.1.0

A free pencil-style drafting compass icon, drawn by code from 1 circle and 3 lines. Use it as an SVG, a React component, or by name. MIT licensed.

drafting-compass

01Use it

Use drafting-compass

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 { DraftingCompass } from '@matita/icons/react';

<DraftingCompass size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="drafting-compass" />

JavaScript

import { DraftingCompass, toSvg } from '@matita/icons';

toSvg(DraftingCompass, { size: 24 });   // SVG string

SVG

<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-drafting-compass" data-sketch="" aria-hidden="true"><path d="M12.6 6.33C12.5 6.36 12.22 6.48 12.01 6.5C11.8 6.53 11.56 6.55 11.36 6.49C11.15 6.44 10.95 6.31 10.77 6.18C10.6 6.04 10.44 5.87 10.32 5.69C10.2 5.5 10.1 5.28 10.06 5.06C10.02 4.84 10.03 4.59 10.08 4.37C10.12 4.14 10.21 3.92 10.33 3.71C10.45 3.51 10.61 3.31 10.79 3.16C10.98 3.01 11.21 2.89 11.45 2.81C11.69 2.73 11.96 2.66 12.21 2.67C12.46 2.68 12.74 2.75 12.97 2.86C13.2 2.97 13.42 3.14 13.61 3.32C13.8 3.5 14.01 3.7 14.12 3.94C14.23 4.17 14.27 4.46 14.28 4.72C14.29 4.99 14.27 5.27 14.21 5.53C14.14 5.8 14.05 6.09 13.88 6.32C13.72 6.55 13.49 6.77 13.24 6.91C12.99 7.06 12.54 7.14 12.4 7.18" stroke-width="1.472"/><path d="M11.19 5.84Q7.9 13.15 5.48 20.81" stroke-width="1.376"/><path d="M12.53 5.76Q15.92 13.17 18.55 20.89" stroke-width="1.68"/><path d="M7.72 13.81Q12.06 13.68 16.4 14.2" stroke-width="1.712"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { DraftingCompass } from '@matita/icons/react';

<DraftingCompass size={32} pencil />

The file is icons/drafting-compass.svg in the package (pencil/drafting-compass.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for drafting-compass

Drafting compass is not stored as a drawing. It is a recipe of 1 circle and 3 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.

A · Recipe
C 12 4.8 1.7;
L 11.2 6.4 5.5 20.5;
L 12.8 6.4 18.5 20.5;
L 8 14 16 14
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of drafting-compass. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

drafting-compass from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/drafting-compass.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil