Paste: raylib + timers + threads
Author: | CapitalEx |
Mode: | factor |
Date: | Sat, 25 Mar 2023 22:58:18 |
Plain Text |
USING: arrays calendar combinators.smart io kernel literals
namespaces random random.data raylib sequences threads timers
unicode ;
IN: hello-raylib
SYMBOL: color
SYMBOL: text
CONSTANT: COLORS $[ RED GREEN BLUE 3array ]
: current-color ( -- color )
color get-global ;
: current-text ( -- text )
text get-global ;
: clear ( -- )
RAYWHITE clear-background ;
: hello-world ( -- )
current-text 10 10 32 current-color draw-text ;
: idle-frame ( -- )
16 milliseconds sleep ;
: with-draw ( quote -- )
clear begin-drawing call end-drawing idle-frame ; inline
: randomize-color ( -- )
COLORS random color set-global ;
: ranodmize-letter ( Letter -- Letter )
[ Letter? ] [ drop random-Letter ] smart-when ;
: randomize-text ( -- )
text [ [ ranodmize-letter ] map ] change-global ;
: main ( -- )
600 450 "Hello, World!" init-window
randomize-color
"Hello, World!" text set-global
[ randomize-color ] 250 milliseconds every drop
[ randomize-text ] 125 milliseconds every drop
[ window-should-close ] [ [ hello-world ] with-draw ] until
close-window ;
MAIN: main
Author: | Justine |
Mode: | factor |
Date: | Sun, 26 Mar 2023 17:29:24 |
Plain Text |
Buy Bank To Bank Transfer
Fresh Virtual Prepaid Credit Cards
Physical Credit Cards
Cloned Credit And Debit Cards For Bulk Cash out.
Online Shoppers/ Credit Cards For Quick Spending.
Western Union Bug / Paypal Account Transfers Fresh New Cvv Cvc CC Fullz Complete Info & Dumps With Pin Track1&2 Atm Skimmer Msr Money Broker.
Online Tutorials Booking Available For Bitcoin.. Cryptocurrency Mining&investment.
KINDLY CONTACT ME:
Ymail: myersjustine14@yahoo.com
Gmail: myersjustine41@gmail.com
Text/Whatsapp: +1-409-420-2312
Telegram: +1-317-520-1386
***Thank You For Reading***
New Annotation