Rotating cube in Logo

My very ungainly attempt at a rotating cube in Logo!

to cube
repeat 4 [square 100 fd 100 downpitch 90]
end

to rotcube
repeat 100 [
repeat 360 [
cube
penerase
cube
pennormal
rt 1
]
]
end

to square :n
repeat 4 [fd :n rt 90]
end

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s