CMStroke

public class CMStroke : JSONable

Defines color and width

  • The text color filled. Default is white.

    Example:

    CMStroke.color = "#ff0000"
    

    Color format:

    Named colors:  red, blue, salmon, rebeccapurple
    Hex colors: "#fff", "#000", "#9CE6E5"
    RGB colors: "rgb(255, 190, 0)"
    RGBA colors**: "rgb(255, 190, 0, .5)"
    HSL colors: "hsl(180, 100%, 100%)"
    HSL colors**: "hsla(180, 100%, 100%, 50%)"
    

    **Currently, alpha values are ignored in the add and multiply blend modes, and respected in the inlay and overlay modes. For more on this, see the blend entry.

    Declaration

    Swift

    public var color: String?
  • The width in pixels string. Default is 1px.

    Example:

    CMStroke.width = "5px"
    

    Declaration

    Swift

    public var width: String?
  • Undocumented

    Declaration

    Swift

    public class CMStroke : JSONable
  • Undocumented

    Declaration

    Swift

    public class CMStroke : JSONable
  • Undocumented

    Declaration

    Swift

    public class CMStroke : JSONable
  • Undocumented

    Declaration

    Swift

    public class CMStroke : JSONable