v1.0.1 - Fixed a bug with the raster library.

This commit is contained in:
TheWahlolly
2025-05-18 19:22:52 +03:00
parent 95c235e65b
commit af97754b6a
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.0.0"
_G._OSVERSION = "Halyde 1.0.1"
function _G.import(module, ...)
local args = table.pack(...)
+1 -2
View File
@@ -142,10 +142,10 @@ function raster.update()
raster.get(x,y),
raster.get(x,y+1),
raster.get(x,y+2),
raster.get(x,y+3),
raster.get(x+1,y),
raster.get(x+1,y+1),
raster.get(x+1,y+2),
raster.get(x,y+3),
raster.get(x+1,y+3)
}
local colorA = nil
@@ -318,7 +318,6 @@ function raster.drawEllipse(x1, y1, x2, y2, color)
raster.set(xc + x, yc + y, color)
raster.set(xc - x, yc + y, color)
raster.set(xc + x, yc - y, color)
raster.set(xc - x, yc - y, color)
if d1 < 0 then
x = x + 1