Skip to content

Commit

Permalink
Merge pull request #7 from hgroenenboom/fix-alpha-interpreted-as-int
Browse files Browse the repository at this point in the history
Fixed alpha value being interpreted as integer
  • Loading branch information
hgroenenboom authored Nov 7, 2021
2 parents 365dfd7 + a4c8612 commit ff982e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion source/painting/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 += ", ";
Expand Down
1 change: 0 additions & 1 deletion webaudio-binpanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/customStyle.css" rel="stylesheet">
<link href="source/circularslider/circularslider.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script>
Expand Down

0 comments on commit ff982e0

Please sign in to comment.