Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit e602af2

Browse files
committed
fixes createShape() bug, however, output seems messy
1 parent 63b0518 commit e602af2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/codeanticode/planetarium/Dome.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343
public class Dome extends PGraphics3D {
4444
public final static String RENDERER = "codeanticode.planetarium.Dome";
45-
public final static String VERSION = "##library.prettyVersion##";
45+
public final static String VERSION = "##library.prettyVersion##";
4646

4747
public final static int NORMAL = 0;
4848
public final static int GRID = 1;
@@ -300,13 +300,13 @@ protected int getCurrentFace() {
300300

301301
private void initDome() {
302302
if (domeSphere == null) {
303-
domeSphere = createShape(SPHERE, resolution * 0.5f, 50, 50);
303+
domeSphere = createShape(SPHERE, resolution * 0.5f);
304304
domeSphere.rotateX(HALF_PI);
305305
domeSphere.setStroke(false);
306306
}
307307

308308
if (gridSphere == null) {
309-
gridSphere = createShape(SPHERE, resolution * 0.5f, 25, 25);
309+
gridSphere = createShape(SPHERE, resolution * 0.5f);
310310
gridSphere.rotateX(HALF_PI);
311311
gridSphere.setFill(0xFF000000);
312312
gridSphere.setStroke(0xFFFFFFFF);
@@ -405,9 +405,9 @@ private void endFaceDraw() {
405405
private void renderDome() {
406406
renderBorder();
407407

408-
// This setting might be better for 2.1.2+:
409-
// camera(0, 0, resolution * 0.5f, 0, 0, 0, 0, 1, 0);
410-
// ortho(-width/2, width/2, -height/2, height/2);
408+
//This setting might be better for 2.1.2+:
409+
//camera(0, 0, resolution * 0.5f, 0, 0, 0, 0, 1, 0);
410+
//ortho(-width/2, width/2, -height/2, height/2);
411411

412412
camera();
413413
ortho(domeLeft, domeRight, domeBottom, domeTop);

0 commit comments

Comments
 (0)