ColorProcessor

Inheritance diagram of rumba.ColorProcessor
class ColorProcessor

This class holds the color processor used by application to do color space conversion.

Variables

_instance – Static.

Methods

convert(from)

Convert the color between the two colorspaces.

from_rendering_to_ui(color)

Convert the color from the rendering space to the srgb colorspace.

hsv_to_rgb(color)

Convert a color from HSV to RGB format.

rgb_to_hsv(color)

Convert a color from RGB to HSV format.

__init__(*args, **kwargs)
convert(from: unicode, to: unicode, color: Imath.Color4f) Imath.Color4f

Convert the color between the two colorspaces.

Return type

Imath.Color4f

from_rendering_to_ui(color: Imath.Color4f) Imath.Color4f

Convert the color from the rendering space to the srgb colorspace.

Return type

Imath.Color4f

hsv_to_rgb(color: Imath.Color4f) Imath.Color4f

Convert a color from HSV to RGB format.

Return type

Imath.Color4f

static instance() ColorProcessor

Returns the current color processor instance created by the application.

Return type

ColorProcessor

rgb_to_hsv(color: Imath.Color4f) Imath.Color4f

Convert a color from RGB to HSV format.

Return type

Imath.Color4f