Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

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 160 of file Colour.cpp.

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

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

}


Generated by  Doxygen 1.6.0   Back to index