Octagon x icon

New Added in v0.7.0

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

octagon-x

01Use it

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

<OctagonX size={24} />

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

JavaScript

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

toSvg(OctagonX, { 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-octagon-x" data-sketch="" aria-hidden="true"><path d="M8.38 3.65Q11.9 3.82 15.42 3.61Q17.96 6.13 20.59 8.57Q20.45 11.96 20.61 15.35Q18.19 18.07 15.65 20.68Q12.02 20.98 8.38 20.7Q6.17 17.84 3.58 15.34Q3.76 11.84 3.7 8.34Q5.84 5.8 8.38 3.65Q8.96 3.64 9.54 3.64" stroke-width="1.456"/><path d="M8.82 8.5Q11.9 11.81 14.99 15.1" stroke-width="1.456"/><path d="M15.15 8.64Q12 12.08 8.56 15.22" stroke-width="1.488"/></svg>

Pencil variant

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

<OctagonX size={32} pencil />

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

02How it's drawn

The recipe for octagon-x

Octagon x is not stored as a drawing. It is a recipe of 1 closed shape 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
Z 8.5 3.5 15.5 3.5 20.5 8.5 20.5 15.5 15.5 20.5 8.5 20.5 3.5 15.5 3.5 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 octagon-x. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil