Created
February 5, 2025 08:45
-
-
Save JamesLiame/3ec5041ba69b07c2fa5316e8a7de3707 to your computer and use it in GitHub Desktop.
LUA-port of the Mandelbrot Equation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function mand(iter:number,complex:number) | |
local znext = 1 | |
local zprev = 1 | |
local itr = iter | |
while (not (itr <= 0)) { | |
znext = (zprev * zprev) + complex | |
zprev = znext | |
itr -= 1 | |
} | |
return znext | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment