This a common theme in computer science - what looks like a complicated whole is "atomized" in the computer (made up of a very large collection of very simple elements). We started with a whole image, and reduced it to a big collection of small elements. Change some of the numbers → changes the image.Theme 2: How do you change an image on the computer?.Theme 1: image is "atomized" into lots of little numbers in the computer.Each pixel has 3 numbers to define its colorĢ CS Themes: Lots of Little Numbers + Editing.Pixels in a grid, each identified by an x,y coordinate. Now have the complete diagram of an image. In contrast, LEDs intrinsically emit light of a specific color. Incandescent lights can pass through a filter to give colored light. In the RGB Explorer, play with the sliders to make the light tan color of a cafe latte.ģ. You just need to know the most common RGB patterns we use.ġ. It's not required that you memorize, say, what blue=137 looks like. Light mixing is, I think, easier to follow, and in any case, is the most common way that computers store and manipulate images. That sort of "pigment" color mixing works totally differently from the "light" mixing we have here. Pigment Note - you may have mixed color paints, such as adding red and green paint together. In this way, specifying the brightness 0.255 for the red, blue, and green color components of the pixel, any color can be formed. So for example (red=255, green=100, blue=0) is a color where red is maximum, green is medium, and blue is not present at all, resulting in a shade of orange. Each of the red, green and blue light levels is encoded as a number in the range 0.255, with 0 meaning zero light and 255 meaning maximum light. In RGB, a color is defined as a mixture of pure red, green, and blue lights of various strengths. So essentially, any color can be encoded as three numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |