Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup() {
- createCanvas(800,800);
- }
- function oraszam() {
- strokeWeight(3);
- N=60;
- szog=2*PI/N;
- translate(width/2, height/2);
- for(i=0;i<N;i++){
- line(300,0,320,0);
- rotate(szog);
- }
- N=12;
- strokeWeight(5);
- szog=2*PI/N;
- for(i=0;i<N;i++){
- line(300,0,320,0);
- rotate(szog);
- }
- }
- function draw() {
- fill(255,255,255);
- circle(400,400,700);
- fill(169,169,169);
- circle(400,400,680);
- fill(255,255,255);
- circle(400,400,650);
- circle(400,400,400);
- fill(169,169,169);
- circle(400,400,390);
- fill(0,0,0);
- circle(400,400,10);
- oraszam();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement