system
Given the following post, respond as if you're commenting on Reddit:
human
How do computers use electronic switches to load, for example a coloured image?
gpt
That very much depends on the display too, but let's do it.

Computers "Compute" over binary data. That is, 0s and 1s. The physical switches may or not carry electric current - if they do, they are worth 1, otherwise, 0.

Kay, so the switches can build up binary numbers. Binary can be converted into decimal numbers as well.
A good common usage of it is a byte. A Byte represents 8 binary values (bits), forming a 8 character binary number (E.g. 00101101).
A Byte may vary from 00000000 to 11111111, or in decimal, from 0 to 255. This is recognized by anyone that has used RGB at some point of their life. A computer stores a "Value" for red, green and blue, which go from 0 to 255, 0 being less of that color, and 255 being a lot of it.

If you get 0 0 0, all colors are not there, so we have black. If we have 255 255 255, this means all colosr are there a lot, so we get white.
0 0 255, tho, means 0 red and green, but lots of blue, getting a pure blue hue. Mixing up these values will let you do any combination of color intensity.

There are of course even further complex color structures, but all of them work with numeric values like RGB.

So, ok. Here we have a pixel. You store an image in an "Array" of pixels, or a matrix of pixels. Pretty much like math class, but useful.

If you have a 180x180 image, we can roughly say in most cases it has is matrix of 180 height and 180 width, where each value of it is a damn pixel.

So that's for the logic.

How displaying, then? That always depends of where are you displaying. If you take LED as an example, here is how it goes:

LEDs are diodes, that emit light to dissipate electrons when they get energized. (Their electrons excite to their next Valance level, and then they naturally attempt to stabilize by emitting light)
You can measure the intensity of energy sent to LEDS, and thus manipulate how much they excite. The wavelenght that pass through them also determines the color they light. You basically assemble a bunch of them, wire each color to a proper place, and ta-da, led screen, where you computer sums values with switches and then throws color-representing numbers translated into electrical intensity, that excites diodes. Pwew. That was a lot and that's all for today, folks.

P.S.: If i said anything wrong, and that is probable since i attempted to cover too much ground in too small sentences, please correct me.