Add scalar multiply for colour
This commit is contained in:
parent
d3baffc2e5
commit
b774a6490d
@ -23,6 +23,15 @@
|
||||
using namespace util;
|
||||
|
||||
|
||||
colour&
|
||||
colour::operator*= (double v) {
|
||||
red *= v;
|
||||
green *= v;
|
||||
blue *= v;
|
||||
alpha *= v;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
const json::node&
|
||||
|
@ -27,6 +27,7 @@
|
||||
|
||||
namespace util {
|
||||
struct colour {
|
||||
colour& operator*= (double);
|
||||
|
||||
double red;
|
||||
double green;
|
||||
|
Loading…
Reference in New Issue
Block a user