The 12-bit rainbow palette
----
- 7 minutes ago | 3 points | 1 comments
- URL: https://iamkate.com/data/12-bit-rainbow/
- Discussions: https://news.ycombinator.com/item?id=43827108
- Summary: The 12-bit rainbow palette was designed for use on National Grid: Live. It consists of 12 colors chosen for their perceived luminance, chroma, and hue. The palette uses a 12-bit color depth, allowing each color to be specified with a 4-character hexadecimal code. The designer used the LCH color space to create a palette with evenly-spaced hues and smoothly increasing and decreasing luminance. The resulting palette has 12 colors: #817, #a35, #c66, #e94, #ed0, #9d5, #4d8, #2cb, #0bc, #09c, #36b, and #639. The palette was designed to avoid large changes in luminance between neighboring colors, creating a more visually pleasing effect.
The 12-bit rainbow palette

A palette of twelve colours chosen with consideration for how we perceive luminance, chroma, and hue

#Krokodil|e von der #Eisenbahn.
Von #SBB, #DB, #RhB und #LGB.
#e94 #e94056 #411
TEV Thüringer Eisenbahnverein e.V. - 254 106-8

TEV Thueringer Eisenbahnverein: Altbauelektrolokomotive 254 106

sketch_2022_02_01 #Processing #Python #py5 imported mode #shapely #trimesh #3D

import trimesh
import shapely

# https://iamkate.com/data/12-bit-rainbow/
palette = (
'#817', '#a35', '#c66', '#e94',
'#ed0', '#9d5', '#4d8', '#2cb',
'#0bc', '#09c', '#36b', '#639'
)

def setup():
global m
size(400, 400, P3D)
no_stroke()
polygon = shapely.geometry.Polygon([(-100, -100), (0, -100),
(0, 0), (-50, -50), (-100, 0)])
m = trimesh.creation.extrude_polygon(polygon, 30)

def draw():
background(0)
translate(width /2, height / 2)
rotate_x(QUARTER_PI)
rotate_y(radians(mouse_x))
for i, face in enumerate(m.faces):
fill(palette[i % 12])
with begin_closed_shape():
vertices([m.vertices[v] for v in face])

The 12-bit rainbow palette

A palette of twelve colours chosen with consideration for how we perceive luminance, chroma, and hue

#Processing #Python #py5 #genuary #genuary31 #トゥートProcessing

# https://iamkate.com/data/12-bit-rainbow/
palette = (
'#817', '#a35', '#c66', '#e94',
'#ed0', '#9d5', '#4d8', '#2cb',
'#0bc', '#09c', '#36b', '#639'
)

def setup():
size(800, 800)
no_stroke()
background(0)

def draw():
xc = yc = 400
for i in range(6):
m = 1 - abs(cos(radians(frame_count / 2))) ** 5
r = 150 + 150 * m
a = radians(frame_count / 2 + 60 * i)
x = xc + r * cos(a)
y = yc + r * sin(a)
fill(palette[i])
circle(x, y, 150)
r = 300 - 150 * m
a = a + radians(30)
x = xc + r * cos(a)
y = yc + r * sin(a)
fill(palette[-1 -i])
circle(x, y, 150)

The 12-bit rainbow palette

A palette of twelve colours chosen with consideration for how we perceive luminance, chroma, and hue

#Processing #Python #py5 imported mode #genuary #genuary30 #トゥートProcessing
# Kate Rose Morley's palette
# https://iamkate.com/data/12-bit-rainbow/

from itertools import product

palette = (
'#817', '#a35', '#c66', '#e94',
'#ed0', '#9d5', '#4d8', '#2cb',
'#0bc', '#09c', '#36b', '#639'
)

def setup():
global palavras
size(800, 800)
no_loop()
rect_mode(CENTER)
no_stroke()

def draw():
w = 400
i = 0
for x, y in product(range(0, width, w), repeat=2):
for z in range(3):
fill(palette[i])
square(w / 2 + x, w / 2 + y, w / (z / 2 + 1))
i += 1

The 12-bit rainbow palette

A palette of twelve colours chosen with consideration for how we perceive luminance, chroma, and hue

# Kate Rose Morley's palette
# https://iamkate.com/data/12-bit-rainbow/ @kate
#Processing #Python #py5 imported mode style
#genuary #genuary29 "maximalism"

from random import sample
from itertools import product

palette = (
'#817', '#a35', '#c66', '#e94',
'#ed0', '#9d5', '#4d8', '#2cb',
'#0bc', '#09c', '#36b', '#639'
)

def setup():
global palavras
size(800, 800)
no_loop()
rect_mode(CENTER)
no_stroke()

def draw():
w = 100
for x, y in product(range(0, width, w), repeat=2):
d = width // w
cores = sample(palette, d)
for z in range(d):
fill(cores[z])
square(w / 2 + x, w / 2 + y, w / (z / 2 + 1))

def key_pressed():
redraw()

The 12-bit rainbow palette

A palette of twelve colours chosen with consideration for how we perceive luminance, chroma, and hue

Nachdem die Dampffraktion überholt wurde und ihren Auslauf hatte, darf nun die der Zeit entsprechende Elektrofraktion ihre Runden drehen.

Die #E44 ist ein echtes Schmuckstück und das Eisenschweinchen #E94 soundso.

Zurückgelassenes Werkzeug zeugt von den notwendigen Eingriffen.
#Modellbahnausbesserungswerk am hart Arbeiten. 😂
#SpurTT