The color thing..
Author |
Message |
icexblood
|
Posted: Sun Mar 16, 2008 6:48 pm Post subject: The color thing.. |
|
|
Whats the code to see every color in the program again?.. its like a slide show with the delay with every color it shows :S |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
jinjin
|
Posted: Sun Mar 16, 2008 6:55 pm Post subject: Re: The color thing.. |
|
|
I think you might be referring to this:
code: |
colour (0)
for bc:1..255
colourback(bc)
put bc
end for
|
|
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Sun Mar 16, 2008 7:03 pm Post subject: Re: The color thing.. |
|
|
he wanted delay... |
|
|
|
|
![](images/spacer.gif) |
icexblood
|
Posted: Sun Mar 16, 2008 7:07 pm Post subject: RE:The color thing.. |
|
|
thxx |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Sun Mar 16, 2008 7:44 pm Post subject: RE:The color thing.. |
|
|
I prefer something along the lines of
So that you can see all the colours at the same time. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Sun Mar 16, 2008 8:06 pm Post subject: RE:The color thing.. |
|
|
You can also mix your own colors with the RGB moduel. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Sean
![](http://compsci.ca/v3/uploads/user_avatars/47413941748406f441f83e.png)
|
Posted: Mon Mar 17, 2008 6:16 am Post subject: Re: The color thing.. |
|
|
Shows every colour, with every box, on one screen, requiring no delays. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Mar 17, 2008 9:14 am Post subject: RE:The color thing.. |
|
|
what I like about drawing it line by line (though this will probably show up in blocks as well), is that you'll notice there's a really nice black-to-white gradient in one of the sections. It's quite good for animations and effects, without having to figure out RGB. module. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Zren
![](http://compsci.ca/v3/uploads/user_avatars/1110053965512db6185954b.png)
|
Posted: Mon Mar 17, 2008 1:45 pm Post subject: Re: The color thing.. |
|
|
Modded the Scollbar GUI to make a colour contraption for the hell of it.
code: |
import GUI
View.Set ("graphics:180;400,nobuttonbar")
var scrollBar : int
procedure ScrollBarMoved (value : int)
for i : 0 .. 20
locate (3 + i, 8)
colorback (white)
put 235 - value + i : 3
locate (3 + i, 12)
colorback (235 - value + i)
put ""
end for
end ScrollBarMoved
scrollBar := GUI.CreateVerticalScrollBar (10, 10, 380,
0, 235, 235, ScrollBarMoved)
loop
exit when GUI.ProcessEvent
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
riveryu
![](http://compsci.ca/v3/uploads/user_avatars/196991102647ae2debe0bf0.jpg)
|
Posted: Mon Mar 17, 2008 5:03 pm Post subject: RE:The color thing.. |
|
|
Zren, you could just set the y value of the screen very large and have the same effect as the scrollbar...
Good work anyways |
|
|
|
|
![](images/spacer.gif) |
|
|