Skip to content

Instantly share code, notes, and snippets.

@JamesLiame
Created February 5, 2025 08:45
Show Gist options
  • Save JamesLiame/3ec5041ba69b07c2fa5316e8a7de3707 to your computer and use it in GitHub Desktop.
Save JamesLiame/3ec5041ba69b07c2fa5316e8a7de3707 to your computer and use it in GitHub Desktop.
LUA-port of the Mandelbrot Equation
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