Codierung von Farben

Bildschirme: Einzelne Lichtquellen, Rot-GrĂ¼n-Blau. Additive Farbmischung.

Codierung meist 1 Byte pro Farbkanal, d.h. Werte von 0 bis 255 oder eben 0x00 bis 0xff.

Farbenmischen mit dem Handy: https://fginfo.ksbg.ch/~ivo/farbmischung/

Verschiedene Web-Standards zum Codieren von Farben zum Ausprobieren: https://www.w3schools.com/colors/colors_picker.asp

Codierung von Bildern

Jeder Bildpunkt 3 Bytes.

Sehr einfaches Dateiformat: ASCII-PNM:

bild.pnm
P3
# Created by GIMP version 2.10.30 PNM plug-in
6 6
255
0
0
0
255
220
0
255
220
0
255
220
0
255
220
0
0
0
0
255
220
0
167
0
0
255
220
0
167
0
0
255
220
0
255
220
0
255
220
0
255
220
0
255
220
0
255
220
0
255
220
0
255
220
0
255
220
0
167
0
0
255
220
0
255
220
0
167
0
0
255
220
0
255
220
0
255
220
0
167
0
0
167
0
0
255
220
0
255
220
0
0
0
0
255
220
0
255
220
0
255
220
0
255
220
0
0
0
0