Back to project page Save-the-Planet.
The source code is released under:
Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
If you think the Android project Save-the-Planet listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.karolmajta.stp.views; //from w w w . java2s .co m import com.karolmajta.stp.models.MainMenuObstacleBall; import com.karolmajta.stp.models.ObstacleManager; import processing.core.PApplet; public class ObstacleManagerView extends View<ObstacleManager> { public static final int STROKE = 0xffff00ff; @Override protected void onDraw(PApplet p) { int prevFill = p.g.fillColor; int prevStroke = p.g.strokeColor; p.fill(0x55ffffff); p.noStroke(); for(MainMenuObstacleBall ob : model.getObstacles()) p.ellipse( ob.getX(), ob.getY(), ob.getRadius()*2, ob.getRadius()*2 ); p.fill(prevFill); p.stroke(prevStroke); } }