mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
Corrected brightness default view (#509)
This commit is contained in:
committed by
Jeffrey Warren
parent
f152a78e70
commit
108e87996a
@@ -20,12 +20,14 @@ module.exports = function Brightness(options,UI){
|
|||||||
var step = this;
|
var step = this;
|
||||||
|
|
||||||
function changePixel(r, g, b, a){
|
function changePixel(r, g, b, a){
|
||||||
|
options.brightness =
|
||||||
|
options.brightness || 100
|
||||||
var val = (options.brightness)/100.0
|
var val = (options.brightness)/100.0
|
||||||
|
|
||||||
r = val*r<255?val*r:255
|
r = val*r<255?val*r:255
|
||||||
g = val*g<255?val*g:255
|
g = val*g<255?val*g:255
|
||||||
b = val*b<255?val*b:255
|
b = val*b<255?val*b:255
|
||||||
return [r , g, b, a]
|
return [r, g, b, a]
|
||||||
}
|
}
|
||||||
|
|
||||||
function output(image,datauri,mimetype){
|
function output(image,datauri,mimetype){
|
||||||
|
|||||||
Reference in New Issue
Block a user