Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int NUM_PIZZA_SLICES=90;
- for(int i = 0; i <= NUM_PIZZA_SLICES; i++){ //NUM_PIZZA_SLICES decides how round the circle looks.
- double SUBDIVISIONS=180;
- double angle = Math.PI * 2 * i / SUBDIVISIONS;
- GL11.glVertex2f((float) Math.cos(angle), (float) Math.sin(angle));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement