Download the 2 sprites and 4 scripts of "elipse-circle" and open it in Scratch
Project Notes
This is a snippet that could be used in a paint program.
To use it, click anywhere on the screen (while it is not drawing a circle or ellipse!) to initiate a center point for your shape. Then, keep holding the mouse down to set the boundarys for your shape, then let go!
The program takes the initial click point to be the center (x and y) then updates the size factors while the mouse if held down by:
abs (x-x mouse) / radius of perfect sine/cosine circle (here it is 100)
and
abs(y-y mouse) / raduis...
Then draws a circle at x+sin*x factor and same for y with cosine
Comments
You need to be logged in to post comments
Add a Comment
cool