Hard drive icon

Added in v0.4.0

A free pencil-style hard drive icon, drawn by code from 1 closed shape, 5 lines and 1 circle. Use it as an SVG, a React component, or by name. MIT licensed.

hard-drive

01Use it

Use hard-drive

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

<HardDrive size={24} />

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

JavaScript

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

toSvg(HardDrive, { 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-hard-drive" data-sketch="" aria-hidden="true"><path d="M3.37 7.07Q11.84 6.56 20.32 7.03Q20.11 12 20.5 16.95Q12 16.98 3.49 17.13Q3.29 12.1 3.37 7.07Q4.2 7.09 5.02 7.07" stroke-width="1.776"/><path d="M6.48 10.04Q8.92 10.01 11.35 10.18" stroke-width="1.776"/><path d="M6.69 14.15Q8.9 13.97 11.11 14.06" stroke-width="1.696"/><path d="M15.03 11.86C15.04 11.77 15.04 11.47 15.1 11.3C15.17 11.14 15.31 10.99 15.44 10.85C15.58 10.71 15.73 10.59 15.9 10.49C16.06 10.39 16.26 10.28 16.46 10.26C16.66 10.23 16.88 10.29 17.07 10.35C17.27 10.41 17.47 10.5 17.65 10.63C17.82 10.75 18.01 10.9 18.13 11.09C18.26 11.27 18.34 11.51 18.38 11.73C18.41 11.96 18.4 12.21 18.36 12.43C18.32 12.66 18.24 12.9 18.13 13.11C18.02 13.32 17.87 13.54 17.68 13.7C17.5 13.86 17.26 13.98 17.02 14.06C16.79 14.14 16.51 14.2 16.26 14.18C16 14.17 15.73 14.09 15.5 13.97C15.26 13.86 15.05 13.68 14.86 13.49C14.66 13.3 14.46 13.09 14.34 12.84C14.22 12.59 14.14 12.29 14.12 12.01C14.1 11.72 14.21 11.27 14.23 11.13" stroke-width="1.536"/><path d="M5.32 4.17Q12.08 4.33 18.83 4.12" stroke-width="1.792"/><path d="M3.21 7.11Q4.43 5.16 5.89 3.36" stroke-width="1.696"/><path d="M20.72 7.32Q19.56 5.61 18.25 4" stroke-width="1.664"/></svg>

Pencil variant

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

<HardDrive size={32} pencil />

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

02How it's drawn

The recipe for hard-drive

Hard drive is not stored as a drawing. It is a recipe of 1 closed shape, 5 lines and 1 circle 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 3.5 7 20.5 7 20.5 17 3.5 17;
L 7 10 11 10;
L 7 14 11 14;
C 16.5 12 1.5;
L 5.5 4 18.5 4;
L 3.5 7 5.5 4;
L 20.5 7 18.5 4
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 hard-drive. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil