Book open icon

New Added in v0.4.0

A free pencil-style book open icon, drawn by code from 4 curves and 3 lines. Use it as an SVG, a React component, or by name. MIT licensed.

book-open

01Use it

Use book-open

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

<BookOpen size={24} />

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

JavaScript

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

toSvg(BookOpen, { 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-book-open" data-sketch="" aria-hidden="true"><path d="M12.16 6.42Q7.81 4.16 2.58 4.47" stroke-width="1.632"/><path d="M2.88 4.07Q2.86 11.52 3.15 18.97" stroke-width="1.664"/><path d="M2.58 18.54Q8.09 18.16 12.32 20.53" stroke-width="1.52"/><path d="M11.82 6.88Q16.1 3.85 21.31 4.33" stroke-width="1.664"/><path d="M21.06 4.08Q21.12 11.38 20.86 18.68" stroke-width="1.632"/><path d="M21.48 18.41Q16.18 18.31 11.67 20.87" stroke-width="1.552"/><path d="M11.8 6.17Q12.51 13.47 12.13 20.76" stroke-width="1.776"/></svg>

Pencil variant

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

<BookOpen size={32} pencil />

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

02How it's drawn

The recipe for book-open

Book open is not stored as a drawing. It is a recipe of 4 curves 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
Q 12 6.5 8 4 3 4.5;
L 3 4.5 3 18.5;
Q 3 18.5 8 18.3 12 20.5;
Q 12 6.5 16 4 21 4.5;
L 21 4.5 21 18.5;
Q 21 18.5 16 18.3 12 20.5;
L 12 6.5 12 20.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 book-open. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil