mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
243 B
V
10 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)
|
|
}
|