1 ! Copyright (C) 2019 Jack Lucas
2 ! See http://factorcode.org/license.txt for BSD license.
4 USING: alien.enums kernel raylib ;
9 800 600 "Hello, Factor!" init-window
12 : button-rec ( -- button )
13 50 50 100 100 Rectangle boa ;
15 : white-background ( -- )
16 RAYWHITE clear-background ;
19 "Hello Factor!" 4 4 30 RED draw-text ;
21 : set-button-style ( -- )
23 TEXT_ALIGNMENT enum>number
24 GUI_TEXT_ALIGN_LEFT enum>number
38 begin-drawing white-background
39 say-hello render-gui end-drawing ;
44 window-should-close not