diff --git a/source/painting/color.js b/source/painting/color.js index 80a89e1..230c9c5 100644 --- a/source/painting/color.js +++ b/source/painting/color.js @@ -29,7 +29,7 @@ function colorFromAmplitude(amplitude, exponent = 1.0) for(let i = 0; i < 4; i++) { const brightness = amount * colorPoints[baseColorIndex + 1][1][i] + (1.0 - amount) * colorPoints[baseColorIndex][1][i]; - fillStyle += parseInt( brightness ); + fillStyle += parseFloat( brightness ); if(i < 3) { fillStyle += ", "; diff --git a/webaudio-binpanner.php b/webaudio-binpanner.php index b108fb2..c0a220c 100644 --- a/webaudio-binpanner.php +++ b/webaudio-binpanner.php @@ -14,7 +14,6 @@ -