Microscope icon

New Added in v0.4.0

A free pencil-style microscope icon, drawn by code from 1 closed shape, 4 lines and 1 arc. Use it as an SVG, a React component, or by name. MIT licensed.

microscope

01Use it

Use microscope

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

<Microscope size={24} />

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

JavaScript

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

toSvg(Microscope, { 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-microscope" data-sketch="" aria-hidden="true"><path d="M6.69 11.66Q9.77 8.23 12.36 4.41Q14.4 6.4 16.5 8.35Q13.32 11.45 10.01 14.39Q8.42 12.95 6.69 11.66Q6.99 11.2 7.36 10.8" stroke-width="1.504"/><path d="M13.58 3.23Q15.68 5.35 17.73 7.52" stroke-width="1.68"/><path d="M7.4 13.7Q6.49 14.85 5.57 15.99" stroke-width="1.408"/><path d="M17.95 7.8C18.2 8.23 19.08 9.48 19.44 10.41C19.81 11.33 20.15 12.38 20.12 13.36C20.09 14.34 19.71 15.39 19.26 16.28C18.81 17.17 18.17 18.03 17.43 18.69C16.69 19.35 15.75 19.93 14.81 20.24C13.87 20.54 12.76 20.66 11.78 20.54C10.8 20.42 9.41 19.69 8.93 19.52" stroke-width="1.552"/><path d="M3.21 17.81Q6.39 17.92 9.57 18.18" stroke-width="1.536"/><path d="M6.74 21.3Q12.61 21.36 18.49 21.61" stroke-width="1.552"/></svg>

Pencil variant

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

<Microscope size={32} pencil />

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

02How it's drawn

The recipe for microscope

Microscope is not stored as a drawing. It is a recipe of 1 closed shape, 4 lines and 1 arc 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
Z 6.5 11.5 12.5 4.5 16.5 8.5 10 14.5;
L 13.7 3.3 17.7 7.3;
L 7.4 14 5.8 15.6;
A 12.5 13 7.5 -35 110;
L 3.5 18 9.5 18;
L 7 21.5 18 21.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 microscope. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil