phoenix_title wx.lib.agw.cubecolourdialog.Colour

This is a subclass of 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

Inheritance diagram for class Colour:

super_classes Known Superclasses

wx.Colour


method_summary Methods Summary

__init__

Default class constructor.

GetPyColour

Returns the wxPython wx.Colour associated with this instance.

ToHSV

Converts a RGB triplet into a HSV triplet.

ToRGB

Converts a HSV triplet into a RGB triplet.


api Class API

class Colour(wx.Colour)

This is a subclass of 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.


Methods

__init__(self, colour)

Default class constructor.

Parameters:

colour – a standard wx.Colour.



GetPyColour(self)

Returns the wxPython wx.Colour associated with this instance.



ToHSV(self)

Converts a RGB triplet into a HSV triplet.



ToRGB(self)

Converts a HSV triplet into a RGB triplet.