Interface SFColorRGBA

All Superinterfaces:
All Known Implementing Classes:

public interface SFColorRGBA
extends X3DField
SFColorRGBA specifies one RGBA (red-green-blue-alpha) color 4-tuple, where each color value is an RGBA 4-tuple of floating point numbers in range [0,1]. Alpha (opacity) values = (1 - transparency). The default value of an uninitialized SFColorRGBA field is (0 0 0 0). Warning: comma characters within singleton values do not pass strict XML validation.

Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
SAI Java Specification: B.4.11, SAI Abstract Specification: 5.2.15 SAIFieldType, X3D Abstract Specification: 5.3.3 SFColorRGBA and MFColorRGBA, X3D Tooltips, X3D Tooltips: field, X3D Tooltips: fieldValue, X3D Scene Authoring Hints * @see CSS Color Module Level 3, 4.3. Extended color keywords
  • Method Details

    • getValue

      void getValue​(float[] valueDestination)
      Write out the current value of this field into the external valueDestination array.
      valueDestination - The array to be filled in with current field values.
      java.lang.ArrayIndexOutOfBoundsException - The provided valueDestination array was too small.
    • setValue

      void setValue​(float[] newValue)
      Assign a new value to this field.
      newValue - the newValue to set