69
edits
No edit summary |
No edit summary |
||
Line 438: | Line 438: | ||
[[File:Tilesorting_01.PNG| 300px]] | [[File:Tilesorting_01.PNG| 300px]] | ||
[[File:Tilesorting_01.PNG| 300px]] | [[File:Tilesorting_01.PNG| 300px]] | ||
* Video Delay | |||
[[File:Video_01.PNG| 300px]] | |||
* Quellcode | |||
<source lang="java"> | |||
import processing.video.*; | |||
Movie movie; | |||
void setup(){ | |||
size(750,500); | |||
movie = new Movie(this,"Park_Video.mp4"); | |||
movie.loop(); | |||
background(0); | |||
} | |||
void movieEvent(Movie m){ | |||
m.read(); | |||
} | |||
void draw(){ | |||
noStroke(); | |||
for(int i = 0;i < 10000; i++){ | |||
int x = (int(random(0, width))); | |||
int y = (int(random(0, height))); | |||
color c = movie.get(x,y); | |||
fill(c,100); | |||
ellipse(x,y,50,50); | |||
} | |||
} | |||
</source> <br> |
edits