mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 09:56:33 +02:00
Beispielprojekte
This commit is contained in:
16
examples/zm_tixy/MyTIXY.java
Normal file
16
examples/zm_tixy/MyTIXY.java
Normal file
@@ -0,0 +1,16 @@
|
||||
import schule.ngb.zm.Color;
|
||||
import schule.ngb.zm.Constants;
|
||||
|
||||
public class MyTIXY extends Constants {
|
||||
|
||||
public double update( double t, int i, int x, int y ) {
|
||||
return sin(t-sqrt(pow((x-7.5),2)+pow((y-6),2)));
|
||||
}
|
||||
|
||||
public void update( double t, Dot dot ) {
|
||||
if( dot.color.equals(Dot.DOT_RED) ) {
|
||||
dot.color = BLUE;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user