0 Members and 2 Guests are viewing this topic.
Quote from: Ashbad on June 02, 2011, 06:36:59 pmBasically, anti-aliasing is a graphical term, in which you color smooth out the edges of contrasting colors by putting intermediary colors between them. Example of anti-aliasing compared to non-aliased lines:Yes, I know that (I use Blender a lot, made also a RayTracer), but I don't understand why BrownyTCat proposed me to make an anti-aliasing in Lua ?!It is quite impossible since this routine has to be included in the gc:drawRect one !
Basically, anti-aliasing is a graphical term, in which you color smooth out the edges of contrasting colors by putting intermediary colors between them. Example of anti-aliasing compared to non-aliased lines:
I think he thought you had somehow added it in
I edited my post with the picture to explain a crude way of obtaining anti-aliasing between colors on a plane.
function SetPixel(x, y) gc:fillRect(x, y, 1, 1)end
I think your best bet would be to just do this:Code: [Select]function SetPixel(x, y) gc:fillRect(x, y, 1, 1)endRectangles are inherently fast to computer than lines
That would only be worthwhile if you could set up some kind of anti aliasing with it
Quote from: Ashbad on June 02, 2011, 07:00:27 pmI think your best bet would be to just do this:Code: [Select]function SetPixel(x, y) gc:fillRect(x, y, 1, 1)endRectangles are inherently fast to computer than lines I don't get it. You wan't me to make a FillPolygon function using a cheated setPixel function only to make the render "nicer" but the render time extremly important whereas there is already a fillPolygon() function that works perfectly ?