Hard drive icon
New Added in v0.4.0
A free pencil-style hard drive icon, drawn by code from 1 closed shape, 1 dot and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.
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 stringSVG
<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.72 12.18Q10.13 12.08 13.55 11.88" stroke-width="1.488"/><path d="M17.7 12.01l.01 0" stroke-width="2.48"/></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.4.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, 1 dot and 1 line 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.
Z 3.5 7 20.5 7 20.5 17 3.5 17;
O 17.5 12;
L 7 12 13 12
hard-drive as a number: 498296953
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
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.
Five seeds of hard-drive. Seed 0 is the default.
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.
True pixel sizes.