Brain icon

New Added in v0.4.0

A free pencil-style brain icon, drawn by code from 16 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.38 8.41Q8.98 8.12 9.19 10.92" stroke-width="1.824"/><path d="M6.22 13.04Q8.69 12.31 8.95 15.05" stroke-width="1.456"/><path d="M5.63 16.45Q7.91 16.34 9.03 18.27" stroke-width="1.728"/><path d="M12.79 4.81Q16.15 2.6 17.58 5.17" stroke-width="1.44"/><path d="M17.03 5Q20.42 5.42 19.27 9.3" stroke-width="1.776"/><path d="M19.06 8.86Q21.32 11.99 19.43 15.4" stroke-width="1.728"/><path d="M19.24 14.75Q20.64 18.46 16.75 19.05" stroke-width="1.744"/><path d="M17.21 19.01Q14.8 21.6 12.92 19.43" stroke-width="1.616"/><path d="M13 4.1Q13.04 11.94 12.85 19.78" stroke-width="1.424"/><path d="M17.79 8.44Q15.15 7.89 15.05 10.65" stroke-width="1.504"/><path d="M17.65 13.14Q15.36 12.32 14.74 15.22" stroke-width="1.456"/><path d="M18.2 16.52Q15.93 16.65 15.14 18.27" stroke-width="1.536"/></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.4.0.

02How it's drawn

The recipe for brain

Brain is not stored as a drawing. It is a recipe of 16 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.5 8.5 9 8 9 10.5;
Q 6.5 13 8.5 12.5 9 15;
Q 6 16.5 8 16.5 8.8 18;
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 8.5 15 8 15 10.5;
Q 17.5 13 15.5 12.5 15 15;
Q 18 16.5 16 16.5 15.2 18
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