Arrow left right icon

A free pencil-style arrow left right icon, drawn by code from 2 lines and 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.

arrow-left-right

01Use it

Use arrow-left-right

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 { ArrowLeftRight } from '@matita/icons/react';

<ArrowLeftRight size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="arrow-left-right" />

JavaScript

import { ArrowLeftRight, toSvg } from '@matita/icons';

toSvg(ArrowLeftRight, { size: 24 });   // SVG string

SVG

<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-arrow-left-right" data-sketch="" aria-hidden="true"><path d="M3.94 7.99Q11.93 7.91 19.91 8.03" stroke-width="1.744"/><path d="M15.63 4.14Q17.42 6.19 19.48 7.97Q17.6 9.77 15.91 11.74" stroke-width="1.664"/><path d="M19.68 16.06Q11.89 16.72 4.1 16.16" stroke-width="1.664"/><path d="M8.47 12.01Q6.28 13.9 4.39 16.09Q6.29 17.91 8.39 19.51" stroke-width="1.664"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { ArrowLeftRight } from '@matita/icons/react';

<ArrowLeftRight size={32} pencil />

The file is icons/arrow-left-right.svg in the package (pencil/arrow-left-right.svg for the pencil variant). Matita 0.3.0.

02How it's drawn

The recipe for arrow-left-right

Arrow left right is not stored as a drawing. It is a recipe of 2 lines and 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.

A · Recipe
L 4.5 8 19.5 8;
P 16 4.5 19.5 8 16 11.5;
L 19.5 16 4.5 16;
P 8 12.5 4.5 16 8 19.5
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of arrow-left-right. Seed 0 is the default.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil