Commit 71f9aa8f authored by Victor Yacovlev's avatar Victor Yacovlev

Colorer: compare colors

parent c3b17587
......@@ -25,6 +25,14 @@
"arguments": [
{ "name": "x", "baseType": "color" }
]
},
{
"name": {"ascii": "="},
"returnType": "bool",
"arguments": [
{ "name": "x", "baseType": "color" },
{ "name": "y", "baseType": "color" }
]
}
]
}
......@@ -247,6 +247,14 @@ static quint32 colorToUintValue(const Color &x)
}
bool _ColorerModule::runOperatorEQUAL(const Color &x, const Color &y)
{
return x.a == y.a &&
x.r == y.r &&
x.g == y.g &&
x.b == y.b;
}
} // namespace Actor_Colorer
......@@ -36,7 +36,7 @@ public slots:
void reset();
Color runOperatorINPUT(const QString& x, bool& ok);
QString runOperatorOUTPUT(const Color& x);
bool runOperatorEQUAL(const Color& x, const Color& y);
/* ========= CLASS PRIVATE ========= */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment