Beispielprojekte

This commit is contained in:
ngb
2022-01-02 22:12:21 +01:00
parent c712826c07
commit ba9d3e9fe3
12 changed files with 526 additions and 0 deletions

View 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;
}
}
}