You can try this Go library by mischief and some examples in the cmd package: https://bitbucket.org/mischief/draw9/src/default/ Last I recall, it worked fine on 9front. I'm not sure about the other variants. Cheers, Chris On Sat, Apr 4, 2020 at 9:54 AM Kim Lassila wrote: > Has anyone written a graphical application in Go on Plan 9? How would the > Go equivalent of black.c (thank you fgb) look like? > > - - - clip - - - > > #include > #include > #include > > void > main(int, char *argv[]) > { > Rectangle rect; > Image *black; > > fmtinstall('R', Rfmt); > if(initdraw(nil, nil, argv[0]) < 0) > sysfatal("initdraw: %r"); > rect = screen->r; > black = display->black; > draw(screen, rect, black, nil, ZP); > flushimage(display, 1); > sleep(5 * 1000); > closedisplay(display); > print("rectangle was %R\n", rect); > exits(nil); > } > > *9fans * / 9fans / see discussions > + participants > + delivery options > Permalink > >