Returns a new Paint that copies this one, optionally overriding selected
properties with values from the provided PaintDefinition.
Returns a new Paint instance.
Copy
Ask AI
local base = Paint.with({ style = 'fill', color = Color.rgb(255, 0, 0),})local outline = base:copy({ style = 'stroke', thickness = 4,})