Fix linting

This commit is contained in:
Paul Kaplan 2017-11-04 10:10:17 -04:00
parent 8616390fab
commit caa9b97520

View file

@ -452,7 +452,7 @@ class Scratch3PenBlocks {
penState.saturation = hsv.s * 100; penState.saturation = hsv.s * 100;
penState.brightness = hsv.v * 100; penState.brightness = hsv.v * 100;
if (rgb.hasOwnProperty('a')) { if (rgb.hasOwnProperty('a')) {
penState.transparency = 100 * (1 - rgb.a / 255.0); penState.transparency = 100 * (1 - (rgb.a / 255.0));
} else { } else {
penState.transparency = 0; penState.transparency = 0;
} }