Image icon

Added in v0.1.0

A free pencil-style image icon, drawn by code from 1 rectangle, 1 circle and 1 polyline. Use it as an SVG, a React component, or by name. MIT licensed.

image

01Use it

Use image

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

<Image size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="image" />

JavaScript

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

toSvg(Image, { 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-image" data-sketch="" aria-hidden="true"><path d="M2.18 5.08Q12.01 5.43 21.84 4.81M20.37 3.96Q20.29 12.1 20.38 20.25M21.15 19.05Q11.76 18.64 2.37 18.9M3.32 20.38Q3.16 11.83 3.42 3.29" stroke-width="1.392"/><path d="M7.61 9.21C7.68 9.12 7.85 8.82 8.02 8.69C8.2 8.56 8.44 8.48 8.67 8.43C8.9 8.37 9.16 8.34 9.4 8.36C9.65 8.39 9.93 8.44 10.15 8.57C10.36 8.69 10.55 8.89 10.69 9.1C10.82 9.3 10.9 9.55 10.95 9.8C11 10.04 11.03 10.32 10.97 10.56C10.91 10.81 10.77 11.07 10.6 11.28C10.43 11.49 10.19 11.68 9.93 11.81C9.68 11.95 9.38 12.06 9.08 12.09C8.78 12.13 8.44 12.11 8.15 12.02C7.86 11.93 7.59 11.73 7.36 11.53C7.13 11.33 6.92 11.09 6.78 10.81C6.64 10.54 6.52 10.21 6.52 9.91C6.52 9.6 6.64 9.28 6.78 8.99C6.91 8.7 7.08 8.38 7.32 8.15C7.56 7.93 8.07 7.7 8.22 7.61" stroke-width="1.488"/><path d="M3.7 17.05Q6.75 14.85 9.64 12.45Q11.09 14.18 12.82 15.62Q14.31 14.21 15.81 12.81Q18.32 14.77 20.65 16.93" stroke-width="1.76"/></svg>

Pencil variant

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

<Image size={32} pencil />

The file is icons/image.svg in the package (pencil/image.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for image

Image is not stored as a drawing. It is a recipe of 1 rectangle, 1 circle and 1 polyline 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
R 3.5 5 17 14;
C 9 10 1.6;
P 3.8 17 9.5 12.5 13 15.5 16 13 20.2 16.8
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 image. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

image from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/image.svg.

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

True pixel sizes.

Ink
Pencil