I'm new to programming raster graphics and trying to build a simple app, and I want to make sure lines have a smooth anti-aliased look. I am wondering if this can be achieved simply by having a brush that stamps circle gradients that look like this, where the outer color could be any color but most importantly an alpha of 0:
In other words, does a simple gradient satisfy the needs of anti-aliasing or is there a more complex algorithm involved?