Page 1 of 1

[0.15.30] Lamp not taking correct color

Posted: Fri Jul 21, 2017 12:26 pm
by paole
version: 0.15.30

Following an inspiration from the Circuit Network Cookbook I have done this setup to provide multiple colors for a single lamp depending on the input value:
2017-07-21_14h10_59.png
2017-07-21_14h10_59.png (503.54 KiB) Viewed 1457 times
When I decrease the input "I" the color changes for blue, green, red and switching the lamp off are done correctly ... but for the value "2" the lamp stays green instead of switching to yellow.
lamp_doesnt_become_yellow.png
lamp_doesnt_become_yellow.png (1.45 MiB) Viewed 1457 times

Re: [0.15.30] Lamp not taking correct color

Posted: Fri Jul 21, 2017 12:36 pm
by Bilka
NaB, as the cookbook says
The lamp will light up with the colored signal that is greater than zero and earliest in this list: Red, Green, Blue, Yellow, Pink, Cyan, White.
Green is before yellow, so the lamp lights up green no matter if yellow is present or not.

Re: [0.15.30] Lamp not taking correct color

Posted: Fri Jul 21, 2017 2:46 pm
by paole
Bilka wrote:NaB, as the cookbook says
The lamp will light up with the colored signal that is greater than zero and earliest in this list: Red, Green, Blue, Yellow, Pink, Cyan, White.
Green is before yellow, so the lamp lights up green no matter if yellow is present or not.
So the colors list is fixed and doesn't follow the order of the Constant Combinator? Because thats what I thought seeing the image in the cookbook...

I'd like to change this post to a feature request. :lol:
Coloring lamps should follow the signal value / conditional.