xxxxxxxxxx
33
function setup() {
createCanvas(400, 300);
background(255,255,255);
circle(width/2,height/2,200);
fill(0,0,255,50);
circle(width/2,height/2,100);
fill(255,255,255);
circle(width/2,height/2,50);
strokeWeight(3);
point(width/2,height/2);
strokeWeight(1);
line(width/2,height/2,width/2+50*cos(0),height/2+50*sin(0));
let p=createP();
let pp=createP();
p.position(width/2+25*cos(0),height/2+25*sin(0)-10);
p.style('font-size','8px');
pp.position(width/2+50*cos(0),height/2+50*sin(0)-10);
pp.style('font-size','8px');
katex.render("\\frac{1}{4}",p.elt);
katex.render("\\frac{1}{2}",pp.elt);
strokeWeight(3);
//translate(600,150);
// strokeWeight(1);
// line(-150,0,150,0);
// line(0,120,0,-120);
//plot(-2,1.9,f,1000);
}
function draw() {
}