Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Drawing
  5. toColor

toColor

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Convert R,G,B or R,G,B,A values separately into a 0,0,0,0 format string

Parameters:

  • r
    • A float value
  • g
    • A float value
  • b
    • A float value
  • a Optional
    • A float value

Example:

1
obj.toColor(r, g, b, a = 1f)
Tags
Was this article helpful to you? Yes No

How can we help?