Skip to content
Dima Marhitych edited this page Oct 17, 2023 · 5 revisions

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)
Clone this wiki locally