You are on page 1of 19

create

destroy

1 0

gemwin
create
gemhead
destroy

1 0
square
gemwin
create green
gemhead 0 1 0
destroy
0.5 0.5 0.5 grey
1 0
color 1 1 0

gemwin

cube
create gemhead −0.91

destroy

1 0 translate 0 2 1 0

gemwin cube

◦ ◦


create gemhead 46

destroy

1 0 rotateXYZ 0 45 10

draw line
gemwin
sphere

90◦
90◦

create
gemhead gemhead
destroy −151

1 0
translateXYZ 2 2 0
rotateXYZ

gemwin

rotateXYZ translateXYZ 2 −2 0

square 0.5 square 0.5


gemhead 31 rotate cone
and cube
rotateXYZ 0 0 0
create
color 0 0 1
destroy
cone
1 0

translateXYZ 2 −2.5 0

gemwin rotate only


rotateXYZ 22
the cube
cube 0.5
create gemhead 43 gemhead −46

destroy
translateXYZ −2 0 0 translateXYZ 2 1 0

1 0
rotateXYZ 0 0 0 rotateXYZ 0 0 0

color 0 0 1 color 1 0 0
gemwin
sphere 1 cube 1
−199
gemhead

rotateXYZ
create

destroy colorRGB 0 1 0

0 square 0.3
1

separator
gemwin separator
30
24

translateXYZ −2 0 0
translateXYZ 3 1 0
rotateXYZ 0 0 0
rotateXYZ 0 0 0
draw line
color 0 0 1
color 1 0 0
sphere 1
cube 1
create
gemhead 40
destroy
gemhead rotate 0 1 1 1
1 0 lighting 0 (a)

lighting 1 (b) world_light colorRGB 0 1 0

gemwin sphere 2
gemhead
−42 252
create

destroy translateXYZ

rotateXYZ
1 0 metro 50
gemhead
lighting 1 colorRGB 0 1 0 i + 1
world_light % 100
gemwin sphere 1.5 t f f

translateXYZ 1 0 0 * 0.01

tabread array1
color 1 0 0
0.538
array1

rotateXYZ 90 0 0

scaleXYZ 0.2 0.2 1

cylinder 1.5


create

destroy gemhead

pix_image pics/fractal.JPG
0 1

pix_draw
gemwin
create gemhead

destroy
rotateXYZ 25 25 0

0 1 pix_image pics/fractal.JPG

gemwin
pix_texture

cube

translateXYZ 1 −1 1

cube
create

destroy
metro 50

1 0 gemhead t b b b b
lighting 1 world_light

gemwin

i + 2 % 360

252

i + 1 % 360 Earth
Mercury i − 2 % 360
Sun Venus
gemhead
gemhead −69
gemhead gemhead −320
rotateXYZ
color 1 1 0 rotateXYZ
rotateXYZ translateXYZ 3 0 0
sphere translateXYZ 2 0 0
color 0 0 1
translateXYZ 1 0 0
color 0 0.7 0.5
color 0.8 0.4 0 sphere 0.3
sphere 0.2 i + 4 % 360
sphere 0.1 Moon
133

rotateXYZ

translateXYZ 0.5 0 0

color 0.5 0.5 1

sphere 0.1