Link icon
A free pencil-style link icon, drawn by code from 4 polylines, 2 arcs and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use link
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 { Link } from '@matita/icons/react';
<Link size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="link" />JavaScript
import { Link, toSvg } from '@matita/icons';
toSvg(Link, { 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-link" data-sketch="" aria-hidden="true"><path d="M10.29 7.31Q8.52 7.58 6.73 7.71" stroke-width="1.376"/><path d="M7.39 7.49C7.08 7.51 6.07 7.4 5.51 7.61C4.95 7.83 4.49 8.35 4.05 8.78C3.61 9.21 3.13 9.65 2.87 10.18C2.6 10.72 2.45 11.4 2.46 12C2.47 12.6 2.66 13.25 2.92 13.79C3.18 14.34 3.58 14.85 4.03 15.25C4.47 15.64 5.02 15.94 5.58 16.18C6.15 16.41 7.1 16.56 7.41 16.64" stroke-width="1.44"/><path d="M6.76 16.65Q8.19 16.53 9.63 16.6" stroke-width="1.456"/><path d="M13.93 7.66Q15.65 7.79 17.37 7.65" stroke-width="1.44"/><path d="M16.4 7.44C16.72 7.47 17.73 7.45 18.32 7.65C18.91 7.85 19.48 8.22 19.95 8.63C20.43 9.04 20.9 9.54 21.18 10.1C21.47 10.67 21.68 11.38 21.66 12C21.64 12.62 21.34 13.28 21.05 13.83C20.75 14.38 20.35 14.88 19.9 15.3C19.44 15.73 18.91 16.16 18.33 16.37C17.74 16.58 16.72 16.54 16.4 16.57" stroke-width="1.744"/><path d="M17.39 16.56Q15.63 16.36 13.87 16.47" stroke-width="1.6"/><path d="M8.06 12.06Q11.99 12.09 15.91 11.98" stroke-width="1.68"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Link } from '@matita/icons/react';
<Link size={32} pencil />The file is icons/link.svg in the package (pencil/link.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for link
Link is not stored as a drawing. It is a recipe of 4 polylines, 2 arcs and 1 line 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 9.5 7.5 7 7.5;
A 7 12 4.5 270 90;
P 7 16.5 9.5 16.5;
P 14.5 7.5 17 7.5;
A 17 12 4.5 -90 90;
P 17 16.5 14.5 16.5;
L 8.5 12 15.5 12
link as a number: 232457833
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 link. Seed 0 is the default.
True pixel sizes.