Captions icon

New Added in v0.7.0

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

captions

01Use it

Use captions

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

<Captions size={24} />

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

JavaScript

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

toSvg(Captions, { 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-captions" data-sketch="" aria-hidden="true"><path d="M1.72 4.98Q12.02 4.92 22.32 4.82M21.09 4.35Q20.97 12.37 20.82 20.39M22.22 18.91Q11.88 19.58 1.53 18.98M3.2 19.57Q3.63 11.82 3.15 4.06" stroke-width="1.376"/><path d="M10.27 13.16C10.16 13.25 9.84 13.57 9.6 13.72C9.35 13.88 9.07 14.04 8.79 14.08C8.51 14.12 8.18 14.08 7.91 13.97C7.65 13.87 7.45 13.65 7.22 13.47C6.99 13.29 6.65 13.15 6.51 12.9C6.38 12.66 6.43 12.3 6.43 12C6.42 11.7 6.39 11.37 6.49 11.08C6.59 10.8 6.8 10.5 7.04 10.32C7.27 10.14 7.61 10.09 7.91 10C8.2 9.92 8.53 9.75 8.81 9.8C9.09 9.84 9.33 10.11 9.59 10.28C9.86 10.44 10.25 10.69 10.38 10.77" stroke-width="1.68"/><path d="M17.19 13.1C17.11 13.23 16.93 13.7 16.7 13.88C16.47 14.07 16.11 14.19 15.81 14.21C15.51 14.23 15.2 14.1 14.91 14.01C14.62 13.91 14.32 13.82 14.08 13.64C13.84 13.46 13.59 13.2 13.46 12.93C13.33 12.66 13.3 12.31 13.3 12C13.3 11.69 13.31 11.32 13.45 11.07C13.59 10.81 13.91 10.64 14.15 10.45C14.39 10.26 14.61 9.98 14.88 9.91C15.15 9.85 15.49 10.01 15.77 10.07C16.06 10.12 16.36 10.13 16.61 10.27C16.85 10.4 17.15 10.76 17.26 10.86" stroke-width="1.552"/></svg>

Pencil variant

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

<Captions size={32} pencil />

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

02How it's drawn

The recipe for captions

Captions is not stored as a drawing. It is a recipe of 1 rectangle 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
R 3 5 18 14;
A 8.5 12 2.1 40 320;
A 15.5 12 2.1 40 320
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 captions. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil