Zum Inhalt

PixelCompetition/B001

B001 - PixelFlut

Welcome to the training competition.

This Competition implement the PixelFlut protocol:
PX {x} {y} {r} {g} {b}
- or -
PX {x} {y} #{color}

x:     x-Koordinate of a pixel
y:     y-Koordinate of a pixel
r:     red color component of a pixel
g:     green color component of a pixel
b:     blue color component of a pixel

color: color encoded as a html color (rgb-values as hex, z.B. '#4524bf')

Diese Competition implementiert das Pixelflutprotokoll. Ihr könnt dabei jedes Pixel auf dem Canvas (der gemeinsamen Zeichenfläche) mit einer Farbe belegen. Dazu gebt Ihr die x- und die y-Koordinate des Pixels an und die Farbe als RGB-Wert.

Hintergrund

RGB-Wert:

https://de.wikipedia.org/wiki/Additive_Farbmischung

https://de.wikipedia.org/wiki/RGB-Farbraum

Web-Farben:

https://de.wikipedia.org/wiki/Webfarbe#RGB-Farbraum

Beispiel

PX 10 10 #0000FF
PX 10 11 #0000FF
PX 10 12 #0000FF
PX 10 13 #0000FF
PX 11 10 #0000FF
PX 11 11 #0000FF
PX 11 12 #0000FF
PX 11 13 #0000FF
PX 12 10 #0000FF
PX 12 11 #0000FF
PX 12 12 #0000FF
PX 12 13 #0000FF
PX 13 10 #0000FF
PX 13 11 #0000FF
PX 13 12 #0000FF
PX 13 13 #0000FF

Zeichnet ein blaues (rot=0,grün=0,blau=255) Quadrat bei x=10,y=10 bis x=13,y=13.