.. include:: headings.inc .. _RGBValue: ========================================================================================================================================== |phoenix_title| **RGBValue** ========================================================================================================================================== A simple class which stores red, green and blue values as 8 bit integers in the range of ``0-255``. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **RGBValue** .. raw:: html

Inheritance diagram of RGBValue

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~RGBValue.__init__` Constructor for :ref:`RGBValue`, an object that contains values for red, green and blue which represent the value of a color. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: RGBValue(object) A simple class which stores red, green and blue values as 8 bit integers in the range of ``0-255``. **Possible constructors**:: RGBValue(r=0, g=0, b=0) .. method:: __init__(self, r=0, g=0, b=0) Constructor for :ref:`RGBValue`, an object that contains values for red, green and blue which represent the value of a color. It is used by :meth:`Image.HSVtoRGB` and :meth:`Image.RGBtoHSV` , which convert between ``HSV`` color space and ``RGB`` color space. :param `r`: :type `r`: int :param `g`: :type `g`: int :param `b`: :type `b`: int