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

Api to draw module

Import it like this:

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

Functions

draw.FillBackground(color [4]int)
draw.DrawText(text string, size, x, y int)
draw.DrawRect(width, height, x, y float64, color [4]int)
draw.SetPixel(x, y float64, color [4]int)
Clone this wiki locally