Menu

Drawing a rectangle with a hole in it?

Help
Anonymous
2006-02-08
2013-04-01
  • Anonymous

    Anonymous - 2006-02-08

    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

     
    • Anonymous

      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

       
    • Alex Uhlmann

      Alex Uhlmann - 2006-02-10

      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

       
    • Anonymous

      Anonymous - 2006-02-14

      Hi Alex,

      Thanks for this. I will try it out as soon as I get a chance.

      Adrian

       

Log in to post a comment.