Set the values of this color to the given color.
color
@override void set(Color c) { if (image.hasPalette) { index = c.index; } else { r = c.r; g = c.g; b = c.b; a = c.a; } }