Shape - dimkauzh/webzen GitHub Wiki
Api to shape module
Import it like this:
import (
"github.com/dimkauzh/webzen/src/shape"
)
Structs
type Rect struct {
x float64
y float64
width float64
height float64
color [4]int
}
Functions
func NewRect(x, y, width, height float64, color [4]int) -> Rect
func (r *Rect) Draw()