Brain icon

Added in v0.4.0

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

brain

01Use it

Use brain

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

<Brain size={24} />

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

JavaScript

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

toSvg(Brain, { 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-brain" data-sketch="" aria-hidden="true"><path d="M11.06 4.8Q8.11 2.61 6.37 5.3" stroke-width="1.68"/><path d="M6.69 5Q3.51 5.3 4.64 9.31" stroke-width="1.664"/><path d="M4.71 8.91Q2.42 12.14 4.7 15.49" stroke-width="1.52"/><path d="M4.7 14.96Q3.62 18.39 7.46 19.24" stroke-width="1.6"/><path d="M6.87 18.8Q8.91 21.38 11.12 19.48" stroke-width="1.664"/><path d="M11.03 4.19Q11.42 12.08 10.87 19.98" stroke-width="1.712"/><path d="M6.65 10Q8.73 9.12 8.94 11.42" stroke-width="1.824"/><path d="M6.22 13.54Q8.69 12.81 8.42 15.04" stroke-width="1.456"/><path d="M12.67 4.6Q15.91 2.64 17.75 5.26" stroke-width="1.728"/><path d="M17.22 5.03Q20.65 5.3 19.46 9.18" stroke-width="1.44"/><path d="M19.16 8.78Q21.42 11.92 19.15 15.24" stroke-width="1.776"/><path d="M19.18 14.8Q20.32 18.49 16.76 19.17" stroke-width="1.728"/><path d="M17.14 18.81Q15.14 21.46 12.84 19.27" stroke-width="1.744"/><path d="M13.1 4.18Q13.78 12.02 13.14 19.86" stroke-width="1.568"/><path d="M17.68 9.97Q15.86 8.97 15.43 11.17" stroke-width="1.424"/><path d="M17.78 13.45Q15.65 12.89 15.55 15.15" stroke-width="1.504"/></svg>

Pencil variant

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

<Brain size={32} pencil />

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

02How it's drawn

The recipe for brain

Brain is not stored as a drawing. It is a recipe of 14 curves and 2 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 11 4.5 8 2.8 6.5 5;
Q 6.5 5 3.5 5.5 4.5 9;
Q 4.5 9 2.5 12 4.5 15;
Q 4.5 15 3.5 18.5 7 19;
Q 7 19 9 21.5 11 19.5;
L 11 4.5 11 19.5;
Q 6.75 10 8.75 9 8.75 11;
Q 6.5 13.5 8.5 13 8.5 15;
Q 13 4.5 16 2.8 17.5 5;
Q 17.5 5 20.5 5.5 19.5 9;
Q 19.5 9 21.5 12 19.5 15;
Q 19.5 15 20.5 18.5 17 19;
Q 17 19 15 21.5 13 19.5;
L 13 4.5 13 19.5;
Q 17.5 10 16 9 15.5 11;
Q 17.5 13.5 15.5 13 15.5 15
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 brain. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil