22 lines
		
	
	
		
			331 B
		
	
	
	
		
			V
		
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			331 B
		
	
	
	
		
			V
		
	
	
| module main
 | |
| 
 | |
| import gg
 | |
| import gx
 | |
| 
 | |
| fn main() {
 | |
| 	mut context := gg.new_context(
 | |
| 		width: 200
 | |
| 		height: 200
 | |
| 		window_title: 'Elipses'
 | |
| 		frame_fn: frame
 | |
| 	)
 | |
| 	context.run()
 | |
| }
 | |
| 
 | |
| fn frame(mut ctx gg.Context) {
 | |
| 	ctx.begin()
 | |
| 	ctx.draw_ellipse_filled(100, 100, 100, 50, gx.red)
 | |
| 	ctx.draw_ellipse_empty(100, 100, 50, 25, gx.black)
 | |
| 	ctx.end()
 | |
| }
 |