Thermometer icon

New Added in v0.4.0

A free pencil-style thermometer icon, drawn by code from 3 lines and 2 arcs. Use it as an SVG, a React component, or by name. MIT licensed.

thermometer

01Use it

Use thermometer

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

<Thermometer size={24} />

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

JavaScript

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

toSvg(Thermometer, { 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-thermometer" data-sketch="" aria-hidden="true"><path d="M9.31 5.11Q9.03 9.7 9.49 14.29" stroke-width="1.408"/><path d="M14.61 5.46Q14.85 9.88 14.59 14.3" stroke-width="1.744"/><path d="M9.38 5.76C9.43 5.59 9.55 5.05 9.69 4.74C9.84 4.43 10.04 4.18 10.25 3.91C10.46 3.65 10.67 3.31 10.97 3.17C11.26 3.02 11.66 3.01 12 3.03C12.34 3.04 12.68 3.13 12.99 3.26C13.3 3.39 13.62 3.57 13.87 3.81C14.11 4.05 14.32 4.37 14.44 4.69C14.55 5.02 14.55 5.58 14.57 5.75" stroke-width="1.488"/><path d="M14.14 13.44C14.4 13.65 15.36 14.18 15.72 14.71C16.09 15.24 16.25 15.98 16.34 16.62C16.44 17.26 16.45 17.95 16.31 18.57C16.16 19.19 15.86 19.82 15.47 20.34C15.08 20.85 14.54 21.35 13.96 21.64C13.39 21.93 12.65 22.06 12 22.05C11.35 22.04 10.66 21.85 10.07 21.58C9.47 21.31 8.82 20.93 8.42 20.43C8.02 19.92 7.83 19.2 7.69 18.57C7.55 17.93 7.47 17.24 7.57 16.6C7.67 15.96 7.9 15.24 8.28 14.71C8.67 14.19 9.61 13.68 9.88 13.48" stroke-width="1.424"/><path d="M12.13 8.78Q12.14 12.44 11.88 16.09" stroke-width="1.424"/></svg>

Pencil variant

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

<Thermometer size={32} pencil />

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

02How it's drawn

The recipe for thermometer

Thermometer is not stored as a drawing. It is a recipe of 3 lines and 2 arcs 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
L 9.5 5.5 9.5 13.8;
L 14.5 5.5 14.5 13.8;
A 12 5.5 2.5 180 360;
A 12 17.5 4.5 -56.3 236.3;
L 12 9 12 16
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 thermometer. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil