diff options
| author | raysan5 <raysan5@gmail.com> | 2016-08-06 19:29:58 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-08-06 19:29:58 +0200 |
| commit | 865b216ebef8e62a19f3a264001ddf17601f95c5 (patch) | |
| tree | f31468099c8d85cf8767161c3e9c4b16391276d1 /examples/textures_raw_data.lua | |
| parent | 7f9513fbf41e9d340307fc0f9aeed8e5f4293a96 (diff) | |
| download | raylib-865b216ebef8e62a19f3a264001ddf17601f95c5.tar.gz raylib-865b216ebef8e62a19f3a264001ddf17601f95c5.zip | |
Updated Lua examples
Most of the examples already working! Only some of them still fail,
mostly related to data arrays...
Diffstat (limited to 'examples/textures_raw_data.lua')
| -rw-r--r-- | examples/textures_raw_data.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/textures_raw_data.lua b/examples/textures_raw_data.lua index 16c1c0ad..8a955adf 100644 --- a/examples/textures_raw_data.lua +++ b/examples/textures_raw_data.lua @@ -36,7 +36,7 @@ local pixels = {} for y = 1, height do for x = 1, width do - if (((x/32+y/32)/1)%2 == 0) then pixels[y*height + x] = DARKBLUE + if ((((x - 1)/32+(y - 1)//32)//1)%2 == 0) then pixels[y*height + x] = DARKBLUE else pixels[y*height + x] = SKYBLUE end end end |
