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.
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 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-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.
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
octagon-x as a number: 2449422933
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 octagon-x. Seed 0 is the default.
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.
True pixel sizes.