Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int case1 = 1;
- int col_1 = 255;
- int col_2 = 0;
- int col_3 = 0;
- void Main(string Argument)
- {
- if (case1 == 6)
- {
- col_3 -= 2;
- if (col_3 <= 0)
- {
- col_3 = 0;
- case1 = 1;
- }
- }
- if (case1 == 5)
- {
- col_1 += 2;
- if (col_1 >= 255)
- {
- col_1 = 255;
- case1 = 6;
- }
- }
- if (case1 == 4)
- {
- col_2 -= 2;
- if (col_2 <= 0)
- {
- col_2 = 0;
- case1 = 5;
- }
- }
- if (case1 == 3)
- {
- col_3 += 2;
- if (col_3 >= 255)
- {
- col_3 = 255;
- case1 = 4;
- }
- }
- if (case1 == 2)
- {
- col_1 -= 2;
- if (col_1 <= 0)
- {
- col_1 = 0;
- case1 = 3;
- }
- }
- if (case1 == 1)
- {
- col_2 += 2;
- if (col_2 >= 255)
- {
- col_2 = 255;
- case1 = 2;
- }
- }
- var light = GridTerminalSystem.GetBlockWithName("Interior Light");
- light.SetValue("Color", new VRageMath.Color(col_1, col_2, col_3));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement