返回列表 回复 发帖
未命名1.gsp (4.85 KB)
加“OR ”
或者用同余
New.jpg
没有完全按柳老师的方法,多出了一些东西。
New.gif
这样更简单些

KochCurvecir {
init:
  z = #pixel
  int  n=0
loop:
    n = n+1
    arg = atan2(z)
    arg2 = 2*pi/3*round(3*arg/(2*pi))

    if n > 1 &&  arg2 == 0
      arg2 = 2*pi/3
    endif

   if  |z|>1
    z = z*exp(-1i*arg2)
    z = - @s*z + (1 +@s)
   endif

bailout:
     |z|>1

default:
  title = "Circly Koch Curve"
  helpfile = "sam-help/kochcurves.htm"
  magn = .5
  center = (0.00021,0.0002)
  maxiter = 20
  periodicity = 0

  param s
    caption = "Magnification step"
    default = 1.7
  endparam
}
New.jpg

KochCurvecir.gsp (10.04 KB)

New.jpg
New.jpg
151# 柳烟

146#发现了这个问题,并用之
我几乎天天都想看看画板论坛,看看各位老师,可我最近有点懒,也没有新的东西与大家分享,就很少...。
295# xiaongxp

能不能不用迭代做这个三分集
sshot-1.png
返回列表