xxxxxxxxxx
37
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
stroke (50);
strokeWeight(4);
line (160, 140, 300, 100); //needle
strokeWeight(14);
stroke (255, 215,0); //gold stroke
ellipse (160, 180, 120, 160);
fill(0,87,63);
// ellipse(160, 180, 100, 140);
let gy=(253,233,233);
strokeWeight (14.0);
stroke(gy);
strokeCap (ROUND); //cyclinder
line (260, 110, 280, 105);
// drawGradient(160,180);
}
/*
function drawGradient(x,y){
let radius = 80 / 2;
let h = random(10, 200);
for (let r = radius; r > 0; --r) {
fill(0, h, 60);
stroke(0,100,80);
ellipse(x, y, r, r+20);
h = (h + 2);
}
}
*/