| RGB_ | |
| Functions | |
| RGB_. | This method is used internally to set the number of elements to 3 for all subclasses. |
| RGB_.to_s | Display name of this type. |
| RGB_.rgb? | Returns true. |
| RGB_. | Get element type. |
| RGB_. | Get corresponding RGB type based on 32-bit integers. |
| RGB_. | Get corresponding floating-point version to this type. |
| RGB_. | Get default value for this type. |
| RGB_. | Ruby coercion mechanism. |
| RGB_. | Native coercion. |
| RGB_.== | Comparison operator. |
| Related | |
| Constants | |
| RGB type shortcuts | |
| Functions | |
| RGB | Create RGB class or create RGB value if more than one argument is specified. |
| Constants | |
| RGB type shortcuts | |
| Functions | |
| RGB | Create RGB class or create RGB value if more than one argument is specified. |
This method is used internally to set the number of elements to 3 for all subclasses.
def RGB_.inherited( subclass )
Display name of this type.
def RGB_.to_s
Get element type.
def RGB_.scalar
Get corresponding RGB type based on 32-bit integers.
def RGB_.maxint
Get corresponding floating-point version to this type.
def RGB_.float
Get default value for this type.
def RGB_.default
Ruby coercion mechanism.
def RGB_.coercion( other )
Native coercion.
def RGB_.coerce( other )
Comparison operator.
def RGB_.==( other )
Create RGB class or create RGB value if more than one argument is specified.
def RGB( r, g = nil, b = nil )