blob: 4fea55fdec99b76c327e257cd2f7c5dd1cb3177a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const zigr = @import("zigr");
pub fn main() void {
const screen: *zigr.Window = .init(320, 240, "Hello", .{});
while (!screen.closed() and !(screen.keyDown(.ESCAPE))) {
screen.clear(.initRGB(0x80, 0x90, 0xa0));
screen.print(null, 120, 110, .initRGB(0xff, 0xff, 0xff), "Hello, world.");
screen.update();
}
screen.update();
}
|