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
| Port | Type | Default |
|---|---|---|
| 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. | float | 1 |
| WarningOn: the bar turns Warning Color and blinks — cable a Letter Post’s Code Warning. | bool | false |
| EnableOff: the picture is cleared. | bool | true |
| Position XThe panel’s centre, Grafit units. | float | 0 |
| Position YThe panel’s centre, vertical, Grafit units. | float | 0 |
| ScaleThe panel’s size, 1 = natural. | float | 1 |
| AlignText left, centred or right. | int | 0 |
| LabelThe small word above the code. | string | CODE |
| LinkA line under the bar, e.g. where to type the code. Empty hides it. | string | grafitpro.eu |
| Empty TextShown until a code arrives. | string | ···· |
| FontAny installed font. | string | IM 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. | float | 2 |
Outputs
| Port | Type |
|---|---|
| Image | image |
| Width | float |
| Height | float |
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.