This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-14 14:20:51

Noobin
Scratcher
Registered: 2010-05-14
Posts: 1

Colors?

Fairly simple question;

Does anyone know the range of color values in scratch? I find it hard to explain. Say the colors value starts and goes up to 255, then it goes back to 1 and back up again to complete the color wheel. I need a number range so it may be used in this block:

{When Green Flag Clicked
Forever:
        --IF <Round(Color)=255>
-------- Set (Color) to (1)
}

But I'm not sure of the full color scale. Any help?
<when green flag clicked>
<forever>
<if><( <round( <{ Color }> <=> 255 )>
<set{ Color }to( 1
<end>

Offline

 

#2 2010-05-14 14:24:18

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Colors?

200... I think  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-05-14 15:21:23

teguki
Scratcher
Registered: 2008-03-06
Posts: 72

Re: Colors?

It's 200.

Offline

 

#4 2010-05-14 15:43:18

climber59
Scratcher
Registered: 2009-12-15
Posts: 100+

Re: Colors?

Colors go up to 200 but so do shades so there are 40000 different colors total.


Check out my projects if you have a chance.

Offline

 

#5 2010-05-14 15:50:28

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Colors?

climber59 wrote:

Colors go up to 200 but so do shades so there are 40000 different colors total.

But that has to do with the "brightness" effect.

The colours go up to 200, to the extent of my knowledge. However, I am curious as to why you might need that script. The colour block goes around infinitely, so even if I went over 200, it would continue to change.

Offline

 

#6 2010-05-14 16:57:31

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Colors?

once it gets to 200, the colour will effectively be 1 again.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer