mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 01:45:18 +02:00
Viele weitere Beispielprojekt für verschiedene Anwendungen
This commit is contained in:
@@ -40,7 +40,7 @@ public class Dot implements Drawable {
|
||||
color = DOT_WHITE;
|
||||
}
|
||||
|
||||
value = Constants.limit(value, 1.0);
|
||||
value = Constants.limit(value, 0.0, 1.0);
|
||||
size = (int) (SIZE * value);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class Dot implements Drawable {
|
||||
|
||||
@Override
|
||||
public void draw( Graphics2D graphics ) {
|
||||
graphics.setColor(color.getColor());
|
||||
graphics.setColor(color.getJavaColor());
|
||||
graphics.fillOval(GAP + x * (SIZE + GAP) + RADIUS - (size / 2), GAP + y * (SIZE + GAP) + RADIUS - (size / 2), size, size);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Zeichenmaschine: TIXY
|
||||
# Zeichenmaschine: GenLines
|
||||
|
||||
TIXY ist ein kreatives Projekt, bei dem ein Feld von Punkten durch geschickt
|
||||
GenLines ist ein kreatives Projekt, bei dem ein Feld von Punkten durch geschickt
|
||||
gewählte mathematische Formeln animiert wird.
|
||||
|
||||
Die Idee stammt von der Seite http://tixy.land
|
||||
|
||||
@@ -60,4 +60,9 @@ public class TIXY extends Zeichenmaschine {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mousePressed() {
|
||||
stop();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#BlueJ package file
|
||||
dependency1.from=TIXY
|
||||
dependency1.from=GenLines
|
||||
dependency1.to=MyTIXY
|
||||
dependency1.type=UsesDependency
|
||||
dependency2.from=TIXY
|
||||
dependency2.from=GenLines
|
||||
dependency2.to=Dot
|
||||
dependency2.type=UsesDependency
|
||||
dependency3.from=MyTIXY
|
||||
dependency3.to=Dot
|
||||
dependency3.type=UsesDependency
|
||||
dependency4.from=Dot
|
||||
dependency4.to=TIXY
|
||||
dependency4.to=GenLines
|
||||
dependency4.type=UsesDependency
|
||||
editor.fx.0.height=728
|
||||
editor.fx.0.width=1037
|
||||
@@ -36,7 +36,7 @@ readme.width=48
|
||||
readme.x=10
|
||||
readme.y=10
|
||||
target1.height=70
|
||||
target1.name=TIXY
|
||||
target1.name=GenLines
|
||||
target1.showInterface=false
|
||||
target1.type=ClassTarget
|
||||
target1.width=120
|
||||
|
||||
Reference in New Issue
Block a user