Home › Forums › General › Programming › How to use createDashedStroke › Reply To: How to use createDashedStroke
August 4, 2014 at 1:01 pm
#27054
This seems impossible at the moment, i have no idea how to pass a const float * type in Lua, i’ll write a wrapper to simplify this process asap and post an example. To draw a path that’s a line:
drawPanel = function(canvas,g)
p = Path()
p:startNewSubPath (0.0, 0.0);
p:lineTo (100, 100);
stroke = PathStrokeType (5.0, PathStrokeType.mitered, PathStrokeType.butt)
trans = AffineTransform()
g:strokePath (p, stroke, trans)
end