75
edits
No edit summary |
|||
Line 105: | Line 105: | ||
== Farben == | == Farben == | ||
'''Programmcode:''' | |||
int l = 255; // globale variable könnte auch lokal sein | |||
void setup() | |||
{ | |||
size(300,300); | |||
background(255); | |||
noLoop(); | |||
noStroke(); | |||
} | |||
void draw() | |||
{ | |||
int k = 255; // fester r wert | |||
background(255); | |||
for ( int i = 10; i <= width - 10; i += 20) | |||
{ | |||
for ( int j = 10; j <= height - 10; j += 20) | |||
{ | |||
fill(l,k,l); | |||
ellipse(i,j,20,20); | |||
l--; | |||
} | |||
} | |||
} | |||
[[File:gruen.jpg]] | |||
[[File:rot.jpg]] | |||
[[File:blau.jpg]] | |||
== Farbkontraste == | == Farbkontraste == |
edits