Discuss Scratch
- Discussion Forums
- » Suggestions
- » Add RGB values. [Read OP please.]
- The_Game_
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
So, I had an idea (that I'm too lazy to make a mockup for) where there could be new colour values for pen and the colour block. RGB (stands for Red Green Blue). So basically, increasing and decreasing these values changes how much Red Green and Blue are in a sprite/pen. This could allow for more customization in colours. (also don't say use the colour block it isn't the same).
Mockup by the legendary forum goblin Medians.
Oh, I should probably explain what RGB is a bit more.
So as I said before, RGB means Red Green Blue. This is how computers calculate what colour is on screen. Each value can go from 0 to 255 on most devices adding more of its respective colour in the process. If Red was 255 and Green and Blue were 0 then it would be pure red since that is the only colour there. Same with Green and Blue.
Mockup by the legendary forum goblin Medians.
set pen [red v] to () ::pen
set pen [green v] to () ::pen
set pen [blue v] to () ::pen
change pen [red v] by () ::pen
(pen [green v] ::pen)
Oh, I should probably explain what RGB is a bit more.
So as I said before, RGB means Red Green Blue. This is how computers calculate what colour is on screen. Each value can go from 0 to 255 on most devices adding more of its respective colour in the process. If Red was 255 and Green and Blue were 0 then it would be pure red since that is the only colour there. Same with Green and Blue.
Last edited by The_Game_ (May 29, 2023 23:32:54)
- medians
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
This?


set pen [red v] to () ::penEdit: 2.0fied
set pen [green v] to () ::pen
set pen [blue v] to () ::pen
change pen [red v] by () ::pen
(pen [green v] ::pen)


Last edited by medians (May 29, 2023 23:15:02)
- The_Game_
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
This?Yup! Is it okay if I add that to the OP?set pen [red v] to () ::pen
set pen [green v] to () ::pen
set pen [blue v] to () ::pen
change pen [red v] by () ::pen
(pen [green v] ::pen)
- medians
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
yeaThis?Yup! Is it okay if I add that to the OP?
- The_Game_
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
ThankyeaThis?Yup! Is it okay if I add that to the OP?
- waitwhat2288
-
Scratcher
100+ posts
Add RGB values. [Read OP please.]
You can use hexcode with pen blocks via adding the letters “0x” to the front of it, I guess.
Personally, I feel like RGB is excruciatingly similar to hexcode, given that they both rely on the basic red, green, and blue formula. I think the only concept that deters people from trying to comprehend this are the disconcerting hexadecimals.
If you can fathom RGB, I think you have the capacity to use hexcode in a thorough manner.
set pen color to (join [0x] [ff2288])
Personally, I feel like RGB is excruciatingly similar to hexcode, given that they both rely on the basic red, green, and blue formula. I think the only concept that deters people from trying to comprehend this are the disconcerting hexadecimals.
If you can fathom RGB, I think you have the capacity to use hexcode in a thorough manner.
- ajskateboarder
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
There's a somewhat-simple workaround to this which converts RGB to something that the pen block can use:
(got it from here) Although, this makes RGB colors easier to manage, so semi-support. I would prefer the block to look something like this though:
set pen color to ((((r) * (65536)) + ((g) * (256))) + (b))
(got it from here) Although, this makes RGB colors easier to manage, so semi-support. I would prefer the block to look something like this though:
set pen color to r: () g: () b: () ::pen
Last edited by ajskateboarder (May 29, 2023 23:22:56)
- The_Game_
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
You can use hexcode with pen blocks via adding the letters “0x” to the front of it, I guess.Personally, I believe that RGB is easier to understand that hex. RGB is just adding more of this colour instead of… whatever hex is I barely understand it.set pen color to (join [0x] [ff2288])
Personally, I feel like RGB is excruciatingly similar to hexcode, given that they both rely on the basic red, green, and blue formula. I think the only concept that deters people from trying to comprehend this are the disconcerting hexadecimals.
If you can fathom RGB, I think you have the capacity to use hexcode in a thorough manner.
- ajskateboarder
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
If you can fathom RGB, I think you have the capacity to use hexcode in a thorough manner.Even if you understood hexadecimal, RGB would still be easier to read since it requires no conversion
- PiplupRocks
-
Scratcher
19 posts
Add RGB values. [Read OP please.]
So, I had an idea (that I'm too lazy to make a mockup for) where there could be new colour values for pen and the colour block. RGB (stands for Red Green Blue). So basically, increasing and decreasing these values changes how much Red Green and Blue are in a sprite/pen. This could allow for more customization in colours. (also don't say use the colour block it isn't the same).Yeah I think that it could mildly help kids get into more advanced programming, but we could still have the color block. That is a good idea there!
Mockup by the legendary forum goblin Medians.set pen [red v] to () ::pen
set pen [green v] to () ::pen
set pen [blue v] to () ::pen
change pen [red v] by () ::pen
(pen [green v] ::pen)
Oh, I should probably explain what RGB is a bit more.
So as I said before, RGB means Red Green Blue. This is how computers calculate what colour is on screen. Each value can go from 0 to 255 on most devices adding more of its respective colour in the process. If Red was 255 and Green and Blue were 0 then it would be pure red since that is the only colour there. Same with Green and Blue.
- The_Game_
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
I said in the OP the colour block is not the same.snipYeah I think that it could mildly help kids get into more advanced programming, but we could still have the color block. That is a good idea there!
- waitwhat2288
-
Scratcher
100+ posts
Add RGB values. [Read OP please.]
You can use hexcode with pen blocks via adding the letters “0x” to the front of it, I guess.set pen color to (join [0x] [ff2288])
Personally, I feel like RGB is excruciatingly similar to hexcode, given that they both rely on the basic red, green, and blue formula. I think the only concept that deters people from trying to comprehend this are the disconcerting hexadecimals.
If you can fathom RGB, I think you have the capacity to use hexcode in a thorough manner.
Personally, I believe that RGB is easier to understand that hex. RGB is just adding more of this colour instead of… whatever hex is I barely understand it.
Even if you understood hexadecimal, RGB would still be easier to read since it requires no conversion
I know some people pinpoint exactly what such color value would result in, but I just found it easier to estimate with both color values, so I don't have any severe difficulty with “precision” and “evaluation” and what-not with both of them, and hence they are equally as onerous to me.
Last edited by waitwhat2288 (May 31, 2023 00:18:28)
- ShockWave-Studios
-
Scratcher
99 posts
Add RGB values. [Read OP please.]
- The_Game_
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
The colour block is different as stated in the OP.Blerp, I guess I’m dumb, cause I don’t really see the point of this? I mean, the color block has a pretty good color picker…
- k7e
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
Duplicate. (That one's a bit unclear, if it isn't what they're suggesting, then there's also this one)
- k7e
-
Scratcher
1000+ posts
Add RGB values. [Read OP please.]
Duplicate. (That one's a bit unclear, if it isn't what they're suggesting, then there's also this one)Sorry if I didn't find the oldest, I looked up “pen rgb” on Ocular, and all that came up was blockspam, so I had to look up “pen red green blue” instead.
- Paddle2See
-
Scratch Team
1000+ posts
Add RGB values. [Read OP please.]
Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place.Duplicate. (That one's a bit unclear, if it isn't what they're suggesting, then there's also this one)Sorry if I didn't find the oldest, I looked up “pen rgb” on Ocular, and all that came up was blockspam, so I had to look up “pen red green blue” instead.
Please use the clearer topic in the link above.
- Discussion Forums
- » Suggestions
-
» Add RGB values. [Read OP please.]