style
join
cap
thickness
blendMode
feather
gradient
color
new
local paint = Paint.new() paint.style = 'fill' paint.color = Color.rgb(255, 200, 80)
with
local strokePaint = Paint.with({ style = 'stroke', thickness = 3, color = Color.hex('#FF0066'), join = 'round', cap = 'round', })
copy
local base = Paint.with({ style = 'fill', color = Color.rgb(255, 0, 0), }) local outline = base:copy({ style = 'stroke', thickness = 4, })
Was this page helpful?