Generator node new in 3.1

Code Countdown

A code that changes, with the time it has left: a small Label, the Code large, and a bar of its remaining validity (Bar 0–1). While Warning is on (the last seconds), the bar turns Warning Color and blinks Blink times a second. Link adds a line under the bar (empty hides it). Cable a Letter Post’s Code, Code Bar and Code Warning. Position X/Y is the panel’s centre and Scale its size; Align sets the text left, centred or right. Font is any installed font; until a code arrives the panel shows Empty Text.

Inputs

PortTypeDefault
CodeThe code to show — cable a Letter Post’s Code. Empty shows Empty Text.string
BarHow much of the code’s time is left, 0…1 — cable a Letter Post’s Code Bar.float1
WarningOn: the bar turns Warning Color and blinks — cable a Letter Post’s Code Warning.boolfalse
EnableOff: the picture is cleared.booltrue
Position XThe panel’s centre, Grafit units.float0
Position YThe panel’s centre, vertical, Grafit units.float0
ScaleThe panel’s size, 1 = natural.float1
AlignText left, centred or right.int0
LabelThe small word above the code.stringCODE
LinkA line under the bar, e.g. where to type the code. Empty hides it.stringgrafitpro.eu
Empty TextShown until a code arrives.string····
FontAny installed font.stringIM FELL English
InkColour of the label and the code.color—
Link ColorColour of the Link line.color—
Bar ColorColour of the time bar.color—
Warning ColorColour of the bar while Warning is on.color—
Track ColorColour of the bar’s empty track.color—
BlinkBlinks per second while Warning is on; 0 = steady.float2

Outputs

PortType
Imageimage
Widthfloat
Heightfloat

Open Code Countdown in the interactive catalog →

Code Countdown is one of 381 nodes in Grafit Pro.

Free download. Every feature for 7 days, no card. Then €99.99 once — or keep playing your projects as a Player.

More Generator nodes