PERGOLA LOGO

Value Input Box

View as standalone SVG

var g = $C({element : "g", transform : "translate(100 50)", appendTo : pergola.user});

myValueBox = new pergola.ValueInputBox();
myValueBox.build({
  owner : myObject,
  parent : g,
  caption : {
    text : {
      x : -16,
      y : 15,
      textNode : "G",
      "pointer-events" : "none"
    }
  },
  max : 255,
  min : 0,
  value : myObject.g,
  target : myObject,
  propName : "g",
  fn : "changeColor",
  realTime : true             // defaults to false
});