yappy


家でやる気満々である。

#include "colors.inc"
#include "textures.inc"
#include "metals.inc"

camera {
    location <20, 50, -50>
    look_at <0, 0, 0>
    angle 30
}

light_source {
    <1, 1, -1> * 50
    color White
}

plane {
    y, -12
    pigment {
        checker color Gray70 color White
    }
}

// body
/*
box {
    <-10, -1, -10>, <10, 1, 10>
    pigment { White }
    finish { Dull }
}
*/

// display
box {
    <-9, -7, -0.3>, <9, 7, 0>
    pigment { Black }
}
difference {
    box {
        <-10, -8, -0.5>, <10, 8, 0.5>
        texture { T_Silver_5A }
    }
    box {
        <-9, -7, -2>, <9, 7, 0>
        pigment { White }
        texture { T_Silver_1A }
    }
}

// keyboard
/*
#declare KeyCount = 0;
#while (KeyCount < 10)
    intersection {
        box {
            <-10, 0, -10>, <10, 2.5, 10>
            pigment { White }
            finish { Dull }
        }
        #local cyl = cylinder {
            <-11, 0, 0>, <11, 0, 0>, 10
            pigment { White }
            finish { Dull }
            scale 0.4 * y
        }
        cyl
        object { cyl rotate 90 * y }
        translate KeyCount * 20.5 * x
    }
    #declare KeyCount = KeyCount + 1;
#end
*/

background { Blue }