Draw - dimkauzh/webzen GitHub Wiki

Api to draw module

Import it like this:

import (
    "github.com/dimkauzh/webzen/src/draw"
)

Functions


func FillBackground(color [4]int)
func DrawText(text string, size, x, y int)
func DrawRect(width, height, x, y float64, color [4]int)
func SetPixel(x, y float64, color [4]int)