mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Grilled fixes shape.spiral
This commit is contained in:
parent
d3b57899ab
commit
8b93f75b25
@ -2,10 +2,11 @@ local thickness = 72 -- change this to change the spiral thickness.
|
||||
|
||||
local inv_pi = 1 / math.pi
|
||||
local thickness2 = thickness * 2
|
||||
local sqrt = math.sqrt
|
||||
|
||||
return function(x, y)
|
||||
local d_sq = x * x + y * y
|
||||
if d_sq < 16384 then --d < 128
|
||||
local d = sqrt(x * x + y * y)
|
||||
if d < 128 then
|
||||
return true
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user