Actionscript 3 Designer Toolkit

More design, less programming

Actionscript 3 Designer Toolkit header image 2

Drawing a diagonal line-filled rectangle: Diagonals Class

November 27th, 2009 · 1 Comment · AS3 Custom Classes

The Diagonals Class is a simple drawing class for constructing a rectangle filled with parallel diagonal lines. The class can serve as a border or as a textured background.

In addition to specifying the dimensions of the filled rectangle, additional parameters include line weight, color and transparaency, line angle and spacing.  Finally, a line of code – currently commented out – causes the alpha of each diagonal to vary randomly when uncommented.

Download files: Diagonals.zip (437)

If you found this post helpful please consider a Retweet.  Thanks…

Post to Twitter

Tags: ··

One Comment so far ↓

  • Og2t

    I found this by chance but actually I needed it for the project! Can’t believe how thing happen. Thanks for the implementation.

    Best,
    Tomek

Leave a Comment

Spam Protection by WP-SpamFree