color [object]
- read-only properties
- [int] size - returns 4 - the number of components in this vector
- read/write properties
- [real] r
- [real] g
- [real] b
- [real] a
- overloaded operators
+
- adds two color/real values
-
- subtracts two color/real values
*
- multiplies two color/real values
/
- divides two color/real values
%
- returns modulo of two color/real values
- comparison between color values: first by R, then by G, then by B, then by A
- unary
-
- returns negated color
- other features:
- cloning support
- serialization support
- GC-safe
- indexing support for indices 0 - 3: returns/sets the specified subvalue
- tostring, dump = "color(<r>;<g>;<b>;<a>)"