>Àfunction log2(x) return math.log(x)/math.log(2) end function smin(a,b,k) res=2^(-k*a)+2^(-k*b) return -log2(res)/k end function dist(x,y,z) return math.sqrt(x^2+y^2+z^2)-1 end function render(px,py) dx=(px-120)/120 dy=(py-68)/120 dz=1 t=0 for i=0,20 do t=t+dist(0+dx,0+dy,-3+dz) if t<0.0001 or t>50 then break end end return t*32000 end function TIC() for x=0,239 do for y=0,135 do pix(x,y,render(x,y)) end end end