How To Get Perfect Lines for Painting Engines