.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. currentmodule:: wx.lib.agw.cubecolourdialog .. highlight:: python .. _wx.lib.agw.cubecolourdialog.Colour: ========================================================================================================================================== |phoenix_title| **wx.lib.agw.cubecolourdialog.Colour** ========================================================================================================================================== This is a subclass of :class:`wx.Colour`, which adds Hue, Saturation and Brightness capability to the base class. It contains also methods to convert RGB triplets into HSB triplets and vice-versa. | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class Colour:
| |super_classes| Known Superclasses ================================== :class:`wx.Colour` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.lib.agw.cubecolourdialog.Colour.__init__` Default class constructor. :meth:`~wx.lib.agw.cubecolourdialog.Colour.GetPyColour` Returns the wxPython :class:`wx.Colour` associated with this instance. :meth:`~wx.lib.agw.cubecolourdialog.Colour.ToHSV` Converts a RGB triplet into a HSV triplet. :meth:`~wx.lib.agw.cubecolourdialog.Colour.ToRGB` Converts a HSV triplet into a RGB triplet. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: Colour(wx.Colour) This is a subclass of :class:`wx.Colour`, which adds Hue, Saturation and Brightness capability to the base class. It contains also methods to convert RGB triplets into HSB triplets and vice-versa. .. method:: __init__(self, colour) Default class constructor. :param `colour`: a standard :class:`wx.Colour`. .. method:: GetPyColour(self) Returns the wxPython :class:`wx.Colour` associated with this instance. .. method:: ToHSV(self) Converts a RGB triplet into a HSV triplet. .. method:: ToRGB(self) Converts a HSV triplet into a RGB triplet.