File code icon
New Added in v0.4.0
A free pencil-style file code icon, drawn by code from 3 polylines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use file-code
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 { FileCode } from '@matita/icons/react';
<FileCode size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="file-code" />JavaScript
import { FileCode, toSvg } from '@matita/icons';
toSvg(FileCode, { 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-code" data-sketch="" aria-hidden="true"><path d="M14.33 3.47Q10.11 3.43 5.89 3.33Q5.71 11.92 5.92 20.51Q11.97 20.79 18.02 20.57Q18.5 14.02 18.04 7.48Q16.04 5.42 13.93 3.48Q14.07 5.5 14.01 7.53Q16.23 7.47 18.44 7.59" stroke-width="1.392"/><path d="M10.24 11.93Q9.04 13.1 7.89 14.32Q9.03 15.84 10.16 17.35" stroke-width="1.664"/><path d="M13.48 11.61Q14.69 12.96 15.9 14.31Q14.75 15.81 13.83 17.46" stroke-width="1.664"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { FileCode } from '@matita/icons/react';
<FileCode size={32} pencil />The file is icons/file-code.svg in the package (pencil/file-code.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for file-code
File code is not stored as a drawing. It is a recipe of 3 polylines 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;
P 10 12 8 14.5 10 17;
P 14 12 16 14.5 14 17
file-code as a number: 4273067175
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-code. Seed 0 is the default.
file-code from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/file-code.svg.
True pixel sizes.