Skip to content

Instantly share code, notes, and snippets.

View CIOSAI's full-sized avatar
🥨
PLEASE where can i find breze in Taiwan

jy CIOSAI

🥨
PLEASE where can i find breze in Taiwan
View GitHub Profile
@dkaraush
dkaraush / oklch2rgb.js
Last active July 25, 2025 16:36
conversion OKLCH into RGB and RGB into OKLCH in js, simplified
const multiplyMatrices = (A, B) => {
return [
A[0]*B[0] + A[1]*B[1] + A[2]*B[2],
A[3]*B[0] + A[4]*B[1] + A[5]*B[2],
A[6]*B[0] + A[7]*B[1] + A[8]*B[2]
];
}
const oklch2oklab = ([l, c, h]) => [
l,