Circle x icon

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

circle-x

01Use it

Use circle-x

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

<CircleX size={24} />

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

JavaScript

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

toSvg(CircleX, { 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-x" data-sketch="" aria-hidden="true"><path d="M7.51 19.04C7.06 18.67 5.53 17.7 4.83 16.83C4.12 15.96 3.52 14.87 3.28 13.82C3.03 12.76 3.15 11.57 3.38 10.5C3.61 9.43 4.04 8.36 4.65 7.4C5.26 6.45 6.03 5.41 7.02 4.77C8 4.14 9.33 3.82 10.55 3.62C11.76 3.43 13.11 3.35 14.31 3.6C15.51 3.84 16.75 4.42 17.75 5.1C18.76 5.79 19.78 6.71 20.36 7.72C20.95 8.73 21.22 10.02 21.29 11.17C21.36 12.32 21.16 13.54 20.78 14.63C20.4 15.72 19.79 16.82 19 17.7C18.21 18.58 17.14 19.36 16.02 19.9C14.91 20.43 13.57 20.86 12.32 20.91C11.07 20.95 9.73 20.59 8.54 20.17C7.35 19.75 6.13 19.16 5.17 18.37C4.22 17.57 3.21 15.89 2.82 15.4" stroke-width="1.472"/><path d="M8.86 8.99Q12.06 12 15.21 15.07" stroke-width="1.808"/><path d="M15.38 8.98Q11.76 12.05 8.53 15.51" stroke-width="1.792"/></svg>

Pencil variant

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

<CircleX size={32} pencil />

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

02How it's drawn

The recipe for circle-x

Circle x is not stored as a drawing. It is a recipe of 1 circle and 2 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 12 8.5;
L 9 9 15 15;
L 15 9 9 15
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-x. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil