mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +02:00
17 lines
328 B
Java
17 lines
328 B
Java
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;
|
|
}
|
|
}
|
|
|
|
}
|