Discuss Scratch

hotcrystal
Scratcher
500+ posts

Convert colors in Scratch to hex values?

How do I do this? I know you can use browser extensions or mods of Scratch to directly get the hex value, but is there any way to do it without using those?

Last edited by hotcrystal (Dec. 2, 2024 14:00:28)

awesome-llama
Scratcher
1000+ posts

Convert colors in Scratch to hex values?

Where's the colour? What format is it initially?
RecessFailsOffical
Scratcher
1000+ posts

Convert colors in Scratch to hex values?

hotcrystal wrote:

How do I do this? I know you can use browser extensions or mods of Scratch to directly get the hex value, but is there any way to do it without using those?


Open 2 tabs: One with your Scratch project and another with the hex color picker pulled up.



Then you're going to input the color codes that Scratch has, multiply it by 3.6, and into the “HSV” slot, like so:




And then you can copy and paste the Hex code above.

Last edited by RecessFailsOffical (Dec. 2, 2024 18:12:11)

Scratch137
Scratcher
1000+ posts

Convert colors in Scratch to hex values?

RecessFailsOffical wrote:

(#3)

hotcrystal wrote:

How do I do this? I know you can use browser extensions or mods of Scratch to directly get the hex value, but is there any way to do it without using those?
-snip-

Open 2 tabs: One with your Scratch project and another with the hex color picker pulled up.
-image-
Then you're going to input the color codes that Scratch has into the “HSV” slot, like so:
This won't quite work as you'd expect. HSV colours use a 360-degree hue value; the hue can be anything between 0° and 359°.
On Scratch, the colour picker only goes from 0 to 100 (with 100 being equal to 0).

To use a standard HSV input to convert a Scratch colour value, you'll need to multiply the hue by 3.6 to get an HSV hue.
For example, the default purple colour (72, 60, 100) is equivalent to the HSV colour 260, 60, 100. This produces the hex colour value #9966FF.

Last edited by Scratch137 (Dec. 2, 2024 17:22:05)

BigNate469
Scratcher
1000+ posts

Convert colors in Scratch to hex values?

I was going to post something here about using hacked join blocks with color inputs to get color codes, but the filter seems to be blocking me from doing that.

All I can say is see https://scratch.mit.edu/projects/1104993979/

Powered by DjangoBB