// consider gradient on GridBox String lines[]; String[] filelist = { //this set is everything but wheat "Alfalfa","Allium","Amaranth","Ananas","Apple","Avocado","Barley","Bean","Beta","Blueberry","Brassica","Bromus","Carrot","Celery","Chickpea","Citrus","Clover","Cotton","Cucumis","Cucurbit","Cuphea","Cynodon","Eggplant","Festuca","Fig","Flax","Fragaria","Grape","Guava","Hazelnut","Hops","Ipomoea","Lathyrus","Lentil","Lespedez","Lesquer","Lettuce","Limnanth","Litchi","Lotus","Lupin","Maize","Mango","Melilotu","Mint","Musa","Oat","Panicum","Papaya","Pea","Peanut","Pear","Peppers","Pilinut","Poa","Potato","Prunus","Quince","Quinoa","Radish","Rambutan","Ribes","Rice","Rubus","Rye","Ryegrass","Safflower","Sesame","Soybean","Spinach","Starfruit","Sugarcane","Sunflower","Tobacco","Tomato","Vigna"}; //String[] filelist = { //this set is missing mega crops // "Alfalfa","Allium","Amaranth","Ananas","Apple"}; Crop[] crop = new Crop[filelist.length]; float xMax = 0; float yMax = 0; float zMax = 0; float rotY = .5; float rotX = 0; int gridDims = 256; PFont font; DecimalFormat f; int scrX, scrY; boolean mouseIsOver; boolean xyVisible = false; Crop NULLcrop = new Crop(); Crop highlitCrop = NULLcrop; void setup(){ font = loadFont("BenguiatITCbyBT-Bold-48.vlw"); f = new DecimalFormat("#.#"); framerate(15); size(800,600,P3D); for (int i=0; i xMax) xMax = crop[j].geono.size(); if (crop[j].id.size() > yMax) yMax = crop[j].id.size(); if ((100*(crop[j].wild/(float)crop[j].id.size())) > zMax) zMax = 100*(crop[j].wild/(float)crop[j].id.size()); } for (int i=0; i