Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
module main
import gg
import os
fn main() {
scount := os.args[1] or { '2' }.int()
println('> sample count: ${scount}')
mut ctx := gg.new_context(
bg_color: gg.white
window_title: 'sample_count: ${scount}'
width: 320
height: 240
sample_count: scount
frame_fn: fn (mut ctx gg.Context) {
ctx.begin()
ctx.draw_rounded_rect_empty(110, 70, 100, 100, 10, gg.blue)
ctx.draw_circle_empty(160, 120, 100, gg.red)
ctx.draw_triangle_empty(160, 93, 186, 138, 132, 138, gg.green)
ctx.draw_rect_filled(159, 119, 2, 2, gg.black)
ctx.end()
}
)
ctx.run()
}