mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
9 lines
243 B
V
9 lines
243 B
V
module gg
|
|
|
|
import gx
|
|
|
|
pub fn (mut ctx Context) draw_text(x int, y int, text_ string, cfg gx.TextCfg) {
|
|
ctx.context.fillStyle = cfg.color.to_css_string().str
|
|
ctx.context.font = cfg.to_css_string().str
|
|
ctx.context.fillText(text_.str, x, y)
|
|
}
|