scaled method

LinearColor scaled(
  1. double factor
)

This colour with r, g and b multiplied by factor and a kept, for a caller turning an intensity up or down. In linear light that is exactly "twice as much light".

Implementation

LinearColor scaled(double factor) =>
    LinearColor(r * factor, g * factor, b * factor, a);