Package glfw experimentally provides a glfw-like API with desktop (via glfw) and browser (via HTML5 canvas) backends.
Package canvas provides an API that tries to closely mirror that of the HTML5 canvas API, using OpenGL to do the rendering.
Package canvas communicates with an HTML canvas in a web browser via WebSocket.
Package notelink provides a framework for generating API documentation and integrating it with a Fiber web server.
Package canvas communicates with an HTML canvas in a web browser via WebSocket.
Package canvas communicates with an HTML canvas in a web browser via WebSocket.
Package openvg is a wrapper to a C library of high-level 2D graphics operations built on OpenVG 1.1 The typical "hello world" program looks like this: package main import ( "bufio" "github.com/ajstarks/openvg" "os" ) func main() { width, height := openvg.Init() // OpenGL, etc initialization w2 := openvg.VGfloat(width / 2) h2 := openvg.VGfloat(height / 2) w := openvg.VGfloat(width) openvg.Start(width, height) // Start the picture openvg.BackgroundColor("black") // Black background openvg.FillRGB(44, 100, 232, 1) // Big blue marble openvg.Circle(w2, 0, w) // The "world" openvg.FillColor("rgb(100,255,123)") // White text openvg.TextMid(w2, h2, "hello, world", "serif", width/10) // Greetings openvg.End() // End the picture bufio.NewReader(os.Stdin).ReadBytes('\n') // Pause until [RETURN] openvg.Finish() // Graphics cleanup } Functions The Init function provides the necessary graphics subsystem initialization and the dimensions of the whole canvas.
Package canvas provides a lightweight, Processing-like 2D animation and creative coding library for Go.