RGB_

Summary
RGB_
Functions
RGB_.inheritedThis method is used internally to set the number of elements to 3 for all subclasses.
RGB_.to_sDisplay name of this type.
RGB_.rgb?Returns true.
RGB_.scalarGet element type.
RGB_.maxintGet corresponding RGB type based on 32-bit integers.
RGB_.floatGet corresponding floating-point version to this type.
RGB_.defaultGet default value for this type.
RGB_.coercionRuby coercion mechanism.
RGB_.coerceNative coercion.
RGB_.==Comparison operator.
Related
Constants
RGB type shortcuts
Functions
RGBCreate RGB class or create RGB value if more than one argument is specified.

Functions

RGB_.inherited

def RGB_.inherited(subclass)

This method is used internally to set the number of elements to 3 for all subclasses.

RGB_.to_s

def RGB_.to_s

Display name of this type.

RGB_.rgb?

Returns true.

RGB_.scalar

def RGB_.scalar

Get element type.

RGB_.maxint

def RGB_.maxint

Get corresponding RGB type based on 32-bit integers.

RGB_.float

def RGB_.float

Get corresponding floating-point version to this type.

RGB_.default

def RGB_.default

Get default value for this type.

Returns

RGB( e, e, e ) where e is the default for the element-type.

RGB_.coercion

def RGB_.coercion(other)

Ruby coercion mechanism.

RGB_.coerce

def RGB_.coerce(other)

Native coercion.

RGB_.==

def RGB_.==(other)

Comparison operator.

Related

Summary
Constants
RGB type shortcuts
Functions
RGBCreate RGB class or create RGB value if more than one argument is specified.

Constants

RGB type shortcuts

UBYTERGB24-bit unsigned RGB-triplet
BYTERGB24-bit signed RGB-triplet
USINTRGB48-bit unsigned RGB-triplet
SINTRGB48-bit signed RGB-triplet
UINTRGB96-bit unsigned RGB-triplet
INTRGB96-bit signed RGB-triplet
ULONGRGB192-bit unsigned RGB-triplet
LONGRGB192-bit signed RGB-triplet
SFLOATRGBsingle precision RGB-triplet
DFLOATRGBdouble precision RGB-triplet

Functions

RGB

def RGB(r,  
g =  nil,
b =  nil)

Create RGB class or create RGB value if more than one argument is specified.

Parameters

rRed channel or alternatively a native numeric type.
gGreen channel.
bBlue channel.
def RGB_.inherited(subclass)
This method is used internally to set the number of elements to 3 for all subclasses.
def RGB_.to_s
Display name of this type.
def RGB_.scalar
Get element type.
def RGB_.maxint
Get corresponding RGB type based on 32-bit integers.
def RGB_.float
Get corresponding floating-point version to this type.
def RGB_.default
Get default value for this type.
def RGB_.coercion(other)
Ruby coercion mechanism.
def RGB_.coerce(other)
Native coercion.
def RGB_.==(other)
Comparison operator.
def RGB(r,  
g =  nil,
b =  nil)
Create RGB class or create RGB value if more than one argument is specified.
Close