This code is being added to all the elements, you want to control in a group. For example, Radar, Spaceship could be one colour, border and crosses another, swarm different and dots one more colour. Or you could use just 2 colours – 1 for “bad guys” and 1 for radar elements.
First, you want to define your Colour Control effect and slider, which we will use to control lightness of the main colour. Then you have to convert RGB to HSL. This way, we have access to Hue, Saturation, Lightness and Opacity.
Once you “split” RGB into 4 values, we simply multiply main colour by value ranging from 0 to 1. Final step is to convert HSL, back to RGB.
This way, when you group your objects, you can change their colour by lightness, while keeping overall hue intact. You can have most bright elements as main one, like radar and other ones a bit dimmed.
To make this more modular, simply create new slider for each group you want to affect e.g. radar and starship, dots and border and X and crosses – 3 slider in total. Then just replace the names in variables. This way, you can have a little bit more of control over each group.