3 ms·
Very nice. Curious how colors are chosen? Can’t try it on my dated iPhone - you need to vendor prefix the AudioContext with webkitAudioContext if AudioContext
by mattdesl 6y ago
Very nice. Curious how colors are chosen?
Can’t try it on my dated iPhone - you need to vendor prefix the AudioContext with webkitAudioContext if AudioContext is undefined.
- gbh444g 6y ago`z = acf(x, y) / (3 sigma); color_rgb = z < 0 ? z * vec3(4, 2, 1) : z * vec3(1, 2, 4);` That's really it. The (4, 2, 1) is the oversaturated orange color, i.e. it would progress as (1, 0.5, 0.25) -> (1, 1, 0.5) -> (1, 1, 1). None of the tricky HSL/HSV schemes worked better than this.