Looking for assistance with adding sliders to a JavaScript object that contains various parameters.
var settings = {bgColor: 0x5886a0,
ambientColor:0xffffff,
opacityCS:[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
whiteThreshold:[160,160,160,160,160,160] };
I need sliders for each element in the arrays opacityCs and whiteThreshold.
Adding sliders for other parameters is straightforward:
gui.addColor( settings, 'ambientColor' ).onChange( function(){/**/});
or
gui.add( settings, 'variable', -0.5, 0.5, 0.005 );
However, I'm having trouble figuring out how to add sliders for array elements. Can anyone offer guidance?