How computer pixels work?

681 views

1) How many pixels is on average laptop, I guess it is about 1080x something whatbis that.

2) How many pixels do each pixel have and what are its dimensions? Also how many leds are per pixel? How can you make each led have its own unique color to produce the color you want

3) last but not least how sprits work? Lets say we have classic Supermario, we color each pixel to make a suoermario, how do we save them all together that when we press a keyboard button this picture kove, either up ormdownnetc…?

In: Technology

2 Answers

Anonymous 0 Comments

1) the resolution 1080p is short for 1920 by 1080 progressive. 1920 pixels wide, 1080 pixel high, entire field per frame (some old TV’s only show every other line, alternating every frame. Resolutions which do that end in an ‘i’ for interlaced)

2a) in an lcd tv, each pixel is made up of 3 colored leds called subpixels, one red, one blue, and one green. One for each primary color of light. By changing the brightness of the three subpixels, our brains can be tricked into seeing (almost) every color.

2b) the physical size of the pixels depends on the screen size. A 1080p tv will have far larger pixels than a 1080p phone. This is because the same amount of pixels is being put in a different size display. The size of the pixels is often advertised as pixels per inch or PPI. The higher the PPI the smaller the pixels.

3) this would be better answered by someone else, sorry.

Edit: I split number 2 into two answers because it is basically two different questions

Anonymous 0 Comments

3: If you’re asking about saving the data for a picture, it’s just written down in the computer as a series of numbers. Red would be FF0000 in hexadecimal which is 111111110000000000000000 in binary. We can then string those numbers together to make a list of the pixels in the image, left to right, top to bottom, with some extra numbers so the computer knows the size of the picture and some other important stuff. Of course, older computers (like original Nintendo) would use a shorter number and a different coding scheme to save memory in the limited system, hence why they had less colors on screen than a modern PC.

Once the computer knows what the picture is, it can just display it, then move all the pixels around when the program tells it to. We push right and the Nintendo knows to take all the pixels belonging to the Mario sprite and start shifting them right. As long as all the pixels move at the same speed the picture stays the same.