Circle icon

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

circle

01Use it

Use circle

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

<Circle size={24} />

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

JavaScript

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

toSvg(Circle, { 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-circle" data-sketch="" aria-hidden="true"><path d="M20.1 14.33C19.88 14.87 19.47 16.63 18.78 17.53C18.1 18.43 17.03 19.27 15.97 19.75C14.91 20.22 13.63 20.33 12.44 20.39C11.26 20.44 9.95 20.48 8.86 20.1C7.78 19.72 6.79 18.88 5.93 18.08C5.07 17.28 4.19 16.36 3.7 15.32C3.21 14.28 2.98 13 2.97 11.83C2.96 10.66 3.17 9.37 3.66 8.3C4.15 7.23 5.01 6.22 5.91 5.41C6.81 4.61 7.92 3.84 9.07 3.46C10.22 3.08 11.58 3.05 12.82 3.14C14.05 3.22 15.44 3.41 16.51 3.97C17.58 4.53 18.49 5.56 19.25 6.52C20 7.49 20.7 8.59 21.04 9.75C21.39 10.9 21.51 12.25 21.33 13.45C21.15 14.66 20.64 15.93 19.96 16.95C19.28 17.97 17.69 19.14 17.23 19.58" stroke-width="1.456"/></svg>

Pencil variant

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

<Circle size={32} pencil />

The file is icons/circle.svg in the package (pencil/circle.svg for the pencil variant). Matita 0.2.1.

02How it's drawn

The recipe for circle

Circle is not stored as a drawing. It is a recipe of 1 circle 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 12 8.5
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 circle. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil