Corrected brightness default view (#509)

This commit is contained in:
Oorjit Chowdhary
2018-11-30 23:20:20 +05:30
committed by Jeffrey Warren
parent f152a78e70
commit 108e87996a

View File

@@ -20,6 +20,8 @@ module.exports = function Brightness(options,UI){
var step = this;
function changePixel(r, g, b, a){
options.brightness =
options.brightness || 100
var val = (options.brightness)/100.0
r = val*r<255?val*r:255