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…
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