module main import gg import glfw import gx import automaton const ( screenWidth = 800 screenHeight = 600 filled_color = gx.Blue ) fn new_graphics() &gg.GG { glfw.init_glfw() return gg.new_context(gg.Cfg{ width: screenWidth height: screenHeight 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