On this page:
Pen
Pen.color
Pen.width
Pen.style
Pen.cap
Pen.join
Pen.stipple
Pen.Style
Pen.Style.transparent
Pen.Style.solid
Pen.Style.xor
Pen.Style.hilite
Pen.Style.dot
Pen.Style.long_  dash
Pen.Style.show_  dash
Pen.Style.dot_  dash
Pen.Style.xor_  dot
Pen.Style.xor_  long_  dot
Pen.Style.xor_  short_  dot
Pen.Style.xor_  dot_  dash
Pen.Cap
Pen.Cap.round
Pen.Cap.projecting
Pen.Cap.butt
Pen.Join
Pen.Join.round
Pen.Join.bevel
Pen.Join.miter
Pen.none
8.13.0.9

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.

Line-drawing mode.

enumeration

enum Pen.Cap:

  round

  projecting

  butt

Line-ending modes.

enumeration

enum Pen.Join:

  round

  bevel

  miter

Line-joining modes.

value

def Pen.none :: Pen

A pen with style #'transparent.