Skip to content

Commit

Permalink
Fix grayscale conversion to RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Oct 4, 2023
1 parent a30d5cc commit 85d3c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/putils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function getColorArray(color) {

case 1: // Convert grayscale to RGB
ColorSpace.singletons.gray.getRgbItem(color, 0, rgbColor, 0);
this.color = rgbColor;
value = rgbColor;
break;

case 3: // Convert RGB percentages to RGB
Expand Down

0 comments on commit 85d3c0e

Please sign in to comment.