diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2019-10-27 11:28:56 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2019-10-27 11:28:56 +0200 |
| commit | 53978c1878176ae21856e6b111d76dd1a80ecbca (patch) | |
| tree | cc2b5921ecd761b1af92726a3cc93ad672d8477c /examples/hello.nim | |
| parent | ae63588509363363f0da4c156ee4bc59f2902a10 (diff) | |
| download | nimraylib-53978c1878176ae21856e6b111d76dd1a80ecbca.tar.gz nimraylib-53978c1878176ae21856e6b111d76dd1a80ecbca.zip | |
Make it work and add an example
Diffstat (limited to 'examples/hello.nim')
| -rw-r--r-- | examples/hello.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/hello.nim b/examples/hello.nim new file mode 100644 index 0000000..e1c8d54 --- /dev/null +++ b/examples/hello.nim @@ -0,0 +1,14 @@ +import raylib/raylib + +InitWindow(800, 600, "basic example") + +SetTargetFPS(60) + +while not WindowShouldClose(): + BeginDrawing() + + ClearBackground(White) + + DrawText("Hello World!", 100, 100, 20, Black) + + EndDrawing() |
