DEV Community

curiosport
curiosport

Posted on

1 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay