public applyPen(pen as Pen) as Void:
Applies a Pen to the stroke-related state.
Pen
painter.applyPen(Pen(Color.black(), 2.0))