Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
module main
|
||||
|
||||
import gg
|
||||
|
||||
gg.start(
|
||||
bg_color: gg.white
|
||||
window_title: 'Rectangles'
|
||||
width: 250
|
||||
height: 100
|
||||
frame_fn: fn (ctx &gg.Context) {
|
||||
ctx.begin()
|
||||
ctx.draw_rect_filled(10, 10, 10, 10, gg.blue)
|
||||
ctx.draw_rect_empty(30, 10, 10, 10, gg.red)
|
||||
ctx.draw_rect_filled(50, 10, 30, 10, gg.green)
|
||||
ctx.draw_rect_empty(100, 10, 30, 10, gg.black)
|
||||
|
||||
ctx.draw_rect_empty(10, 50, 10, 10, gg.blue)
|
||||
ctx.draw_rect_filled(30, 50, 10, 10, gg.red)
|
||||
ctx.draw_rect_empty(50, 50, 30, 10, gg.green)
|
||||
ctx.draw_rect_filled(100, 50, 30, 10, gg.black)
|
||||
ctx.end()
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user