Cpu icon

New Added in v0.4.0

A free pencil-style cpu icon, drawn by code from 2 closed shapes and 8 lines. Use it as an SVG, a React component, or by name. MIT licensed.

cpu

01Use it

Use cpu

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

<Cpu size={24} />

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

JavaScript

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

toSvg(Cpu, { 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-cpu" data-sketch="" aria-hidden="true"><path d="M6.51 6.38Q11.94 6.02 17.35 6.57Q17.08 12.12 17.34 17.67Q11.92 17.64 6.49 17.68Q6.04 12.03 6.51 6.38Q7.36 6.45 8.21 6.41" stroke-width="1.776"/><path d="M9.53 9.68Q12.01 9.43 14.51 9.54Q14.51 12.05 14.39 14.55Q11.94 14.47 9.49 14.31Q9.31 11.99 9.53 9.68Q10.17 9.62 10.82 9.64" stroke-width="1.584"/><path d="M9.37 2.99Q9.48 5.06 9.31 7.14" stroke-width="1.584"/><path d="M14.49 2.67Q14.44 4.76 14.7 6.84" stroke-width="1.488"/><path d="M9.65 17.26Q9.54 19.42 9.34 21.57" stroke-width="1.712"/><path d="M14.4 17.21Q14.59 19.39 14.57 21.58" stroke-width="1.584"/><path d="M2.4 9.54Q4.62 9.46 6.84 9.41" stroke-width="1.44"/><path d="M2.91 14.69Q4.91 14.74 6.91 14.54" stroke-width="1.776"/><path d="M16.94 9.67Q19.16 9.72 21.38 9.7" stroke-width="1.472"/><path d="M16.96 14.49Q19.02 14.48 21.09 14.32" stroke-width="1.776"/></svg>

Pencil variant

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

<Cpu size={32} pencil />

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

02How it's drawn

The recipe for cpu

Cpu is not stored as a drawing. It is a recipe of 2 closed shapes and 8 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
Z 6.5 6.5 17.5 6.5 17.5 17.5 6.5 17.5;
Z 9.5 9.5 14.5 9.5 14.5 14.5 9.5 14.5;
L 9.5 3 9.5 6.5;
L 14.5 3 14.5 6.5;
L 9.5 17.5 9.5 21;
L 14.5 17.5 14.5 21;
L 3 9.5 6.5 9.5;
L 3 14.5 6.5 14.5;
L 17.5 9.5 21 9.5;
L 17.5 14.5 21 14.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 cpu. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil