Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. function setup() {
  2. createCanvas(800,800);
  3.  
  4. }
  5. function oraszam() {
  6. strokeWeight(3);
  7. N=60;
  8. szog=2*PI/N;
  9. translate(width/2, height/2);
  10. for(i=0;i<N;i++){
  11. line(300,0,320,0);
  12. rotate(szog);
  13. }
  14. N=12;
  15. strokeWeight(5);
  16. szog=2*PI/N;
  17.  
  18. for(i=0;i<N;i++){
  19. line(300,0,320,0);
  20. rotate(szog);
  21. }
  22.  
  23. }
  24.  
  25. function draw() {
  26. fill(255,255,255);
  27. circle(400,400,700);
  28. fill(169,169,169);
  29. circle(400,400,680);
  30. fill(255,255,255);
  31. circle(400,400,650);
  32. circle(400,400,400);
  33. fill(169,169,169);
  34. circle(400,400,390);
  35. fill(0,0,0);
  36. circle(400,400,10);
  37.  
  38. oraszam();
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement