File x icon
New Added in v0.4.0
A free pencil-style file x icon, drawn by code from 1 polyline and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use file-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 { FileX } from '@matita/icons/react';
<FileX size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="file-x" />JavaScript
import { FileX, toSvg } from '@matita/icons';
toSvg(FileX, { 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-file-x" data-sketch="" aria-hidden="true"><path d="M14.28 3.52Q10.09 3.37 5.9 3.38Q5.59 12.04 6.06 20.7Q12.04 20.47 18.01 20.68Q17.71 14.17 18.19 7.66Q16.25 5.48 14 3.6Q14.28 5.59 14.19 7.58Q16.25 7.73 18.31 7.53" stroke-width="1.744"/><path d="M9.28 11.88Q12.19 14.5 14.83 17.39" stroke-width="1.712"/><path d="M14.58 11.66Q11.72 14.44 9.08 17.44" stroke-width="1.488"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { FileX } from '@matita/icons/react';
<FileX size={32} pencil />The file is icons/file-x.svg in the package (pencil/file-x.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for file-x
File x is not stored as a drawing. It is a recipe of 1 polyline 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.
P 14 3.5 6 3.5 6 20.5 18 20.5 18 7.5 14 3.5 14 7.5 18 7.5;
L 9.5 12 14.5 17;
L 14.5 12 9.5 17
file-x as a number: 4070868758
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, 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 file-x. Seed 0 is the default.
file-x from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/file-x.svg.
True pixel sizes.