deriveInactive function
Derives the inactive color for scanner background positions.
Produces a heavily dimmed version of bright so inactive dots
recede into the background.
Implementation
Color deriveInactive(Color bright, {double factor = 0.2}) {
var result = bright;
for (var i = 0; i < 3; i++) {
result = result.dim;
}
return result;
}