Math = Art! | Logo 15-word challenge | winners other entries |
The challenge was announced and judged by Keith Enevoldsen, spring 1997: "Write a Logo one-liner using 15 or fewer words, not counting square brackets and parentheses, to produce the most beautiful, complex, and interesting picture."
The one-line codes work as written in MSWLogo and UCBLogo. MicroWorlds sometimes requires slightly different code, as noted below in the Winners' section, and cannot run code using the command "px" (which reverses the color).
Click here for information on downloading free versions of Logo.
Five Rose or Starfish, by Paolo Passaro, Italy (and Julie Clune, Australia) - only 8 words!!
dotimes [i 1800] [fd 10 rt :i + .1] (MicroWorlds)
Please see the project details for the project background, extra code, and more graphics.
Dahlia, by David Eisenstat, U.S. (14 words)
For numbers greater than 7, the patterns repeat.
This will work without modification in absolutely all Logo implementations.
Layers, by Alessio Plebe, Italy (15 words)
dotimes [i 420] [seth :i repeat :i [fd 2 rt 1] pu home pd] (MicroWorlds) This is slow, but it has very beautiful and complex moire patterns. If your screen is small, let it wrap. The moire effect isn't as strong if you try to shrink it.
Lissajous variations, by Samuel Kilchenmann, Switzerland (15 words)
repeat 360 [setxy (sin(89 * repcount)) * 150 (sin(179 * repcount)) * 150]
repeat 360 [setxy (sin(254 * repcount)) * 150 (sin(201 * repcount)) * 150]
repeat 360 [setxy (sin(327 * repcount)) * 150 (sin(66 * repcount)) * 150] dotimes [i 360] [setpos list (sin(254 * :i)) * 150 (sin(201 * :i)) * 150] (MicroWorlds)
Change the factors to get lots of different designs.
Pencil Sketch, by Andrzej Baczynski (shortened by Yehuda Katz), 15 words
Penta-octagon, by M.H. Elhefni, Egypt (15 words)
dotimes [i 15] [repeat 5 [repeat 8 [fd (10 + (:i * 5)) rt 45] rt 72] (MicroWorlds)
Beautiful "telescoping" polygons. Change the numbers to get more designs.
(See the "octa-octagon" below.)
Circus (Ring variation 2), by Olga Tuzova, Russia (14 words)
This requires PENREVERSE (PX) and a big pen.
This cheerful entry reminds me of circus jugglers and clowns doing cartwheels.
other ring variations
Radar, by Zippi Katz, Israel (11 words)
It looks like a weather radar. [It is in constant motion.]
The really interesting part is that the effect is entirely destroyed
if you replace "fd 40 fd 40" by "fd 80".
Square Spiral, by Yehuda Katz, Israel (9 words)
It seems simple, but it has a suprising effect, based on WRAP mode and PX mode. The effect will depend on your screen size. The effect is strikingly bold with a square screen and more complex with a non-square screen. In MSW Logo, you can set the screen size.
Example: c:\\logo\\logo -h 480 -w 640
Note: The first four "entries" shown here were among some samples provided by Keith Enevoldsen in announcing the Logo 15-word challenge.
Slalom Scrolls
index |
Hairy Star
index |
Jaggy Star
index |
Bullring
REFERENCES
"Another Fine Math You've Got Me Into..." by Ian Stewart contains an interesting chapter about curves like these. The "bullring" is from Ian Stewart's book.
index |
Random Lines, by Michael Tempel, U.S. (9 words)
(This usually produces Jackson Pollacks, but there is a chance that it will produce a Michelangelo.) Depending on what random numbers the computer chooses, you may get something like one of the three images above.
index |
Square Spiral variation 1, by Keith Enevoldsen, U.S. (9 words)
saved in early stage
Square Spiral variation 2, by Bill Kerr, Australia (14 words or 8 words)
for [x 1 150] [fd :x rt 89]
index |
Sine Wave, by Shachar Katz, Israel (15 words)
index |
Radar variation 1, by Bill Kerr, Australia (12 words)
Radar variation 2, by Keith Enevoldsen, U.S. (7 words)
index |
Brownian Motion, by Erez Katz, Israel (14 words)
(Maybe it should be named urban sprawl.)
index |
Feathers, by Marian Rosen, U.S. (13 words)
Feathers variation 1, by Keith Enevoldsen, U.S. (13 words)
index |
Spiral, by Olga Tuzova, Russia (11 words)
index |
Ring, by Olga Tuzova, Russia (10 words)
(Looks like a caterpillar in motion.)
Ring variation 1, by Keith Enevoldsen, U.S. (10 words)
index |
Cubism (Ring variation 3), by Yehuda Katz, Israel (15 words)
index |
Milky Way, by Olga Tuzova, Russia (15 words)
index |
Inky Dots, by Olga Tuzova, Russia (14 words)
Inky Dots variation 1, by Yehuda Katz, Israel (15 words)
index |
Rose, by M.H. Elhefni, Egypt (shortened by Yehuda Katz, Israel, 13 words)
Rose variation 1, by Keith Enevoldsen, U.S. (14 words)
Rose variation 2, by M.H. Elhefni, Egypt (13 words)
index |
Lissajous, by M.H. Elhefni, Egypt (15 words)
index |
Times, by Yehuda Katz, Israel (14 words)
(This one uses the text screen.)
index |
Shell, by Vered Katz, Israel (14 words)
index |
Hypercube, by Frank Caggiano, U.S. (12 words)
index |
Scribble, by Keith Enevoldsen, U.S. (15 words)
index |
Fan Flower, by Keith Enevoldsen, U.S. (12 words)
index |
Current, by George Mills, U.S. (10 words)
index |
Elliptical Spiral, by George Mills, U.S. (15 words)
index |
Tree Growth Rings, by George Mills, U.S. (13 words)
index |
Cloudy Night, by George Mills, U.S. (8 words)
index |
Simple Flower, by Julie Clune, Australia (13 words)
(Why does the line match up exactly after drawing 11 petals?)
index |
Seconds, by Zippi Katz, Israel (15 words)
index |
Self-Replicating, by Brian Harvey, U.S. (13 words) invoke [[x] print (list "invoke :x :x)] [[x] print (list "invoke :x :x)]
(This non-graphics one-liner prints itself.)
index |
Basic Spinning Wheel variations 1-3, by Greg Simkins' 6th grade class, U.S. (15 words)
define "spin [[ ][repeat 15 [fd 100 bk 95 rt 10]]] repeat 12 [spin fd 100]
pu setpos [-400 0] pd
define "spin [[ ][repeat 25 [fd 100 bk 100 rt 15]]] repeat 24 [spin fd 100]
repeat 12 [repeat 15 [fd 100 bk 95 rt 10] fd 100]
pu setpos [-400 0] pd
repeat 24 [repeat 25 [fd 100 bk 100 rt 15] fd 100]
index |
Low, by Alessio Plebe, Italy (15 words)
for [i 0 32] [repeat :i [fd :i rt 358 / :i] bk sqrt :i]
index |
Sun, by Alessio Plebe, Italy (13 words)
index |
Hexagon, by M.H. Elhefni, Egypt (15 words)
(Quasi-fractal.)
Hexagon variation 1, by Yehuda Katz, Israel (15 words)
Hexagon variation 2, by M.H. Elhefni, Egypt (15 words)
index |
Pentahexagon, by M.H. Elhefni, Egypt (shortened by Keith Enevoldsen, U.S.) (10 words)
Pentahexagon variation 1, by M.H. Elhefni, Egypt (15 words)
index |
Pentagon, by M.H. Elhefni, Egypt (15 words)
index |
Moire, by Yehuda Katz, Israel (9 words)
index |
Fireworks, by M.H. Elhefni, Egypt (14 words)
index |
Peltonwheel, by M.H. Elhefni, Egypt (14 words)
index |
Spirals, by M.H. Elhefni, Egypt (14 words)
index |
Gillyflower, by Alessio Plebe, Italy (15 words)
index |
Growing Scrolls variation 1, by Keith Enevoldsen, U.S. (12 words)
Growing Scrolls variation 2, by Keith Enevoldsen, U.S. (14 words)
Growing Scrolls variation 3, by M.H. Elhefni, Egypt (11 words)
index |
Mountains, by Keith Enevoldsen, U.S. (12 words)
index |
Head, by Keith Enevoldsen, U.S. (15 words)
repeat 38 [fd 5 rt 10] setx 55 setx 27 setpos [20 -10] setx 27 (MicroWorlds)
index |
Eye, by Paolo Passaro, Italy (12 words)
index |
Growing, by Paolo Passaro, Italy (13 words)
(You may want to stop it before it is done.)
index |
Don Quixote, by Paolo Passaro, Italy (14 words)
(Read the book.)
index |
Ellipse, by Paolo Passaro, Italy (14 words)
(The eccentricity is e=0.5. If e=0, you have a circle and if e < 0 or e > 0 you have an ellipse, horizontal or vertical.
See Abelson-Di Sessa: "Turtle geometry".)
index |
Polygon variations 1-3, by Paolo Passaro, Italy (14 words)
repeat 4 [repeat 20 [lt 160 fd 20 rt 160 fd 20] rt 90]
repeat 8 [repeat 20 [lt 170 fd 20 rt 170 fd 20] rt 45]
index |
Rotating Circle, by M.H. Elhefni, Egypt (11 words)
index |
Disappearing Triangles, by Olga Tuzova, Russia (14 words)
index |
Smiling Fish, by Yehuda Katz, Israel (15 words)
for [t -315 315] [setxy :t * sin :t :t * cos 2 * :t]
(It looks better like this:
for [t -315 315] [setxy :t * sin :t .5 * :t * cos 2 * :t]
as pictured above, but then it is too many words.)
index |
Bird's Wings, by Olga Tuzova, Russia (15 words)
index |
Butterfly, by Olga Tuzova, Russia (15 words)
index |
Fish, by Olga Tuzova, Russia (15 words)
index |
Block, by de Walt Smith, U.S. (12 words)
index |
Octa-star Spiral, by M.H. Elhefni, Egypt (15 words)
index |
Penta-star Spiral, 15W, M.H. Elhefni, Egypt (15 words)
index |
Designs 1-5, by Alex Mylonas' class, Greece (12 - 14 words)
repeat 16 [fd 85 lt 60 fd 107 bk 72 lt 53 fd 74]
repeat 100 [fd 5 + repcount rt 45 fd 10 + repcount rt 60]
repeat 36 [repeat 36 [fd 10 rt 10] fd repcount rt 90 fd repcount]
repeat 18 [repeat 5 [rt 40 fd 100 rt 120] rt 20]
Growing Scrolls variation 4, by M.H. Elhefni, Egypt (13 words)
Tidak ada komentar:
Posting Komentar