Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float prozentualeAngabe = (float)this.nSegmentsHeight / (float)rings;
- for(int i = 0;i <= rings;i++){
- beginShape(QUAD_STRIP);
- for(int k = 0;k <= this.nSegmente;k++){
- float x = this.radiusBot*cos(angleSize*k);
- float y = this.radiusBot*sin(angleSize*k);
- float x2 = this.radiusTop*cos(angleSize*k);
- float y2 = this.radiusTop*sin(angleSize*k);
- vertex(x,0,y);
- vertex(x2,prozentualeAngabe*i,y2);
- }
- endShape();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement