Planet icon

New Added in v0.5.0

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

planet

01Use it

Use planet

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

<Planet size={24} />

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

JavaScript

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

toSvg(Planet, { 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-planet" data-sketch="" aria-hidden="true"><path d="M7.88 9.15C8.14 8.92 8.86 8.1 9.47 7.74C10.08 7.38 10.81 7.09 11.53 6.99C12.25 6.89 13.08 6.93 13.78 7.14C14.48 7.36 15.18 7.8 15.71 8.3C16.24 8.79 16.69 9.46 16.96 10.12C17.23 10.78 17.35 11.55 17.33 12.27C17.3 12.98 17.13 13.75 16.82 14.41C16.51 15.08 16.03 15.77 15.45 16.25C14.86 16.73 14.07 17.08 13.31 17.28C12.55 17.48 11.66 17.6 10.89 17.46C10.12 17.32 9.35 16.89 8.69 16.45C8.04 16 7.38 15.45 6.94 14.8C6.5 14.15 6.12 13.31 6.05 12.54C5.98 11.76 6.23 10.91 6.51 10.16C6.79 9.42 7.2 8.68 7.73 8.06C8.26 7.45 8.95 6.78 9.71 6.48C10.47 6.18 11.86 6.3 12.29 6.26" stroke-width="1.776"/><path d="M15.68 14.61C15.12 14.67 13.45 14.95 12.31 14.98C11.16 15.01 9.95 14.87 8.82 14.77C7.69 14.66 6.44 14.57 5.52 14.36C4.6 14.15 3.92 13.83 3.3 13.52C2.68 13.21 2.01 12.86 1.8 12.51C1.59 12.15 1.78 11.75 2.03 11.38C2.29 11.01 2.7 10.63 3.32 10.3C3.94 9.97 4.8 9.65 5.76 9.42C6.72 9.18 7.9 9.01 9.06 8.88C10.22 8.74 11.52 8.61 12.72 8.62C13.92 8.64 15.15 8.81 16.25 8.98C17.35 9.14 18.45 9.35 19.31 9.62C20.16 9.89 20.88 10.24 21.39 10.61C21.9 10.97 22.29 11.38 22.36 11.79C22.44 12.19 22.15 12.61 21.84 13.02C21.52 13.42 21.2 13.88 20.49 14.22C19.77 14.56 18.61 14.84 17.54 15.07C16.46 15.3 14.62 15.5 14.03 15.59" stroke-width="1.552"/></svg>

Pencil variant

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

<Planet size={32} pencil />

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

02How it's drawn

The recipe for planet

Planet is not stored as a drawing. It is a recipe of 1 circle and 1 ellipse 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
C 12 12 5;
E 12 12 9.5 3
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 planet. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil