This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>>,----------[--------------------------------------<[->>++++++++++<<]>[->+<]>[ | |
-<<+>>]<,----------]<[[-<+>]>,----------[--------------------------------------< | |
[->>++++++++++<<]>[->+<]>[-<<+>>]<,----------]<]<[<[->>+>+<<<]>>>[-<<<+>>>]<<[-> | |
>+>+<<<]>>>[-<<<+>>>][-]>[-]>[-]+>[-]<<<<[>+>+<<-]>[<+>-]<<[>>+<<-]+>>>[>-]>[<<< | |
<->>[-]>>->]<+<<[>-[>-]>[<<<<->>[-]+>>->]<+<<-][-]>[-]>[-]<<<[-][-]>[-]<<[>+>+<< | |
-]>[<+>-]+>[<<<<[-]>[-<+>]>>->[-]]<[-]<<[-][-]>[-]>,----------[----------------- | |
---------------------<[->>++++++++++<<]>[->+<]>[-<<+>>]<,----------]<[[-<+>]>,-- | |
--------[--------------------------------------<[->>++++++++++<<]>[->+<]>[-<<+>> | |
]<,----------]<]<][-]>[-]+>[-]+<[>[-<-<<[->+>+<<]>[-<+>]>>]++++++++++>[-]+>[-]>[ | |
-]>[-]<<<<<[->-[>+>>]>[[-<+>]+>+>>]<<<<<]>>-[-<<+>>]<[-]++++++++[-<++++++>]>>[-< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
precision highp float; | |
uniform mat4 projectionMatrix; | |
uniform mat4 modelViewMatrix; | |
uniform vec2 resolution; | |
uniform float aspectRatio; | |
uniform float u_time; | |
uniform float u_shadow_power; | |
uniform float u_darken_top; | |
uniform vec4 u_active_colors; |