xxxxxxxxxx
28
function setup() {
createCanvas(400, 400);
rectMode(CENTER)
}
function draw() {
background(100); //0 to 255 red, green, blue, you can do name of color and hex color picker from google
let size= 400;
let cx= width/2
let cy=height/2
fill(255);
strokeWeight(20);
stroke(30, 46, 200);
ellipse(200, 200, size, size); //x,y,width,height
strokeWeight(2);
rect(200, 200, size/2, size/2); //x, y, w, h
stroke(0);
line(mouseX, mouseY, cx, cy);
print(mouseX, mouseY);
}