Hospital bed icon

New Added in v0.4.0

A free pencil-style hospital bed icon, drawn by code from 3 lines, 1 circle and 1 polyline. Use it as an SVG, a React component, or by name. MIT licensed.

hospital-bed

01Use it

Use hospital-bed

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

<HospitalBed size={24} />

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

JavaScript

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

toSvg(HospitalBed, { 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-hospital-bed" data-sketch="" aria-hidden="true"><path d="M3.42 5.11Q3.68 12.47 3.5 19.84" stroke-width="1.52"/><path d="M3.16 15.35Q11.9 15.34 20.64 15.47" stroke-width="1.408"/><path d="M20.59 14.96Q20.41 17.44 20.37 19.91" stroke-width="1.728"/><path d="M7.37 9.5C7.5 9.51 7.93 9.51 8.19 9.59C8.46 9.67 8.74 9.79 8.97 9.97C9.19 10.14 9.41 10.39 9.53 10.66C9.66 10.92 9.69 11.25 9.69 11.54C9.69 11.84 9.63 12.16 9.51 12.43C9.39 12.71 9.2 12.97 8.99 13.19C8.77 13.41 8.51 13.66 8.22 13.77C7.93 13.88 7.57 13.89 7.24 13.87C6.91 13.85 6.55 13.81 6.25 13.66C5.96 13.51 5.7 13.24 5.49 12.97C5.28 12.71 5.1 12.39 5 12.05C4.9 11.72 4.84 11.32 4.9 10.98C4.96 10.64 5.17 10.32 5.37 10.01C5.57 9.71 5.78 9.35 6.07 9.15C6.37 8.95 6.78 8.88 7.15 8.83C7.52 8.77 7.92 8.73 8.28 8.81C8.65 8.9 9.14 9.25 9.32 9.34" stroke-width="1.456"/><path d="M10.88 15.94Q10.93 13.27 10.9 10.59Q14.14 10.51 17.37 10.49Q18.81 12.02 20.45 13.34Q20.48 14.64 20.43 15.95" stroke-width="1.44"/></svg>

Pencil variant

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

<HospitalBed size={32} pencil />

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

02How it's drawn

The recipe for hospital-bed

Hospital bed is not stored as a drawing. It is a recipe of 3 lines, 1 circle and 1 polyline 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
L 3.5 5.5 3.5 19.5;
L 3.5 15.5 20.5 15.5;
L 20.5 15.5 20.5 19.5;
C 7.5 11.5 2;
P 11 15.5 11 10.5 17.5 10.5 20.5 13.5 20.5 15.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 hospital-bed. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil