|
![](/i/fill.gif) |
Andrew C on Mozilla wrote:
> I really wanna try this with *lots* of different IFS's... I don't know
> if you've seen it, but on my copy of RedHat there was an IFS
> screensaver. Seems to be able to draw random IFS's in realtime => very
> impressive! (That's gotta take some SERIOUS CPU time...)
Actually no. I'm sorry if I destroy an illusion, but apparently this
screensaver precalculates the IFS once, then draws it in various sizes
and rotations, and with varying angles for the branches. This can be
done very efficiently with matrices, and the drawing itself is just a a
matter of setting a few pixels to a color.
On the box where I'm sitting now (Fedora Core 1.0 on an Athlon 800) the
system load doesn't go up by more than perhaps 1% when this screensaver
is started.
--
(defun f(p x)(If(Eq x nil)nil(If(p(Car x))(Cons(Car x)(f p(Cdr x)))(f p
(Cdr x)))))(defun q(x)(Q nil x))(defun Q(a x)(If(Eq x nil)a(Q(Cons(Car
x)(Q a(f(Lt(Car x))(Cdr x))))(f(Gt(Car x))(Cdr x)))))
Post a reply to this message
|
![](/i/fill.gif) |