View Single Post
Old 05-02-2016, 02:46 PM   #1
jasman
Human being with feelings
 
Join Date: Sep 2010
Posts: 72
Default JS: help drawing anti-aliased rotated solids

I'm struggling to find a way to draw rotated filled squares that are anti-aliased.

After calculating the vertices of the square I'm using
gfx_triangle(x1,y1,x2,y2,x3,y3[,x4,y4,...])
but it is not anti-aliased like the gfx_line and gfx_circle functions are.

The first image is what it looks like. Not too nice.

The second image is the same but with additional anti-aliased lines drawn between all vertices. Better, but still not lovely.

Any ideas anyone?
James
Attached Images
File Type: jpg JS rotated square example.jpg (4.0 KB, 295 views)
File Type: jpg JS rotated square example 2.jpg (4.0 KB, 208 views)
jasman is offline   Reply With Quote