Jump to content




Rainbows!


  • You cannot reply to this topic
7 replies to this topic

#1 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 09 May 2013 - 12:49 PM

To pass the time in my IT class, I scripted this nice rainbow animation. Here's the code: http://pastebin.com/YL5rEicS

I wrote the program in moonscript, then converted it to lua for CC. I would consider it a bit more readable, so if you're curious, here's the moonscript:
Spoiler


#2 Goof

  • Members
  • 751 posts

Posted 09 May 2013 - 12:50 PM

the code is broke.. you are missing the rest of it :D

#3 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 09 May 2013 - 12:56 PM

View PostMikk809h, on 09 May 2013 - 12:50 PM, said:

the code is broke.. you are missing the rest of it :D
Yeah, it is pretty short, haha.

#4 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 09 May 2013 - 07:54 PM

Quote

term.getSize!
Da faq?

#5 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 09 May 2013 - 08:01 PM

In moonscript, you can use an exclamation mark in place of parentheses. I'll just edit the OP with a link to the moonscript docs if anyone else has any questions about the code.

#6 Inumel

  • Members
  • 120 posts

Posted 09 May 2013 - 08:23 PM

I edited this program a bit, changing the colors to light blue, blue, and the rest cyan

I then built a room out of monitors running thsse with a sand floor, put a stair inside and pretended like it was a chair

So I can sit in that room and pretend I am on a tiny island with a crazy storm going on, thanks for this amazing program! haha

#7 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 10 May 2013 - 10:04 AM

Uhmm do you think you can upload some screenshots?
I'm quite interested to check this out since... RAINBOWS! :3

#8 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 10 May 2013 - 02:59 PM

Yeah, I'll upload screenshots when I can.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users