Zoom in icon

Added in v0.2.0

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.14 4.68 9.35 4.05 10.19 3.99C11.03 3.93 11.96 4.13 12.75 4.46C13.55 4.79 14.37 5.31 14.96 5.95C15.56 6.6 16.03 7.48 16.32 8.34C16.62 9.2 16.8 10.22 16.72 11.12C16.64 12.03 16.25 12.94 15.83 13.76C15.42 14.59 14.92 15.5 14.23 16.06C13.54 16.61 12.57 16.92 11.69 17.09C10.82 17.26 9.88 17.25 8.99 17.07C8.11 16.9 7.14 16.57 6.4 16.02C5.66 15.46 4.98 14.6 4.57 13.73C4.16 12.86 4.01 11.8 3.95 10.82C3.89 9.83 3.89 8.73 4.21 7.81C4.52 6.89 5.16 5.96 5.86 5.31C6.55 4.66 7.48 4.19 8.36 3.88C9.25 3.57 10.23 3.39 11.16 3.45C12.09 3.52 13.48 4.13 13.94 4.26" 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.7.0.

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.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil