Skip to content

esenti/godraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example:

package main

import (
    "github.com/esenti/godraw"
)

func main() {
    context := godraw.CreateContext(800, 600)

    for !context.Window.ShouldClose() {
        context.Clear(godraw.Color{1.0, 1.0, 0.0})
        context.DrawRectangle(100, 300, 20, 20, godraw.Color{0.5, 0.4, 0.2})
        context.DrawRectangle(200, 200, 345, 12, godraw.Color{0.5, 0.7, 0.2})
        context.DrawRectangle(399, 312, 345, 124, godraw.Color{0.1, 0.9, 0.1})

        context.Window.SwapBuffers()
        context.PollEvents()
    }

}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages