4.3.3 MColor

The following MColor methods differ from their C++ counterparts.

get( [colorModel])
Returns a sequence of 3 floats containing the r,g,b values. If the colorModel argument is not specified the return value is the sequence obtained by calling MColor::get(float[3]), otherwise it is the result of calling MColor::get(MColorType colorModel, float& c1, float& c2, float& c3).

get4( colorModel)
Returns a sequence of 4 floats containing the r,g,b,a values given in the specified color model. This is a wrapper around the C++ method MColor::get(MColorType colorModel, float& c1, float& c2, float& c3, float& alpha).