Crop icon
A free pencil-style crop icon, drawn by code from 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use crop
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 { Crop } from '@matita/icons/react';
<Crop size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="crop" />JavaScript
import { Crop, toSvg } from '@matita/icons';
toSvg(Crop, { 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-crop" data-sketch="" aria-hidden="true"><path d="M6.09 2.16Q6.34 10.16 5.96 18.15Q13.82 18.39 21.67 18" stroke-width="1.808"/><path d="M2.2 5.85Q10.12 6.35 18.06 6.14Q18.06 13.91 17.89 21.68" stroke-width="1.808"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Crop } from '@matita/icons/react';
<Crop size={32} pencil />The file is icons/crop.svg in the package (pencil/crop.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for crop
Crop is not stored as a drawing. It is a recipe of 2 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 6 2.5 6 18 21.5 18;
P 2.5 6 18 6 18 21.5
crop as a number: 2523074583
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 crop. Seed 0 is the default.
True pixel sizes.