Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import gg
|
||||
|
||||
mut r := &gg.Rect{20, 20, 60, 20}
|
||||
gg.start(
|
||||
update_fn: fn [mut r] (dt f32, c &gg.Context) {
|
||||
r.width++
|
||||
r.height++
|
||||
}
|
||||
frame_fn: fn [mut r] (c &gg.Context) {
|
||||
c.begin()
|
||||
c.draw_rect_filled(r.x, r.y, r.width, r.height, gg.frgb(0.0, 0.4, 0.4))
|
||||
c.end()
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user