axiom-developer
[Top][All Lists]

## Re: [Axiom-developer] drawRibbons from the book

 From: root Subject: Re: [Axiom-developer] drawRibbons from the book Date: Sun, 5 Nov 2006 23:06:39 -0500

fixed axiom--silver--1

--- book.pamphlet       Tue Sep 19 23:22:26 2006
+++ book.pamphlet.new   Sun Nov  5 23:05:17 2006
@@ -54451,7 +54451,7 @@

\begin{figure}
\begin{verbatim}
-drawRibbons(flist, xrange) ==}{}
+drawRibbons(flist, xrange) ==
sp := createThreeSpace()                     Create empty space $sp$.
y0 := 0                                      The initial ribbon position.
for f in flist repeat                        For each function $f$,
@@ -54562,7 +54562,7 @@
\begin{figure}
\hrule
\begin{verbatim}
-drawRibbons(flist, xrange, yrange) ==}{}
+drawRibbons(flist, xrange, yrange) ==
sp := createThreeSpace()                     Create empty space $sp$.
num := \# flist                              The number of ribbons.
yVar := variable yrange                      The ribbon variable.
@@ -54570,7 +54570,7 @@
width:Float := (hi segment yrange - y0)/num  The width of a ribbon.
for f in flist for color in 1..num repeat    For each function $f$,
makeObject(f, xrange, yVar = y0..y0+width, create and add ribbon to
-      var2Steps == 1, colorFunction == (x,y) +-> color, \_
+      var2Steps == 1, colorFunction == (x,y) +-> color, _
space == sp)                             $sp$ of a different color.
y0 := y0 + width                           The next ribbon coordinate.
vp := makeViewport3D(sp, "Ribbons")          Create viewport.



reply via email to