module ColorByNumberPalette

Overview

Zero-dependency OKLab perceptual color distance and luminance helpers powering Play Color by Number.

Live studio modes:

Defined in:

oklab.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.srgb_luminance(r : UInt8, g : UInt8, b : UInt8) : Float64 #

Computes relative WCAG luminance (0..1) from 8-bit sRGB channels. Used by Play Color by Number to place legible numerals.


[View source]