rybitten
Version:
A color space conversion library for transforming between RGB and RYB colors.
534 lines (533 loc) • 14.4 kB
JavaScript
const r = [
// white
[],
// red
[],
// yellow
[],
// orange
[],
// blue
[],
// pink / but often violet in old color wheels
[],
// green
[],
// black
[]
], t = [
[],
[],
[],
[],
[],
[],
[],
[]
], n = [
[],
[],
[],
[],
[],
[],
[],
[]
], o = [
[],
[],
[],
[],
[],
[],
[],
[]
], a = [
[],
[],
[],
[],
[],
[],
[],
[]
], s = [
[],
[],
[],
[],
[],
[],
[],
[]
], l = [
[],
[],
[],
[],
[],
[],
[],
[]
], c = [
[],
[],
[],
[],
[],
[],
[],
[]
], u = [
// white
[],
// red
[],
// yellow
[],
// orange
[],
// blue
[],
// pink / but often violet in old color wheels
[],
// green
[],
// black
[]
], i = [
[],
[],
[],
[],
[],
[],
[],
[]
], h = [
[],
[],
[],
[],
[],
[],
[],
[]
], _ = [
[],
[],
[],
[],
[],
[],
[],
[]
], p = [
[],
[],
[],
[],
[],
[],
[],
[]
], b = [
[],
[],
[],
[],
[],
[],
[],
[]
], f = [
[],
[],
[],
[],
[],
[],
[],
[]
], R = [
[],
[],
[],
[],
[],
[],
[],
[]
], y = [
[],
[],
[],
[],
[],
[],
[],
[]
], g = [
[],
[],
[],
[],
[],
[],
[],
[]
], B = [
[],
[],
[],
[],
[],
[],
[],
[]
], C = [
[],
[],
[],
[],
[],
[],
[],
[]
], m = [
[],
[],
[],
[],
[],
[],
[],
[]
], Y = [
[],
[],
[],
[],
[],
[],
[],
[]
], T = [
[],
[],
[],
[],
[],
[],
[],
[]
], E = [
[],
[],
[],
[],
[],
[],
[],
[]
], A = [
[],
[],
[],
[],
[],
[],
[],
[]
], M = [
[],
[],
[],
[],
[],
[],
[],
[]
], H = [
[],
[],
[],
[],
[],
[],
[],
[]
], d = [
[],
[],
[],
[],
[],
[],
[],
[]
], N = [
[],
[],
[],
[],
[],
[],
[],
[]
], S = [
[],
[],
[],
[],
[],
[],
[],
[]
], L = [
[],
[],
[],
[],
[],
[],
[],
[]
], e = /* @__PURE__ */ new Map();
e.set("itten", {
title: "Chromatic Circle",
author: "Johannes Itten",
year: 1961,
reference: "farbkreis_extended.png",
cube: r
});
e.set("itten-normalized", {
title: "Chromatic Circle (Paper-white)",
author: "Johannes Itten",
year: 1961,
reference: "Johannes-Itten-The-chromatic-circle-some-exercises-on-the-contrast-of-pure-colors.webp",
cube: t
});
e.set("itten-neutral", {
title: "Nathan Gossett & Baoquan Chen",
author: "Johannes Itten",
year: 1961,
reference: "itten-ryb.pdf",
cube: n
});
e.set("bezold", {
title: "Farbentafel",
author: "Wilhelm von Bezold",
year: 1874,
reference: "Bezold_Farbentafel_1874.jpg",
cube: o
});
e.set("boutet", {
title: "Twelve-color color circles ",
author: "Claude Boutet",
year: 1708,
reference: "Boutet_1708_color_circles.jpg",
cube: a
});
e.set("hett", {
title: "RGV Color Wheel",
author: "J. A. H. Hett",
year: 1908,
reference: "RGV_color_wheel_1908",
cube: s
});
e.set("schiffermueller", {
title: "Versuch eines Farbensystems",
author: "Ignaz Schiffermüller",
year: 1772,
reference: "020_schiffermueller1.jpg",
cube: l
});
e.set("harris", {
title: "The Natural System of Colours",
author: "Moses Harris",
year: 1766,
reference: "Moses_Harris_The_Natural_System_of_Colours.jpg",
cube: c
});
e.set("harrisc82", {
title: "The Natural System of Colours",
author: "Moses Harris / C82",
year: 1766,
reference: "harrisc82.png",
cube: u
});
e.set("harrisc82alt", {
title: "The Natural System of Colours",
author: "Moses Harris / C82",
year: 1766,
reference: "harrisc82alt.png",
cube: i
});
e.set("goethe", {
title: "Farbenkreis",
author: "Johann Wolfgang von Goethe",
year: 1809,
reference: "Goethe_Farbenkreis_zur_Symbolisierung_des_menschlichen_Geistes-_und_Seelenlebens_1809.jpg",
cube: h
});
e.set("munsell", {
title: "Munsell Color System",
author: "Albert Henry Munsell",
year: 1905,
reference: "munsell-atlas-11.jpg",
cube: _
});
e.set("munsell-alt", {
title: "A Grammar of Color",
author: "Cleland, T. M. & Albert Henry Munsell",
year: 1921,
reference: "munsell-alt.jpg",
cube: p
});
e.set("hayter", {
title: "New Practical Treatise on the Three Primitive Colours",
author: "Charles Hayter",
year: 1826,
reference: "Color_diagram_Charles_Hayter.jpg",
cube: b
});
e.set("bormann", {
title: "Gouache tint study for Josef Alber's Preliminary Course",
author: "Heinrich-Siegfried Bormann",
year: 1931,
reference: "bormann.png",
cube: f
});
e.set("albers", {
title: "Interaction of Color",
author: "Josef Albers",
year: 1942,
reference: "albers-color-harmony.jpg",
cube: R
});
e.set("lohse", {
title: "Kunsthalle Bern Poster",
author: "Richard Paul Lohse",
year: 1970,
reference: "lohse.png",
cube: y
});
e.set("chevreul", {
title: "Cercle chromatique",
author: "Michel Eugène Chevreul",
year: 1839,
reference: "Cercle_chromatique_Chevreul_2.jpg",
cube: g
});
e.set("runge", {
title: "Farbenkugel",
author: "Philipp Otto Runge",
year: 1810,
reference: "farbenkugel.png",
cube: L
});
e.set("maycock", {
title: "Scale of Normal Colors and their Hues",
author: "Mark M. Maycock",
year: 1895,
reference: "maycock.png",
cube: m
});
e.set("colorprinter", {
title: "The Color Printer",
author: "John Earhart",
year: 1892,
reference: "colorprinter.png",
cube: Y
});
e.set("japschool", {
title: "Japanese Textbook",
author: "Japanese School",
year: 1930,
reference: "japschool.png",
cube: B
});
e.set("kindergarten1890", {
title: "Kindergarten Workbook",
author: "Milton Bradley",
year: 1890,
reference: "kindergarten1890.jpg",
cube: C
});
e.set("marvel-news", {
title: "64 Color Chart on Newsprint",
author: "Marvel Comics",
year: 1982,
reference: "marvel-news.png",
cube: T
});
e.set("apple90s", {
title: "Macintosh Reference Manual",
author: "Apple",
year: 1990,
reference: "apple90s.png",
cube: E
});
e.set("apple80s", {
title: "HyperCard User Manual",
author: "Apple",
year: 1989,
reference: "apple80s.png",
cube: A
});
e.set("clayton", {
title: "Intrinsic Value Plate",
author: "Greg Clayton",
year: 2017,
reference: "A260P03_IntrinsicValue1.gif",
cube: S
});
e.set("pixelart", {
title: "Pixel Art",
author: "Tofu",
year: 2024,
reference: "pixelart.png",
cube: M
});
e.set("ippsketch", {
title: "Imposter Syndrome",
author: "Ippsketch",
year: 2021,
reference: "ippsketch.png",
cube: H
});
e.set("ryan", {
title: "Compositions Palette",
author: "Ryan",
year: 2024,
reference: "ryan.png",
cube: d
});
e.set("ten", {
title: "Ten",
author: "Roni Kaufman",
year: 2022,
reference: "ten.png",
cube: N
});
e.set("rgb", {
title: "Inverted RGB",
author: "James Clerk Maxwell",
year: 1860,
reference: "rgb-cube.png",
cube: [
[],
[],
[],
[],
[],
[],
[],
[]
]
});
export {
r as RYB_ITTEN,
e as cubes
};