I am currently working on a new version of my paint program: PaintPlus. I can't quite figure out how to make a circle tool. I have been trying to find out a little bit about ellipses, and I found the Cartesian Equation.
Even though I found that equation, I still need a little help using that in PaintPlus. Thanks in advance.
Last edited by HD123 (2010-12-24 08:42:47)
Offline
I worked on a featured paint program called DCrawer a few months ago. I worked on a second version that included circles (though I never published it.)
For circles I used a circle sprite with a size affected by the mouse pointer as this solved the stamping and clearing problem of constantly redrawing the circle as you move the mouse.
Ellipses however, if you wanted to use the same technique to show where the ellipse will be drawn, you'd have to use horizontal and vertical stretch blocks.
Scratch does not have these, so if you wanted this to be possible (believe me, the stretch block do a LOT of useful things in a paint program (such as a one costume line that stretches to follow your mouse pointer) You'd either have to open the Scratch browser and edit your copy of Scratch, making your own stretch blocks, or you can use Panther - a modification of Scratch which has those and a load of other blocks you can use for a paint editor (such as a [color of pixil x: y:] block that lets you create colour pickers) Which is what I did.
Best of luck to you
Offline
sparks wrote:
I worked on a featured paint program called DCrawer a few months ago. I worked on a second version that included circles (though I never published it.)
For circles I used a circle sprite with a size affected by the mouse pointer as this solved the stamping and clearing problem of constantly redrawing the circle as you move the mouse.
Ellipses however, if you wanted to use the same technique to show where the ellipse will be drawn, you'd have to use horizontal and vertical stretch blocks.
Scratch does not have these, so if you wanted this to be possible (believe me, the stretch block do a LOT of useful things in a paint program (such as a one costume line that stretches to follow your mouse pointer) You'd either have to open the Scratch browser and edit your copy of Scratch, making your own stretch blocks, or you can use Panther - a modification of Scratch which has those and a load of other blocks you can use for a paint editor (such as a [color of pixil x: y:] block that lets you create colour pickers) Which is what I did.
Best of luck to you![]()
Erm.. that's not exactly what I meant. I want to be able to do it without using stretch blocks. It will probably be tricky, but I'm sure it's possible. Does anybody know how to do it without using stretch blocks?
Offline
http://scratch.mit.edu/projects/randalpik/615782, and http://scratch.mit.edu/projects/1tchy/87884 are the best results I found on the first page of the search. I will go download them and see the scripts. BTW, I will download yours too, TheSuccessor. Thanks for helping TheSuccessor and sparks!
Offline
Closed by request of topic owner ^^
Offline