Camera icon

Added in v0.2.0

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

camera

01Use it

Use camera

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

<Camera size={24} />

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

JavaScript

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

toSvg(Camera, { 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-camera" data-sketch="" aria-hidden="true"><path d="M2.97 7.96Q5.31 7.75 7.64 7.95Q8.22 6.64 8.87 5.36Q11.87 5.3 14.86 5.43Q15.86 6.69 16.64 8.09Q18.91 8.11 21.18 7.97Q20.65 13.51 21.1 19.06Q11.99 19.45 2.88 18.87Q2.7 13.41 2.97 7.96Q3.83 8.03 4.69 7.96" stroke-width="1.824"/><path d="M15.42 11.73C15.46 11.96 15.67 12.65 15.66 13.11C15.64 13.57 15.53 14.07 15.34 14.49C15.14 14.91 14.82 15.32 14.46 15.63C14.11 15.94 13.66 16.18 13.2 16.35C12.75 16.52 12.24 16.65 11.74 16.64C11.25 16.64 10.71 16.53 10.25 16.33C9.79 16.13 9.34 15.81 8.99 15.45C8.64 15.08 8.3 14.62 8.15 14.14C8 13.67 8.03 13.12 8.08 12.61C8.12 12.1 8.17 11.53 8.4 11.08C8.64 10.63 9.09 10.25 9.51 9.93C9.93 9.6 10.42 9.31 10.93 9.15C11.44 8.99 12.04 8.92 12.58 8.97C13.13 9.02 13.72 9.18 14.2 9.45C14.68 9.71 15.12 10.13 15.45 10.57C15.77 11.01 16.02 11.54 16.16 12.07C16.31 12.59 16.29 13.46 16.31 13.74" stroke-width="1.776"/></svg>

Pencil variant

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

<Camera size={32} pencil />

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

02How it's drawn

The recipe for camera

Camera is not stored as a drawing. It is a recipe of 1 closed shape 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 8 7.5 8 9 5.5 15 5.5 16.5 8 21 8 21 19 3 19;
C 12 13 3.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 camera. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil