Logo Search packages:      
Sourcecode: rosegarden version File versions

void Rosegarden::Colour::setColour ( unsigned int  red,
unsigned int  green,
unsigned int  blue 

Set the colour as appropriate; as with the constructor invalid values will be set to 0.

Definition at line 72 of file Colour.cpp.

Referenced by Colour().

    (red<=255)   ? m_r=red   : m_r=0;
    (green<=255) ? m_g=green : m_g=0;
    (blue<=255)  ? m_b=blue  : m_b=0;

Generated by  Doxygen 1.6.0   Back to index