I’m hoping to draw a shape matching the hour hand on the clock below. I’ve made a few runs at the teardrop part with bezier(), but nothing clicking yet.
Thanks for any help!
1 Like
Example of shape:
void setup(){
size(600,600);
}
void draw(){
background(255);
translate(300,300);
fill(0);
noStroke();
half_tear();
scale(-1,1);
half_tear();
}
void half_tear(){
beginShape();
curveVertex(0,-200); // Tinker with to adjust curve.
curveVertex(0,-50);
curveVertex(0,0);
curveVertex(-200,0); // Tinker with to adjust curve.
endShape();
}
1 Like
there is a nice bit of code by M. Kontopoulos here if you mess about with var “a” somewhere around 4.5 you will get a shape very close to what you want.
example
edit: TfGuy44 and i posted at the same time his may be more appropriate
1 Like
Couldn’t be more jazzed!!! Both solutions perfect, thank you both!