Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions Kepler2012/Kepler2012.pde
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

// Import libraries
import processing.opengl.*;
PFont label = createFont("Helvetica", 96);
PFont label;

// Here's the big list that will hold all of our planets
ArrayList<ExoPlanet> planets = new ArrayList();
Expand Down Expand Up @@ -52,18 +51,19 @@ int showControls;
boolean draggingZoomSlider = false;

void setup() {
size(displayWidth, displayHeight, OPENGL);
fullScreen(P3D);
background(0);
smooth();

label = createFont("Helvetica", 96);

textFont(label, 96);

// Because NASA released their data from 2011 and 2012 in somewhat
// different formats, there are two functions to load the data and populate
// the 'galaxy'.
getPlanets(sketchPath + "/data/KeplerData.csv", false);
getPlanets("KeplerData.csv", false);
println(planets.size());
getPlanets(sketchPath + "/data/planets2012_2.csv", true);
getPlanets("planets2012_2.csv", true);
println(planets.size());
addMarkerPlanets();
updatePlanetColors();
Expand Down Expand Up @@ -396,7 +396,4 @@ void toggleFlatness(float f) {

void mouseReleased() {
draggingZoomSlider = false;
}



}