Star (fractal)

Help Contents Examples Star (fractal)
SketchPad (advanched) Strophoid (simple)

Star (fractal)

Example:    Star.eli
Modified:   June 2, 2000
Version:    2.0
Author:     Pavel Boychev
E-mail:     pavel@elica.net

Copyright © 2000 Elica Group

This example program draws a fractal star (the Koch curve) using the turtle library.

run "geomland
run "turtle

to requ :len

	if :len<6
	[
		forward :len
	]
	[
		requ :len/3
		left 60
		requ :len/3
		right 60
		forward 0.06
		back 0.06
		right 60
		requ :len/3
		left 60
		requ :len/3
	]
end

hide
penup
back 175
pendown

requ 150
right 120
requ 150
right 120
requ 150

SketchPad (advanched) Strophoid (simple)