DEV Community 👩‍💻👨‍💻

curiosport
curiosport

Posted on

What data does an API ask for to draw a pixel on the screen?

For example for a pixel with a depth of 10bits the following should be delivered:

-30 bits of data for the colour: R=10, G=10, B=10.
-Position where to draw the pixel (X,Y)
-And here's where I ask myself, does the API ask for more information or is that all?

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.