Discuss Scratch

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.

Medians wrote:

setpenredtosetpengreentosetpenbluetochangepenredbypengreen

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?
setpenredtosetpengreentosetpenbluetochangepenredbypengreen
Edit: 2.0fied

Last edited by medians (May 29, 2023 23:15:02)

The_Game_
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

medians wrote:

This?
setpenredtosetpengreentosetpenbluetochangepenredbypengreen
Yup! Is it okay if I add that to the OP?
medians
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

The_Game_ wrote:

medians wrote:

This?
Yup! Is it okay if I add that to the OP?
yea
The_Game_
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

medians wrote:

The_Game_ wrote:

medians wrote:

This?
Yup! Is it okay if I add that to the OP?
yea
Thank
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.

setpencolortojoin0xff2288

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:

setpencolortor*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:

setpencolortor:g:b:

Last edited by ajskateboarder (May 29, 2023 23:22:56)

The_Game_
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

waitwhat2288 wrote:

You can use hexcode with pen blocks via adding the letters “0x” to the front of it, I guess.

setpencolortojoin0xff2288

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.
ajskateboarder
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

waitwhat2288 wrote:

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
The_Game_
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

bump
PiplupRocks
Scratcher
19 posts

Add RGB values. [Read OP please.]

The_Game_ wrote:

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.

Medians wrote:

setpenredtosetpengreentosetpenbluetochangepenredbypengreen

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.
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!
The_Game_
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

PiplupRocks wrote:

The_Game_ wrote:

snip
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!
I said in the OP the colour block is not the same.
waitwhat2288
Scratcher
100+ posts

Add RGB values. [Read OP please.]

Central quote wrote:

waitwhat2288 wrote:

You can use hexcode with pen blocks via adding the letters “0x” to the front of it, I guess.

setpencolortojoin0xff2288

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.

The_Game_ wrote:

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.

ajskateboarder wrote:

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.]

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…
The_Game_
Scratcher
1000+ posts

Add RGB values. [Read OP please.]

ShockWave-Studios wrote:

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…
The colour block is different as stated in the OP.
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.]

k7e wrote:

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.]

k7e wrote:

k7e wrote:

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.
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.

Please use the clearer topic in the link above.

Powered by DjangoBB