LOGO-L> another 3-D cube inside cube 
Author Message
 LOGO-L> another 3-D cube inside cube

;Hello Yehuda Katz
;You said 3-D MSWLogo has colour too.
;Here is a coloured version of another version of the cube inside
;cube inside cube !!!  to level 4
;Enjoy "the code".
;Best Regards
;Mhelhefny
;--------------------------------------------------------
to colour :lev
make "l [[255 100 255][0 0 255][255 0 0][255 0 100][50 50 250]]
make "k item :lev :l
op :k
end

to cube :size :lev
if :lev=0 [stop] setpc colour :lev
repeat 4 [repeat 4[fd :size/4 fd :size/2 rt 90]
fd :size*.754 down 90]
pu setx xcor+ :size/4 sety ycor+ :size/4 setz zcor- :size/4 pd
cube :size*.4 :lev-1
end

to go
perspective cs ht
setturtle -1 setxyz 500 500 500
setturtle 0
cube 200 4
end
;-------------------------------------------------------
---------------------------------------------------------------





Fri, 03 Mar 2000 03:00:00 GMT  
 LOGO-L> another 3-D cube inside cube

Quote:

> ;Hello Yehuda Katz
> ;You said 3-D MSWLogo has colour too.
> ;Here is a coloured version of another version of the cube inside
> ;cube inside cube !!!  to level 4
> ;Enjoy "the code".
> ;Best Regards
> ;Mhelhefny

Hi,

I enjoyed it. I envy your creativity and output...

[[Yehuda]]

---------------------------------------------------------------





Fri, 03 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. LOGO-L> cube inside cube inside cube to any level

2. LOGO-L> quasi 3-D fractal cube

3. how to show an object inside a cube?

4. CUBE ROOTS - 16 or 32 bit integer methods

5. lambda cube type questions

6. cubes

7. VRML Rubik's Cube:

8. a cube with a whole

9. Cube and WireFrame.

10. VRML 1.0: Repeated Texture on a Cube?

11. Texture on one side of a cube only

12. Texture on 1 face of cube

 

 
Powered by phpBB® Forum Software