Discuss Scratch

CR20215
Scratcher
11 posts

Color

How do I convert rgb to the color codes scratch uses?
donotforgetmycode
Scratcher
1000+ posts

Color

((((red) * (65536)) + ((green) * (256))) + (blue))
CR20215
Scratcher
11 posts

Color

I don't know how to do that
gdfsgdfsgdfg
Scratcher
1000+ posts

Color

CR20215 wrote:

I don't know how to do that
huh? they showed you the code

Last edited by gdfsgdfsgdfg (Oct. 27, 2023 18:16:18)

CR20215
Scratcher
11 posts

Color

I don't see orange ovals that say red, green, and blue
gdfsgdfsgdfg
Scratcher
1000+ posts

Color

CR20215 wrote:

I don't see orange ovals that say red, green, and blue
they are variables
—————————————————————————
also quote to reply on bottom right of a post
I thought scratchers already know about variables
NMario84
Scratcher
1000+ posts

Color

You need to understand HOW the code works.
There are 3 variables. Each named a different color.

More info about colors here:
https://en.scratch-wiki.info/wiki/Computer_Colors
WindowsAdmin
Scratcher
1000+ posts

Color

CR20215 wrote:

(#5)
I don't see orange ovals that say red, green, and blue
Lol???? Create them variables
-Valtren-
Scratcher
1000+ posts

Color

donotforgetmycode wrote:

((((red) * (65536)) + ((green) * (256))) + (blue))

CR20215 wrote:

I don't know how to do that
Would this help?



You can also create variables by clicking on the “create variable” button in the variables tab.

subjectnamehere
Scratcher
1000+ posts

Color

CR20215 wrote:

(#5)
I don't see orange ovals that say red, green, and blue
ya gotta put the red, green and blue values there
106809nes
Scratcher
1000+ posts

Color

CR20215 wrote:

I don't know how to do that
(Zydrolic made this, creds to him) https://scratch.mit.edu/projects/911375361/editor/
donotforgetmycode
Scratcher
1000+ posts

Color

106809nes wrote:

CR20215 wrote:

I don't know how to do that
(Zydrolic made this, creds to him) https://scratch.mit.edu/projects/911375361/editor/
That is not related to this topic. Did you accidentally link to the wrong project?
amogus1123
Scratcher
500+ posts

Color

106809nes wrote:

CR20215 wrote:

I don't know how to do that
(Zydrolic made this, creds to him) https://scratch.mit.edu/projects/911375361/editor/
He hasn't even made one about this?
106809nes
Scratcher
1000+ posts

Color

amogus1123 wrote:

106809nes wrote:

CR20215 wrote:

I don't know how to do that
(Zydrolic made this, creds to him) https://scratch.mit.edu/projects/911375361/editor/
He hasn't even made one about this?
I mean the project is made by him.
amogus1123
Scratcher
500+ posts

Color

106809nes wrote:

amogus1123 wrote:

106809nes wrote:

CR20215 wrote:

I don't know how to do that
(Zydrolic made this, creds to him) https://scratch.mit.edu/projects/911375361/editor/
He hasn't even made one about this?
I mean the project is made by him.
I meant that zydro hasn't made a project about this topic before.
donotforgetmycode asked if you had linked the wrong project.
however, that wasn't the case, was it?
106809nes
Scratcher
1000+ posts

Color

amogus1123 wrote:

106809nes wrote:

amogus1123 wrote:

106809nes wrote:

CR20215 wrote:

I don't know how to do that
(Zydrolic made this, creds to him) https://scratch.mit.edu/projects/911375361/editor/
He hasn't even made one about this?
I mean the project is made by him.
I meant that zydro hasn't made a project about this topic before.
donotforgetmycode asked if you had linked the wrong project.
however, that wasn't the case, was it?
No? He sent me that link specifically.
donotforgetmycode
Scratcher
1000+ posts

Color

106809nes wrote:

No? He sent me that link specifically.
The project you linked has absolutely nothing to do with this topic. You must have made a mistake.
gdpr7314264727b19c01a53ed58b
Scratcher
1000+ posts

Color

scratch uses HSV, #2 should be it

106809nes wrote:

(#16)
No? He sent me that link specifically.
when? i dont remember linking that anywhere or to anyone whatsoever
EDIT: Also that has nothing to do with rgb -> hsv, that's converting negative values to positive and positive values to negative

Last edited by gdpr7314264727b19c01a53ed58b (Oct. 29, 2023 15:33:10)

106809nes
Scratcher
1000+ posts

Color

Zydrolic wrote:

scratch uses HSV, #2 should be it

106809nes wrote:

(#16)
No? He sent me that link specifically.
when? i dont remember linking that anywhere or to anyone whatsoever
EDIT: Also that has nothing to do with rgb -> hsv, that's converting negative values to positive and positive values to negative
ohh I did send the wrong link, that one was the + to - values. Oops! So sorry everyone!

Powered by DjangoBB