module main import gg import gx import automaton const ( screen_width = 800 screen_height = 600 filled_color = gx.blue ) fn new_graphics() &gg.GG { glfw.init_glfw() return gg.new_context(gg.Cfg{ width: screen_width height: screen_height use_ortho: true create_window: true resizable: false window_title: 'v life (with gg, glfw, gx)' window_user_ptr: 0 }) } const ( graphics = new_graphics() ) [live] fn print_automaton(a &automaton.Automaton){ gg.clear(gx.white) square_size := 18 for y := 1; y