Discuss Scratch

pieguy6mc
Scratcher
5 posts

Output Numerical Pen Color/Shade Value?

So I wanna know how to make a script that outputs the pen colors numerical value(0-200) and/or the shade value(0-50). On the wiki it says that people want a reporter block called pen color but that doesn't exist so..

How would I do this?

For example if the pen color was red(0) i want a script that sets a certain variable(like penColor) to 0, or if it's blue to the number for blue.

Hi I guess?
asivi
Scratcher
1000+ posts

Output Numerical Pen Color/Shade Value?

Hi guy, you have responded yourself.
pieguy6mc
Scratcher
5 posts

Output Numerical Pen Color/Shade Value?

oh

Hi I guess?
deck26
Scratcher
1000+ posts

Output Numerical Pen Color/Shade Value?

Colour detection from a wide range of colours is slow. If you can restrict the colour set you can loop through a set of hex RGB codes to see if you're touching any of them. Those codes can be in a list or managed using variables - eg changing RGB values in a loop.

Powered by DjangoBB

Standard | Mobile