RosettaCodeData/Task/Draw-a-pixel/V-(Vlang)/draw-a-pixel.v
2026-04-30 12:34:36 -04:00

16 lines
248 B
V

import gg
fn main() {
mut context := gg.new_context(
width: 320
height: 240
frame_fn: frame
)
context.run()
}
fn frame(mut ctx gg.Context) {
ctx.begin()
ctx.draw_pixel(100, 100, gg.red)
ctx.end()
}