preferences: added preference for node color scheme

This commit is contained in:
itsmattkc
2020-05-05 23:47:03 +10:00
parent 0628ddb901
commit af994cd1b6
4 changed files with 75 additions and 3 deletions
+8
View File
@@ -78,6 +78,14 @@ Color::Color(const char *data, const PixelFormat::Format &format)
}
}
Color::Color(const QColor &c)
{
set_red(c.redF());
set_green(c.greenF());
set_blue(c.blueF());
set_alpha(c.alphaF());
}
void Color::toHsv(float *hue, float *sat, float *val) const
{
float fCMax = qMax(qMax(red(), green()), blue());