Commits

Matteo Bertini committed 1ba6275

Draw a slightly bigger rule and paint more small labels in the external scale

Comments (0)

Files changed (1)

src/it/slug/circularsliderule/CircularSlideRuleView.java

 		canvas.translate(canvas.getWidth() / 2, (int) (canvas.getHeight() / 2.3));
 		float min_side = Math.min(canvas.getWidth(), canvas.getHeight());
 		final int SIDE = (int) min_side;
-		SIZE = SIDE / 3;
+		SIZE = (int) (SIDE / 2.8);
 		STEP = SIZE / 10;
 
 		class TicPainter {
 						if (important(c)) {
 							pen.setColor(external_color);
 						}
-						if (c < 15 || important(c) || (c > 50 && c % 5 == 0)) {
+						if (c < 25 || important(c) || (c > 50 && c % 5 == 0)) {
 							if (important(c) || (c > 50 && c % 5 == 0)) {
 								stop = -(SIZE+STEP+STEP/2);
 								pen.setColor(external_color);