Viele weitere Beispielprojekt für verschiedene Anwendungen

This commit is contained in:
ngb
2022-06-19 22:26:01 +02:00
parent dc6b7ee351
commit a2d883305a
97 changed files with 2535 additions and 61 deletions

View File

@@ -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);
}