Atom icon
New Added in v0.4.0
A free pencil-style atom icon, drawn by code from 2 ellipses and 1 dot. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use atom
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 { Atom } from '@matita/icons/react';
<Atom size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="atom" />JavaScript
import { Atom, toSvg } from '@matita/icons';
toSvg(Atom, { 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-atom" data-sketch="" aria-hidden="true"><path d="M10.05 15.9C9.53 15.82 7.85 15.66 6.91 15.42C5.97 15.18 5.14 14.83 4.42 14.46C3.71 14.09 2.95 13.66 2.62 13.2C2.29 12.74 2.38 12.2 2.47 11.7C2.55 11.2 2.67 10.66 3.14 10.2C3.6 9.75 4.45 9.34 5.26 8.98C6.08 8.63 7.01 8.29 8.03 8.06C9.05 7.82 10.24 7.62 11.37 7.57C12.5 7.53 13.73 7.64 14.82 7.79C15.91 7.94 17 8.16 17.93 8.46C18.87 8.76 19.74 9.15 20.41 9.59C21.08 10.02 21.7 10.54 21.95 11.07C22.19 11.59 22.03 12.18 21.88 12.73C21.74 13.29 21.63 13.91 21.08 14.4C20.54 14.9 19.57 15.35 18.64 15.73C17.7 16.11 16.64 16.52 15.5 16.7C14.35 16.89 13.01 16.86 11.78 16.85C10.55 16.84 8.73 16.67 8.12 16.63" stroke-width="1.648"/><path d="M9.87 20.08C9.69 19.67 9.09 18.53 8.79 17.59C8.49 16.66 8.21 15.57 8.07 14.46C7.93 13.35 7.93 12.11 7.95 10.92C7.98 9.73 7.99 8.37 8.22 7.34C8.44 6.32 8.9 5.5 9.3 4.76C9.7 4.02 10.14 3.34 10.63 2.9C11.11 2.45 11.67 2.04 12.2 2.08C12.72 2.13 13.27 2.65 13.76 3.16C14.26 3.67 14.74 4.32 15.14 5.15C15.55 5.97 15.92 7 16.17 8.1C16.43 9.2 16.63 10.51 16.67 11.75C16.71 12.99 16.58 14.34 16.39 15.51C16.2 16.69 15.91 17.9 15.53 18.81C15.15 19.72 14.63 20.38 14.11 20.99C13.6 21.59 13.03 22.26 12.46 22.42C11.88 22.58 11.23 22.28 10.65 21.94C10.07 21.6 9.24 20.63 8.96 20.36" stroke-width="1.712"/><path d="M12.01 12.12l.01 0" stroke-width="2.48"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Atom } from '@matita/icons/react';
<Atom size={32} pencil />The file is icons/atom.svg in the package (pencil/atom.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for atom
Atom is not stored as a drawing. It is a recipe of 2 ellipses and 1 dot 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 12 9.5 4;
E 12 12 4 9.5;
O 12 12
atom as a number: 57952472
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 atom. Seed 0 is the default.
atom from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/atom.svg.
True pixel sizes.