Skip to main content
← GPUs Lesson 3 / 6

A Picture Is a List of Numbers

A whole picture is just a long list of color-numbers — one entry per dot, read like a book: left to right, top to bottom. The computer keeps that list in a notebook called the framebuffer.

Paint the little screen

Color

There's no "picture" hiding anywhere — just 64 dots, each one three numbers.

The framebuffer

64 pixels × 3 = 192 numbers
0 · · ·
1 · · ·
2 · · ·
3 · · ·
4 · · ·
5 · · ·
6 · · ·
7 · · ·
8 · · ·
9 · · ·
10 · · ·
11 · · ·
12 · · ·
13 · · ·
14 · · ·
15 · · ·
16 · · ·
17 · · ·
18 96 165 250
19 · · ·
20 · · ·
21 96 165 250
22 · · ·
23 · · ·
24 · · ·
25 · · ·
26 · · ·
27 · · ·
28 · · ·
29 · · ·
30 · · ·
31 · · ·
32 · · ·
33 · · ·
34 · · ·
35 · · ·
36 · · ·
37 · · ·
38 · · ·
39 · · ·
40 · · ·
41 245 221 70
42 · · ·
43 · · ·
44 · · ·
45 · · ·
46 245 221 70
47 · · ·
48 · · ·
49 · · ·
50 245 221 70
51 245 221 70
52 245 221 70
53 245 221 70
54 · · ·
55 · · ·
56 · · ·
57 · · ·
58 · · ·
59 · · ·
60 · · ·
61 · · ·
62 · · ·
63 · · ·

Position in the list = position on the screen. The screen just reads this notebook and lights up to match. 8 of 64 dots are switched on.