Logo Search packages:      
Sourcecode: rosegarden version File versions

Colour Rosegarden::getCombinationColour ( const Colour &  input1,
const Colour &  input2 

This works out a colour which is directly in between the two inputs. Useful for working out what overlapping Segments should be coloured as

Definition at line 166 of file Colour.cpp.

References Rosegarden::Colour::getBlue(), Rosegarden::Colour::getGreen(), and Rosegarden::Colour::getRed().

    Colour ret((input1.getRed()+input2.getRed())/2,
    return ret;


Generated by  Doxygen 1.6.0   Back to index