{ Navigation } | { Deutsch | English } | |||
NeuigkeitenSpieleMinesweeperMastermindSchiebepuzzleMemoryTic Tac ToeTetrisSokobanSnakePacmanOthelloSameGameRoadBlocksLichter ausHighscoresCool StuffTeamTeam - MiselTeam - LXJS-Games FAQGästebuchRechtliches |
coolstuff/mastermind.txt//usual stuff
#include "colors.inc"
camera { location <4,4,-4>
look_at <0,-1,0> }
light_source { < 2, 2, 2> White}
light_source { < 2, 2,-2> White}
light_source { < 2,-2, 2> White}
light_source { < 2,-2,-2> White}
light_source { <-2, 2, 2> White}
light_source { <-2, 2,-2> White}
light_source { <-2,-2, 2> White}
light_source { <-2,-2,-2> White}
//the white background
#declare bg = union
{
plane { y, -200}
plane { z, 200}
plane { x, -200}
pigment { color White}
}
//a coordinate system for a better orientation
#declare cood = union
{
//y
cylinder { <0,-5,0>
<0,5,0>
0.005
pigment { color Blue}
}
//x
cylinder { <-5,0,0>
<5,0,0>
0.005
pigment { color Green}
}
//z
cylinder { <0,0,-5>
<0,0,5>
0.005
pigment { color Red}
}
}
difference {
union {
cone { <0,0,0>,1.25
<0,0.75,0>,1}
cone { <0,0,0>,0.66
<0,-4,0>0.5}
texture {pigment {color Orange}
finish {phong 0.5}}
}
sphere {<0,0.75,0>,0.66
texture {pigment {color Orange}
finish {phong 0.5}}}
}
|
|||