Fixed lightness
This commit is contained in:
parent
41b24dabb2
commit
bc3f1e46ca
|
@ -97,7 +97,7 @@ async function main() {
|
|||
|
||||
const newBars = [];
|
||||
for (const bar of bars) {
|
||||
sketch.fill(sketch.color(0, (bar.volume / volumeThreshold) * 255, 255));
|
||||
sketch.fill(sketch.color(0, 0, (bar.volume / volumeThreshold) * 255));
|
||||
sketch.rect(bar.x, 0, bar.age * bar.volume * 2, window.innerHeight);
|
||||
bar.age /= 2;
|
||||
if (bar.age > 0.1) {
|
||||
|
|
Loading…
Reference in a new issue