Database icon
Added in v0.2.0
A free pencil-style database icon, drawn by code from 1 ellipse, 2 lines and 2 curves. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use database
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 { Database } from '@matita/icons/react';
<Database size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="database" />JavaScript
import { Database, toSvg } from '@matita/icons';
toSvg(Database, { 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-database" data-sketch="" aria-hidden="true"><path d="M11.26 8.01C10.75 7.96 9.06 7.9 8.17 7.74C7.29 7.57 6.61 7.28 5.96 7C5.31 6.73 4.55 6.44 4.28 6.11C4.01 5.78 4.12 5.38 4.35 5.04C4.58 4.69 5.06 4.35 5.64 4.05C6.23 3.76 6.98 3.47 7.84 3.26C8.7 3.05 9.77 2.86 10.81 2.79C11.85 2.72 13.07 2.74 14.09 2.84C15.1 2.94 16.05 3.16 16.89 3.39C17.73 3.61 18.63 3.88 19.12 4.21C19.61 4.53 19.72 4.94 19.8 5.32C19.89 5.7 19.96 6.13 19.63 6.49C19.31 6.86 18.6 7.23 17.84 7.51C17.07 7.79 16.06 8.02 15.05 8.18C14.05 8.33 12.9 8.44 11.83 8.44C10.76 8.43 9.64 8.32 8.63 8.17C7.62 8.02 6.24 7.63 5.76 7.53" stroke-width="1.664"/><path d="M4.6 4.77Q4.97 11.76 4.37 18.75" stroke-width="1.456"/><path d="M19.68 4.91Q19.52 11.97 19.57 19.03" stroke-width="1.392"/><path d="M4.17 11.92Q11.85 17.14 19.64 11.8" stroke-width="1.392"/><path d="M4.13 18.51Q12.07 22.88 19.95 18.19" stroke-width="1.488"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Database } from '@matita/icons/react';
<Database size={32} pencil />The file is icons/database.svg in the package (pencil/database.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for database
Database is not stored as a drawing. It is a recipe of 1 ellipse, 2 lines and 2 curves 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.
E 12 5.5 7.5 2.5;
L 4.5 5.5 4.5 18.5;
L 19.5 5.5 19.5 18.5;
Q 4.5 12 12 17 19.5 12;
Q 4.5 18.5 12 23 19.5 18.5
database as a number: 2707807672
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, 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 database. Seed 0 is the default.
database from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/database.svg.
True pixel sizes.