Creating Flashing Text

Hi, folks,

how would I go about creating flashing text? I have an idea but it feels awkward. I might have missed an easy solution.

Thanks and 73,

Jörg, OE1AGF

1 second on, 1 second off:

if sys.now() % 2 < 1 then
    font:write(10, 10, "Hello", 100, 1,1,1,1)
end

-- or 
font:write(10, 10, "Hello", 100, 1,1,1, (sys.now() % 2 < 1) and 1 or 0)
1 Like