greyScale method
Returns a grey scale version of this color.
Implementation
HTMLColor greyScale() {
var m = Math.mean([red, green, blue]).toInt();
return HTMLColor(m, m, m, alpha);
}
Returns a grey scale version of this color.
HTMLColor greyScale() {
var m = Math.mean([red, green, blue]).toInt();
return HTMLColor(m, m, m, alpha);
}