Skip to content

dfirebaugh/hlg

Repository files navigation

hlg (High Level Graphics)

This project is a WIP. The goal is to make a high level graphics api for golang.

Go Reference Documentation: https://dfirebaugh.github.io/hlg/

Examples

check the ./examples dir for some basic examples

Triangle

package main

import (
	"github.com/dfirebaugh/hlg"
	"golang.org/x/image/colornames"
)

func main() {
	hlg.SetWindowSize(720, 480)
	hlg.SetScreenSize(240, 160)
	t := hlg.Triangle(0, 160, 120, 0, 240, 160, colornames.Orangered)

	hlg.Update(func() {
		hlg.Clear(colornames.Skyblue)
		t.Render()
	})
}

triangle_example

About

a high level graphics api using webgpu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages