How are you learning Lua?
Either way, here's how setPen() works:
gc:setPen(thickness, smoothness) : thickness {“thin”, “medium”, "thick"}, smoothness {“smooth”, "dotted", "dashed"}
You use it in the on.paint() function for example:
function on.paint(gc)
gc:setPen("thick", "dashed")
gc:drawRect(10, 10, 30, 30)
end
The rectangle at (10,10) is drawn with a thick and dashed line, try it
