module ColorByNumberPalette
Overview
Zero-dependency OKLab perceptual color distance and luminance helpers powering Play Color by Number.
Live studio modes:
- Play Color by Number — Dual-engine Pixel & Smooth Shared-Arc Vector studio
- Photo to Color by Number — On-device OKLab Lloyd quantization
- Printable Color by Number — Pure-JS PDF 1.4 printable sheets
- Math Color by Number — K-5 classroom arithmetic worksheets
- Color by Number for Adults — 24-color stained-glass & museum modes
Defined in:
oklab.crConstant Summary
-
VERSION =
"0.1.0"
Class Method Summary
-
.srgb_luminance(r : UInt8, g : UInt8, b : UInt8) : Float64
Computes relative WCAG luminance (0..1) from 8-bit sRGB channels.
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.