Frame icon
A free pencil-style frame icon, drawn by code from 4 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use frame
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 { Frame } from '@matita/icons/react';
<Frame size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="frame" />JavaScript
import { Frame, toSvg } from '@matita/icons';
toSvg(Frame, { 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-frame" data-sketch="" aria-hidden="true"><path d="M21.25 6.69Q11.89 6.23 2.52 6.3" stroke-width="1.568"/><path d="M21.03 17.41Q11.89 17.75 2.75 17.33" stroke-width="1.504"/><path d="M6.41 2.79Q6.12 12.04 6.5 21.29" stroke-width="1.472"/><path d="M17.68 2.44Q17.29 11.96 17.65 21.48" stroke-width="1.44"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Frame } from '@matita/icons/react';
<Frame size={32} pencil />The file is icons/frame.svg in the package (pencil/frame.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for frame
Frame is not stored as a drawing. It is a recipe of 4 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.
L 21 6.5 3 6.5;
L 21 17.5 3 17.5;
L 6.5 3 6.5 21;
L 17.5 3 17.5 21
frame as a number: 3523899814
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 frame. Seed 0 is the default.
True pixel sizes.