ScratchData LogoScratchData
Back to papipupepappa's profile

Remix: Color Values 2

PApapipupepappa•Created July 5, 2022
Remix: Color Values 2
15
8
121 views
View on Scratch

Instructions

This project demonstrates the relationship between different types of RGB color values. Play around with the sliders and see if you can figure out how the different values are related. If you want to make precise adjustments, click the slider knob once and then use the left/right arrow keys.

Description

The major difference between my previous remix and this one is that I deleted the +/- buttons and added sliders for the R, G and B variables instead. Handling RGB color values in the decimal system is complicated. Just look at these examples: R:0 G:0 B:1 Decimal: 1 R:0 G:1 B:0 Decimal: 256 R:1 G:0 B:0 Decimal: 65536 Calculating the decimal value of a random RGB color without a calculator is quite challenging. But calculating the binary or hexadecimal value is actually quite easy. Let's do the above example with binary and hexadecimal (I have added spaces to make it more readable). R:0 G:0 B:1 Binary: 00000000 00000000 00000001 Hexadecimal: 00 00 01 R:0 G:1 B:0 Binary: 00000000 00000001 00000000 Hexadecimal: 00 01 00 R:1 G:0 B:0 Binary: 00000001 00000000 00000000 Hexadecimal: 01 00 00 At this point, I'm sure you can imagine what the binary and hexadecimal values for the following is. R:1 G:1 B:1 But the decimal value is a bit trickier to come up with, right? Here is the answer: Binary: 00000001 00000001 00000001 Hexadecimal: 01 01 01 Decimal: 65793 You can learn about binary and hexadecimal here: https://en.wikipedia.org/wiki/Binary_number https://en.wikipedia.org/wiki/Hexadecimal @njdavison has made several really great projects that are related to this topic. Set Pen Color to RGB | Bitwise Left Shift (<<): https://scratch.mit.edu/projects/601049052/ How to: Parse Binary (0b) | Bitwise Operators: https://scratch.mit.edu/projects/596556867/ Color Picker Widget: https://scratch.mit.edu/projects/505269282/ 8-bit Bitmap Editor: https://scratch.mit.edu/projects/482442499/ ### CREDITS ### Thanks a lot to @sureornot for the wonderful original project. Thanks to @njdavison and everyone else who keep teaching me all kinds of things :D

Project Details

Project ID711733746
CreatedJuly 5, 2022
Last ModifiedJuly 9, 2022
SharedJuly 5, 2022
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root