M.H. Elhefni submitted these pretty 15-word
"quasi-fractals":
<<
;hexagon
for [i 100 30 -50][repeat 6 [repeat 6[fd :i lt 60] lt 60 ]]
;pentahexagon
for [i 100 30 -80][repeat 5 [repeat 6[fd :i lt 72] lt 144 ]]
;pentagon
for [i 100 10 -10][repeat 5 [repeat 5[fd :i lt 72] lt 72 ]]
>>
These inspired me to make some variations.
Pentahexagon can be shortened to 10 words:
repeat 5 [repeat 6 [fd 100 lt 72] lt 144]
The hexagon and pentagon quasi-fractals can be
made more like true fractals, at the expense of
lengthening them to 16 words, as follows:
Hexagon Fractal, 16W
ht
for [i 1 7] [repeat 6 [repeat 6 [fd power 2 :i lt 60] lt 60]]
Pentagon Fractal, 16W
ht
for [i 1 7] [repeat 5 [repeat 5 [fd power 2 :i lt 72] lt 72]]
("power 2 :i" means "2 to the power of :i"
in MSW Logo.)
Are these true fractals? I'm not sure.
The tiny details are all in the middle, which is not quite
as nice as fractals with frilly details in many places,
like snowflakes.
Can anyone make a 15-word fractal which looks as good
as these 16-word fractals?
- Keith Enevoldsen
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org. Mail
questions about the list administration to logofdn@gsn.org. To
unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home