Palette icon

Added in v0.2.0

A free pencil-style palette icon, drawn by code from 1 arc, 1 curve and 3 circles. Use it as an SVG, a React component, or by name. MIT licensed.

palette

01Use it

Use palette

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

<Palette size={24} />

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

JavaScript

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

toSvg(Palette, { 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-palette" data-sketch="" aria-hidden="true"><path d="M16.09 19.41C15.49 19.57 13.74 20.26 12.54 20.35C11.33 20.44 9.99 20.36 8.86 19.95C7.73 19.53 6.55 18.77 5.75 17.88C4.95 16.98 4.42 15.74 4.05 14.59C3.68 13.43 3.42 12.13 3.54 10.93C3.65 9.74 4.1 8.43 4.74 7.4C5.38 6.36 6.35 5.38 7.38 4.72C8.41 4.06 9.71 3.61 10.92 3.46C12.14 3.31 13.51 3.43 14.66 3.82C15.82 4.2 17 4.92 17.86 5.77C18.71 6.62 19.36 7.8 19.79 8.92C20.22 10.05 20.53 11.35 20.45 12.54C20.38 13.73 19.54 15.47 19.36 16.06" stroke-width="1.76"/><path d="M20.46 14.99Q14.44 13.35 14.81 20.07" stroke-width="1.424"/><path d="M6.87 13.64C6.8 13.6 6.58 13.48 6.47 13.36C6.35 13.24 6.24 13.08 6.17 12.91C6.11 12.75 6.08 12.54 6.09 12.36C6.1 12.17 6.16 11.98 6.22 11.8C6.29 11.62 6.36 11.41 6.48 11.27C6.6 11.13 6.8 11.04 6.97 10.96C7.15 10.87 7.34 10.77 7.54 10.76C7.73 10.74 7.94 10.82 8.13 10.89C8.33 10.96 8.55 11.03 8.72 11.17C8.88 11.31 9.03 11.51 9.13 11.72C9.23 11.92 9.29 12.17 9.32 12.4C9.34 12.64 9.35 12.9 9.29 13.14C9.24 13.38 9.13 13.63 9 13.83C8.86 14.03 8.66 14.22 8.45 14.36C8.25 14.5 7.99 14.61 7.75 14.65C7.51 14.69 7.24 14.65 6.99 14.6C6.74 14.54 6.37 14.36 6.25 14.31" stroke-width="1.552"/><path d="M9.11 8.74C9.03 8.72 8.78 8.69 8.65 8.6C8.52 8.51 8.42 8.35 8.32 8.21C8.22 8.07 8.1 7.91 8.06 7.73C8.01 7.56 8 7.35 8.03 7.17C8.06 6.98 8.15 6.81 8.24 6.63C8.32 6.46 8.41 6.27 8.55 6.13C8.69 5.99 8.88 5.87 9.06 5.81C9.25 5.74 9.46 5.74 9.67 5.75C9.87 5.75 10.1 5.76 10.29 5.84C10.48 5.93 10.66 6.09 10.81 6.25C10.96 6.41 11.1 6.59 11.21 6.79C11.32 7 11.43 7.24 11.45 7.47C11.47 7.71 11.4 7.97 11.33 8.2C11.25 8.43 11.15 8.66 11 8.86C10.86 9.06 10.68 9.25 10.47 9.4C10.27 9.54 10.02 9.67 9.77 9.73C9.52 9.78 9.24 9.75 8.98 9.7C8.72 9.65 8.34 9.48 8.21 9.44" stroke-width="1.584"/><path d="M14.7 8.06C14.62 8.07 14.39 8.12 14.23 8.11C14.07 8.1 13.89 8.08 13.74 8.01C13.59 7.93 13.47 7.8 13.36 7.67C13.25 7.53 13.15 7.38 13.09 7.22C13.02 7.05 12.99 6.87 12.99 6.68C12.98 6.5 12.98 6.29 13.04 6.11C13.11 5.94 13.23 5.76 13.36 5.62C13.49 5.48 13.66 5.37 13.84 5.27C14.01 5.18 14.21 5.1 14.41 5.07C14.61 5.05 14.83 5.07 15.03 5.12C15.24 5.16 15.46 5.23 15.64 5.35C15.82 5.47 15.99 5.64 16.12 5.82C16.25 6.01 16.36 6.23 16.4 6.45C16.45 6.67 16.43 6.92 16.4 7.15C16.37 7.38 16.33 7.63 16.22 7.84C16.12 8.05 15.95 8.25 15.77 8.42C15.59 8.58 15.37 8.74 15.14 8.83C14.91 8.92 14.51 8.95 14.38 8.98" stroke-width="1.68"/></svg>

Pencil variant

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

<Palette size={32} pencil />

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

02How it's drawn

The recipe for palette

Palette is not stored as a drawing. It is a recipe of 1 arc, 1 curve and 3 circles 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
A 12 12 8.5 70 380;
Q 20 14.9 14.5 13.5 14.9 20;
C 7.5 12.5 1.3;
C 9.5 7.5 1.3;
C 14.5 6.8 1.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 palette. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil