I use vector graphics extensively to create Cartesian graphs and grids that are dynamically configurable, zoomable, moveable etc.
I have been using these techniques for quite some time on many platforms. I am getting really inconsistent rendering of the display.newLine() object.
I’m posting this as a topic to find out if anyone else is experiencing the same thing and if there area workarounds, settings, etc. to correct the problem.
The following function works perfectly in an isolated test case. The graphics look clean and crisp on each form factor.
function scene:create( event ) local sceneGroup = self.view local i = 1 local box = display.newRect(sceneGroup, display.contentCenterX, display.contentCenterY, 500, 500) box.fill = {.2, .2, .2} local grid = {} for i = 1, 10, 1 do grid[i] = display.newLine( sceneGroup, i \* 20, 0, i \* 20, display.contentHeight ) grid[i].stroke = {.8,.2,.2} grid[i].strokeWidth = 1 end end
When I apply the same technique in my app, I get inconsistently rendered lines (different pixels wide or missing).
Wondering if I’m missing something before I post a bug report.