We are about to switch to a new forum software. Until then we have removed the registration on this forum.
void setup(){
fullScreen();
background(0);
stroke(192);
strokeWeight(3);
noLoop();
}
void draw(){
line(100,100,250,250); //bat handle lower edge
line(125,75,275,225); //bat handle upper edge
line(100,100,125,75); //bat handle upper width
line(275,225,300,200); //bat upper collar
line(250,250,225,275); //bat lower collar
line(300,200,600,500); //bat upper edge
line(225,275,525,575); //bat lower edge
noFill();
arc(525,500,150,150,0,PI/2); //curved edge of bat
ellipse(600,400,50,50); //ball
strokeWeight(1);
line(575,398,625,398); //ball seam upper edge
line(575,402,625,402); //ball seam lower edge
}
Comments
Somehow the image doesn’t come out
You can go back and edit your post
@Chrisir sorry didn't realize. I have modified the post. Please try and run the code now and let me know. Thanks!
There are two icons for images maybe you want the one on the left side?
Fun, and looks good, @mproc.
I think that the coordinates and the fullscreen call are very specific to certain monitor sizes.
scale(3)
before drawing to make your image larger.Like this:
If you are interested you can go even further with this by putting your bat and ball into PShapes.
@Chrisir sorry didn't get you.... :-/
@jeremydouglass Thanks for your wonderful comment. Didn't know about scaling, pushStyle and popStyle. It's Great! Thanks!