Aircraft Trails Colours

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Post Reply
Squadgy
Posts: 15
Joined: Sat Sep 01, 2018 7:45 pm

Aircraft Trails Colours

Post by Squadgy » Sun Apr 07, 2019 11:32 am

Is it possible to alter the aircraft trails colours, and the altitude at which the trails change colour ? I've checked the documentation and can't find any reference.

Many thanks

agw
Posts: 2247
Joined: Fri Feb 17, 2012 3:20 am

Re: Aircraft Trails Colours

Post by agw » Sat Apr 20, 2019 9:45 pm

Not easily, no. The trail colours are determined by a JavaScript function, it's possible to override that function with your own version using the Custom Content plugin if you're comfortable with JavaScript. The trail colour is a value on a colour wheel and the translation of the altitude (or speed) within a range to a colour is done by the function *getColourWheelScale* in utility.js's ColourHelper class (at time of writing the TypeScript version starts at line 289 here: https://github.com/vradarserver/vrs/blo ... utility.ts).

You could potentially replace the prototype for getColourWheelScale with a different wheel to take trail colours out of.

Post Reply