lehrkraefte:blc:informatik:glf24:colors

This is an old revision of the document!


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

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
  • lehrkraefte/blc/informatik/glf24/colors.1737456892.txt.gz
  • Last modified: 2025/01/21 10:54
  • by Ivo Blöchliger