/*******************************************************************************/ /* */ /* LGEO Libray Include File (C) lgeo@digitalbricks.org (Lutz Uhlmann) */ /* */ /* 19970623 Lutz Uhlmann */ /* 20070929 Lutz Uhlmann changed to use predefined finishes */ /* 20070929 Lutz Uhlmann changed to use RGB values from ldconfig.ldr */ /* 20071124 Lutz Uhlmann added lg_quality for L3P compatibility */ /* */ /* This file is in no way related to the LEGO(tm) Group. */ /* It is provided for private non-commercial use only. */ /* */ /* lg_color: Color Definitions for LGEO POV-Ray Library */ /* */ /*******************************************************************************/ /* Adapted version for POV-Ray 3.7 by Friedrich.A.Lohmüller, 07-Feb-2009 */ /* */ /*******************************************************************************/ #ifndef(lg_quality) #declare lg_quality = 2; #end #ifdef(LG_COLOR_INC) #else #declare LG_COLOR_INC = 1; #include "colors.inc" #declare lg_normal = normal{ bumps .01 scale .10 turbulence 0 } // added // normal{ lg_normal } #declare lg_solid_finish = finish { ambient .0 diffuse 1 brilliance 1 phong 1 phong_size 40 specular 1 reflection { .05 falloff 1 exponent 1 } conserve_energy } #declare lg_chrome_finish = finish { ambient .0 diffuse .5 brilliance 8 phong 1 phong_size 100 specular 1 reflection { .90 metallic .8 falloff 1 exponent .5 } metallic .8 conserve_energy } #declare lg_pearl_finish = finish { ambient 0.22 #if (lg_quality > 1) brilliance 2 diffuse 0.6 metallic specular 0.1 roughness 32/100 reflection 0.07 irid { 0.2 thickness 0.5 turbulence 2.5} #end } #declare lg_transparent_finish = finish { ambient .1 diffuse 1 brilliance 1 phong 1 phong_size 40 specular 1 reflection { .05 falloff 1 exponent 1 } ior 1.2 conserve_energy } #declare lg_ior = interior { ior 1.2 } /* #declare lg_Orange = texture { pigment { rgb <1.00, 0.50, 0.20> } finish { ambient 0.1 phong 0.3 phong_size 20 } } */ #declare lg_LightBlue = texture { pigment { rgb <0.20, 0.40, 0.90> }//rgb <0.20, 0.40, 0.90> } normal{ lg_normal } finish { lg_solid_finish } } #declare lg_LightBrown = texture { pigment { rgb <0.60, 0.40, 0.40> } normal{ lg_normal } finish { lg_solid_finish } } /* #declare lg_Turquoise = texture { pigment { rgb <0.10, 0.70, 0.80> } finish { ambient 0.1 phong 0.3 phong_size 20 } } */ // 0 #declare lg_black = texture { pigment { rgbft <0, 0, 0, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 1 #declare lg_blue = texture { pigment { rgbft <0, 0.0749999999999997, 0.9, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 2 #declare lg_green = texture { pigment { rgbft <0, 0.4, 0.133333333333333, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 3 #declare lg_teal = texture { pigment { rgbft <0, 0.533333333333333, 0.533333333333333, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } #declare lg_cyan = lg_teal // 4 #declare lg_red = texture { pigment { rgbft <0.9, 0, 0, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 5 #declare lg_dark_pink = texture { pigment { rgbft <1, 0, 0.333333333333333, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 6 #declare lg_brown = texture { pigment { rgbft <0.183333333333333, 0.0305555555555556, 0, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 7 #declare lg_grey = texture { pigment { rgbft <0.583333333333333, 0.583333333333333, 0.583333333333333, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 8 #declare lg_dark_grey = texture { pigment { rgbft <0.333333333333333, 0.309259259259259, 0.266666666666667, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 9 #declare lg_light_blue = texture { pigment { rgbft <0.333333333333333, 0.566666666666667, 0.933333333333333, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } // 10 #declare lg_bright_green = texture { pigment { rgbft <0, 0.8, 0, 0, 0> } finish { lg_solid_finish } } // 11 #declare lg_turquoise = texture { pigment { rgbft <0, 0.8, 0.8, 0, 0> } normal{ lg_normal } finish { lg_solid_finish } } #declare lg_blue_green = lg_turquoise // 12 #declare lg_salmon = texture { pigment { rgbft <1, 0.388888888888889, 0.333333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } #declare lg_light_red = lg_salmon // 13 #declare lg_pink = texture { pigment { rgbft <1, 0.666666666666667, 0.777777777777778, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } #declare lg_rose = lg_pink // 14 #declare lg_yellow = texture { pigment { rgbft <1, 0.833333333333333, 0, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 14 #declare lg_yellow2 = texture { pigment { rgb<1,0.65,0.0>} //{{ rgb <255/255, 220/255, 0/255> } normal { lg_normal } finish { lg_solid_finish } } // 15 #declare lg_white = texture { pigment { rgbft <1, 1, 1, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 17 #declare lg_light_green = texture { pigment { rgbft <0.333333333333333, 0.866666666666667, 0.333333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 18 #declare lg_light_yellow = texture { pigment { rgbft <1, 0.888888888888889, 0.333333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 19 #declare lg_tan = texture { pigment { rgbft <0.866666666666667, 0.662962962962963, 0.5, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 20 #declare lg_light_violet = texture { pigment { rgbft <0.768518518518519, 0.666666666666667, 1, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 22 #declare lg_purple = texture { pigment { rgbft <0.633333333333333, 0, 0.633333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } #declare lg_violet = lg_purple // 23 #declare lg_violet_blue = texture { pigment { rgbft <0.152777777777778, 0, 0.5, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 25 #declare lg_orange = texture { pigment { rgbft <1.1, 0.275, 0, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 26 #declare lg_magenta = texture { pigment { rgb <232/255, 27/255, 109/255> } normal { lg_normal } finish { lg_solid_finish } } // 27 #declare lg_lime = texture { pigment { rgbft <0.7, 0.9, 0, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 28 #declare lg_dark_tan = texture { pigment { rgbft <0.533333333333333, 0.32962962962963, 0.166666666666667, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 29 #declare lg_light_purple = texture { pigment { rgb <205/255, 173/255, 200/255> } normal { lg_normal } finish { lg_solid_finish } } // 33 #declare lg_clear_blue = texture { pigment { rgbft <0, 0.083333333333333, 1, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 34 #declare lg_clear_green = texture { pigment { rgbft <0, 1, 0, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 36 #declare lg_clear_red = texture { pigment { rgbft <1, 0, 0, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 37 #declare lg_clear_violet = texture { pigment { rgbft <0.666666666666667, 0, 1, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 40 #declare lg_clear_brown = texture { pigment { rgbft <.3, .2, .1, .4, .7> } normal { lg_normal } finish { lg_transparent_finish } } // 41 #declare lg_clear_cyan = texture { pigment { rgbft <0.666666666666667, 0.898148148148148, 1, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 42 #declare lg_clear_neon_yellow = texture { pigment { rgbft <0.777777777777778, 1, 0, .6, .3> } normal { lg_normal } finish { lg_transparent_finish } } // 45 #declare lg_clear_pink = texture { pigment { rgbft <1, 0, 0.666666666666667, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 46 #declare lg_clear_yellow = texture { pigment { rgbft <1, 0.833333333333333, 0, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 47 #declare lg_clear = texture { pigment { rgbft <1, 1, 1, .9, .1> } normal { lg_normal } finish { lg_transparent_finish } } // 57 #declare lg_clear_neon_orange = texture { pigment { rgbft <1, 0.166666666666667, 0, .6, .3> } normal { lg_normal } finish { lg_transparent_finish } } // 69 #declare lg_bright_purple = texture { pigment { rgb <205/255, 98/255, 152/255> } normal { lg_normal } finish { lg_solid_finish } } // 70 #declare lg_reddish_brown = texture { pigment { rgbft <0.366666666666667, 0.0611111111111111, 0, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 71 #declare lg_bluish_grey = texture { normal { lg_normal } pigment { rgbft <0.583333333333333, 0.577314814814815, 0.566666666666667, 0, 0> } finish { lg_solid_finish } } // 72 #declare lg_dark_bluish_grey = texture { pigment { rgbft <0.166666666666667, 0.15462962962963, 0.133333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 73 #declare lg_medium_blue = texture { pigment { rgbft <0.333333333333333, 0.566666666666667, 0.933333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 74 #declare lg_medium_green = texture { pigment { rgb <161/255, 196/255, 139/255> } normal { lg_normal } finish { lg_solid_finish } } // 77 #declare lg_paradisa_pink = texture { pigment { rgb <254/255, 204/255, 204/255> } normal { lg_normal } finish { lg_solid_finish } } // 78 #declare lg_light_flesh = texture { pigment { rgb <250/255, 215/255, 195/255> } normal { lg_normal } finish { lg_solid_finish } } // 85 #declare lg_medium_violet = texture { pigment { rgb <52/255, 43/255, 117/255> } finish { lg_solid_finish } normal { lg_normal } } // 86 #declare lg_dark_flesh = texture { pigment { rgb <124/255, 92/255, 69/255> } normal { lg_normal } finish { lg_solid_finish } } // 89 #declare lg_royal_blue = texture { pigment { rgb <155/255, 178/255, 239/255> } normal { lg_normal } finish { lg_solid_finish } } // 92 #declare lg_flesh = texture { pigment { rgb <204/255, 142/255, 104/255> } normal { lg_normal } finish { lg_solid_finish } } // 134 #declare lg_pearl_copper = texture { pigment { color rgb <147/255, 135/255, 103/255> } normal { lg_normal } finish { lg_pearl_finish } } // 135 #declare lg_pearl_grey = texture { pigment { color rgb <171/255, 173/255, 172/255> } normal { lg_normal } finish { lg_pearl_finish } } // 137 #declare lg_pearl_blue = texture { pigment { color rgb <106/255, 122/255, 150/255> } normal { lg_normal } finish { lg_pearl_finish } } // 142 #declare lg_pearl_gold = texture { pigment { color rgb <215/255, 169/255, 75/255> } normal { lg_normal } finish { lg_pearl_finish } } // 151 #declare lg_very_light_bluish_grey = texture { pigment { rgb <229/255, 228/255, 222/255> } normal { lg_normal } finish { lg_solid_finish } } // 272 #declare lg_dark_blue = texture { pigment { rgbft <0, 0.0374999999999999, 0.45, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 288 #declare lg_dark_green = texture { pigment { rgbft <0, 0.133333333333333, 0.0444444444444445, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 320 #declare lg_dark_red = texture { pigment { rgbft <0.3, 0, 0, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 313 #declare lg_maersk_blue = texture { pigment { rgbft <0.166666666666667, 0.6875, 0.916666666666667, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 334 #declare lg_gold_chrome = texture { pigment { rgbft <1, 0.759259259259259, 0.333333333333333, 0, 0> } normal { lg_normal } finish { lg_chrome_finish } } // 335 #declare lg_sand_red = texture { pigment { rgbft <0.633333333333333, 0.333333333333333, 0.333333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 366 #declare lg_earth_orange = texture { pigment { rgb <209/255, 131/255, 4/255> } normal { lg_normal } finish { lg_solid_finish } } // 373 #declare lg_sand_purple = texture { pigment { rgbft <0.5, 0.333333333333333, 0.666666666666667, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 378 #declare lg_sand_green = texture { pigment { rgbft <0.333333333333333, 0.6, 0.422222222222222, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 379 #declare lg_sand_blue = texture { pigment { rgbft <0.333333333333333, 0.45, 0.633333333333333, 0, 0> } normal { lg_normal } finish { lg_solid_finish } } // 383 #declare lg_chrome = texture { pigment { rgbft <0.99, 0.990833333333333, 1, 0, 0> } normal { lg_normal } finish { lg_chrome_finish } } // 462 #declare lg_light_orange = texture { pigment { rgb <254/255, 159/255, 6/255> } normal { lg_normal } finish { lg_solid_finish } } // 484 #declare lg_dark_orange = texture { pigment { rgb <179/255, 62/255, 0/255> } normal { lg_normal } finish { lg_solid_finish } } // 503 #declare lg_very_light_grey = texture { pigment { rgb <230/255, 227/255, 219/255> } normal { lg_normal } finish { lg_solid_finish } } // 999 #declare lg_undefined = texture { pigment { rgb <0.5, 0.7, 0.9> } } // 998 (no code known) #declare lg_medium_orange = texture { pigment { rgb <224/255, 129/255, 6/255> } normal { lg_normal } finish { lg_solid_finish } } #end