On this page:
Pen
Pen.color
Pen.width
Pen.style
Pen.cap
Pen.join
Pen.stipple
Pen.Style
Pen.Cap
Pen.Join
Pen.none
8.12

3 Pen🔗ℹ

class

class Pen():

  constructor (

    ~color: color :: (String || Color) = "Black",

    ~width: width :: Real.in(0, 255) = 1,

    ~style: style :: Pen.Style = #'solid,

    ~cap: cap :: Pen.Cap = #'round,

    ~join: join :: Pen.Join = #'round,

    ~stipple: stipple :: maybe(Bitmap) = #false,

  )

Creates a pen configuration.

A pen like an existing one can be constructed using with and the field names color, width, style, cap, join, and/or stipple.

property

property (pen :: Pen).color :: Color

 

property

property (pen :: Pen).width :: Real.in(0, 255)

 

property

property (pen :: Pen).style :: Pen.Style

 

property

property (pen :: Pen).cap :: Pen.Cap

 

property

property (pen :: Pen).join :: Pen.Join

 

property

property (pen :: Pen).stipple :: maybe(Bitmap)

Properties to access pen components.

annotation

Pen.Style

Satisfied by the following symbols:

annotation

Pen.Cap

Satisfied by the following symbols:

annotation

Pen.Join

Satisfied by the following symbols:

value

def Pen.none :: Pen

A pen with style #'transparent.