javascript - What is the meaning of the third parameter in this dat.gui add function? -
javascript - What is the meaning of the third parameter in this dat.gui add function? -
i quite new dat.gui
. i've been reading dat.gui's questions , answers in stackoverflow. have 1 question this one.
what meaning of 3rd argument in gui.add
function? i.e. a[i]
for (var i=1; i<7; i++) { controller_names[i] = a[i]; gui.add(controller_names, i, a[i]); }
thanks!
the 3rd , higher arguments of add
function additional parameters given control. example, if command slider, min & max, like:
gui.add(gui, 'horizontale', 0, 600);
for check box command (boolean property, a[i]), 3rd argument has no effect.
you can @ definition of dat.controllers.factory
in source code of dat.gui, controllers created.
javascript user-interface dat.gui
Comments
Post a Comment