lx method
Implementation
Color lx(double percentage) {
assert(percentage >= 0 && percentage <= 100);
final x = (percentage / 100 * 255).round();
final base = this ?? Colors.transparent;
int r = base.red + x;
int g = base.green + x;
int b = base.blue + x;
if (r > 255) r = 255;
if (g > 255) g = 255;
if (b > 255) b = 255;
return Color.fromARGB(base.alpha, r, g, b);
}