CTNTVirtualPad:setColor

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the VPAD components colors.

CTNTVirtualPad:setColor(padComponent, r, g, b)

padComponent possible values:

  • PAD.COMPO_BUTTON1
  • PAD.COMPO_BUTTON2
  • PAD.COMPO_BUTTON3
  • PAD.COMPO_BUTTON4
  • PAD.COMPO_BUTTON5
  • PAD.COMPO_BUTTON6
  • PAD.COMPO_LEFTPAD for left joystick
  • PAD.COMPO_RIGHTPAD for right joystick

Parameters

padComponent: (number) the pad component to set the new color to
r: (number) red channel value (0 to 255)
g: (number) green channel value (0 to 255)
b: (number) blue channel value (0 to 255)