GraphicsCommandStrokePattern strokePattern(GraphicsPattern pattern, [ num width = 1.0, JointStyle jointStyle = JointStyle.MITER, CapsStyle capsStyle = CapsStyle.NONE ])

Apply a stroke pattern to the previously drawn vector object.

Source

GraphicsCommandStrokePattern strokePattern(GraphicsPattern pattern, [
    num width = 1.0,
    JointStyle jointStyle = JointStyle.MITER,
    CapsStyle capsStyle = CapsStyle.NONE]) {

  var command = new GraphicsCommandStrokePattern(pattern, width, jointStyle, capsStyle);
  this.addCommand(command);
  return command;
}