jsuder-xx/seven-segment/1.0.1

SevenSegment.Config

Configuration for a seven-segment display.

type Config

Configuration for a seven-segment display.

init : { widthPixels : Int } -> Config

Default configuration for a red seven-segment display with a bevel. Specify the width in pixels. The display is roughly twice the width in height.

Remove the default bevel.

{ foregroundColor : Color
, backgroundColor : Color
}
-> Config
-> Config

Change the default red-on-black configuration.

Read the background color out of the Config.

Read the foreground color out of the Config.

Read the includeBevel out of the Config.

Read the width in pixels out of the Config.