Can anyone tell me if it's possible to draw a rectangle with a rectangular hole in it with Animation Package?
I'm trying to create a 10 pixel wide border - if I use a 10 pixel stroke I get rounded outer corners which I don't want.
Thanks
Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-08
I've have achieved the result I was after by drawing a series of rectangles to create the top, bottom, left and right edges. I used drawBy() each time so that the previous rectangles aren't cleared.
So, can anyone tell me if it is possible to draw a triangle with a hole in it?! I don't need to do this right now but I'm hoping that by finding this out I might find a better way of doing the rectangle.
Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
use the all new, updated Drawer class. If you have problems, let me know. Currently I have a newer version here offline than online is available. Drop me an email if you want the latest BETA version of Drawer.
To get the concept, check out Drawer's class documentation and the last example in Animator class documentation.
Best,
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-02-14
Hi Alex,
Thanks for this. I will try it out as soon as I get a chance.
Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Alex - hope all is good for you.
Can anyone tell me if it's possible to draw a rectangle with a rectangular hole in it with Animation Package?
I'm trying to create a 10 pixel wide border - if I use a 10 pixel stroke I get rounded outer corners which I don't want.
Thanks
Adrian
I've have achieved the result I was after by drawing a series of rectangles to create the top, bottom, left and right edges. I used drawBy() each time so that the previous rectangles aren't cleared.
So, can anyone tell me if it is possible to draw a triangle with a hole in it?! I don't need to do this right now but I'm hoping that by finding this out I might find a better way of doing the rectangle.
Adrian
Hey Adrian,
use the all new, updated Drawer class. If you have problems, let me know. Currently I have a newer version here offline than online is available. Drop me an email if you want the latest BETA version of Drawer.
To get the concept, check out Drawer's class documentation and the last example in Animator class documentation.
Best,
Alex
Hi Alex,
Thanks for this. I will try it out as soon as I get a chance.
Adrian