2021-12-18 11:39:14 +01:00
|
|
|
module main
|
|
|
|
|
|
|
|
import math
|
|
|
|
import gg
|
|
|
|
import gx
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
mut context := gg.new_context(
|
|
|
|
width: 200
|
|
|
|
height: 200
|
|
|
|
window_title: 'Arcs'
|
|
|
|
frame_fn: frame
|
|
|
|
)
|
|
|
|
context.run()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn frame(mut ctx gg.Context) {
|
|
|
|
ctx.begin()
|
2021-12-23 12:31:25 +01:00
|
|
|
ctx.draw_arc_filled(100, 100, 35, 45, 0, f32(math.radians(290)), 30, gx.red)
|
2021-12-18 11:39:14 +01:00
|
|
|
ctx.draw_arc_empty(100, 100, 30, 50, 0, f32(math.radians(290)), 30, gx.white)
|
|
|
|
ctx.end()
|
|
|
|
}
|