AGW Logo

agw_title 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.

hierarchy Inheritance Diagram

Inheritance diagram for: Colour

Inheritance diagram of Colour


method_summary Methods Summary

__init__Default class constructor.
GetPyColourReturns the wxPython wx.Colour associated with this instance.
ToHSVConverts a RGB triplet into a HSV triplet.
ToRGBConverts a HSV triplet into a RGB triplet.

API Class API

class Colour(wx.Colour)[source]

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.



__init__(colour)[source]

Default class constructor.

Parameters:colour – a standard wx.Colour.



GetPyColour()[source]

Returns the wxPython wx.Colour associated with this instance.



ToHSV()[source]

Converts a RGB triplet into a HSV triplet.



ToRGB()[source]

Converts a HSV triplet into a RGB triplet.

Tree

Table Of Contents

Previous topic

BrightCtrl

Next topic

ColourPanel