Zoom in icon

A free pencil-style zoom in icon, drawn by code from 1 circle and 3 lines. Use it as an SVG, a React component, or by name. MIT licensed.

zoom-in

01Use it

Use zoom-in

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

<ZoomIn size={24} />

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

JavaScript

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

toSvg(ZoomIn, { 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-zoom-in" data-sketch="" aria-hidden="true"><path d="M7.73 4.82C8.12 4.68 9.28 4.07 10.09 3.99C10.89 3.92 11.79 4.09 12.56 4.38C13.34 4.67 14.14 5.13 14.74 5.72C15.34 6.31 15.84 7.12 16.18 7.93C16.51 8.74 16.76 9.69 16.75 10.57C16.74 11.44 16.43 12.35 16.11 13.18C15.79 14.01 15.42 14.94 14.82 15.55C14.22 16.17 13.33 16.58 12.52 16.86C11.7 17.14 10.81 17.27 9.94 17.24C9.08 17.21 8.11 17.07 7.33 16.67C6.54 16.26 5.76 15.58 5.23 14.83C4.7 14.09 4.38 13.12 4.14 12.2C3.9 11.28 3.69 10.25 3.81 9.32C3.92 8.39 4.33 7.38 4.84 6.6C5.35 5.82 6.11 5.17 6.87 4.66C7.62 4.14 8.49 3.71 9.37 3.52C10.25 3.33 11.68 3.5 12.14 3.49" stroke-width="1.664"/><path d="M15.03 15.06Q17.69 17.53 20.13 20.22" stroke-width="1.568"/><path d="M10.37 7.59Q10.64 10.55 10.55 13.51" stroke-width="1.552"/><path d="M7.6 10.63Q10.49 10.57 13.39 10.6" stroke-width="1.472"/></svg>

Pencil variant

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

<ZoomIn size={32} pencil />

The file is icons/zoom-in.svg in the package (pencil/zoom-in.svg for the pencil variant). Matita 0.2.1.

02How it's drawn

The recipe for zoom-in

Zoom in is not stored as a drawing. It is a recipe of 1 circle and 3 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.

A · Recipe
C 10.5 10.5 6.2;
L 15.2 15.2 20 20;
L 10.5 7.8 10.5 13.2;
L 7.8 10.5 13.2 10.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 zoom-in. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil