Prev Previous Post   Next Post Next
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.