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; //w w w. j a v a 2s. c o m import com.karolmajta.stp.models.MainMenuObstacleBall; import processing.core.PApplet; public class MainMenuObstacleBallView extends View<MainMenuObstacleBall> { public static final int STROKE = 0xffff00ff; @Override protected void onDraw(PApplet p) { int prevFill = p.g.fillColor; p.fill(0x55ffffff); p.ellipse( model.getX(), model.getY(), model.getRadius()*2, model.getRadius()*2 ); p.fill(prevFill); } }