Calculator icon

New Added in v0.4.0

A free pencil-style calculator icon, drawn by code from 1 rectangle, 1 closed shape and 6 dots. Use it as an SVG, a React component, or by name. MIT licensed.

calculator

01Use it

Use calculator

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

<Calculator size={24} />

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

JavaScript

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

toSvg(Calculator, { 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-calculator" data-sketch="" aria-hidden="true"><path d="M3.54 3.13Q11.58 3.33 19.62 2.97M19.14 2.04Q18.37 12.24 18.83 22.44M20.39 20.99Q12.16 20.84 3.92 20.91M5.09 22.1Q5.65 12.19 5.19 2.28" stroke-width="1.504"/><path d="M8.43 6.34Q12.04 6.22 15.64 6.47Q15.67 7.73 15.69 8.99Q12.05 8.8 8.43 9.1Q8.45 7.72 8.43 6.34Q9.31 6.37 10.18 6.37" stroke-width="1.68"/><path d="M8.46 12.79l.01 0M11.84 12.92l.01 0M15.43 12.88l.01 0M8.63 17.11l.01 0M11.84 17.05l.01 0M15.5 17.13l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<Calculator size={32} pencil />

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

02How it's drawn

The recipe for calculator

Calculator is not stored as a drawing. It is a recipe of 1 rectangle, 1 closed shape and 6 dots 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 5 3 14 18;
Z 8.5 6.5 15.5 6.5 15.5 9 8.5 9;
O 8.5 12.8;
O 12 12.8;
O 15.5 12.8;
O 8.5 17;
O 12 17;
O 15.5 17
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 calculator. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil