Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Day and night cycle

Zoo
Guest
Quote
2017-11-26 12:08:28

Hi @niko ... I saw that you are the author of the day and night cycle.

I wanted to know how I can set the red to black and the yellow to 160,160,160

I do not understand the math calculations in the code as my math is poor ...

My objective is black and grey, not red, yellow and black


niko
Moderator
Quote
2017-11-27 08:46:24

Yes, I really should have added the option to select a color somehow more easily. It is not that easy in that code. But if you just want black and gray, just set the R, G and B values to all the same value, then you get that. Directly after the '// save ' comment, just insert code like this:


currentDayColorG = currentDayColorR;
currentDayColorB = currentDayColorR;


This hopefully does that trick.


Zoo
Guest
Quote
2017-11-28 13:42:18

worked


niko
Moderator
Quote
2017-11-29 19:13:52

Ah, nice!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact