All pastes #957359 Raw Edit

Someone

public text v1 · immutable
#957359 ·published 2008-03-25 22:37 UTC
rendered paste body
// Persistence of Vision Ray Tracer Scene Description File// File: L_colors.inc// Vers: 3.6// Desc: This file contains pre-defined LEGO colors.// Auth: Nicolas Alvarez// Last mod: 21-6-2005#ifndef(LColors_Inc_Temp)#declare LColors_Inc_Temp = version;#version 3.5;#ifdef(View_POV_Include_Stack)	#debug "including l_colors.inc\n"#end#local   lNull    = rgb -1;#declare lBlack   = rgb 0.1;#declare lBlue    = rgb <0.00, 0.20, 0.90>;#declare lGreen   = rgb <0.00, 0.70, 0.05>;#declare lDkCyan	= lNull;#declare lRed     = rgb <1.00, 0.00, 0.00>;#declare lMagenta = lNull;#declare lBrown   = lNull;#declare lGray    = rgb 0.8;#declare lDkGray  = rgb 0.3;#declare lLgBlue  = lNull;#declare lLgGreen = lNull;#declare lCyan    = lNull;#declare lLgRed   = lNull;#declare lPink    = lNull;#declare lYellow  = rgb <1.00, 1.00, 0.00>;#declare lWhite   = rgb 1;#declare LDRAWColors= array[16]{	lBlack   //0  Black	lBlue    //1  Blue	lGreen   //2  Green	lDkCyan  //3  Dark Cyan	lRed     //4  Red	lMagenta //5  Magenta	lBrown   //6  Brown	lGray    //7  Grey	lDkGray  //8  Dark Grey	lLgBlue  //9  Light Blue	lLgGreen //10 Light Green	lCyan    //11 Cyan	lLgRed   //12 Light Red	lPink    //13 Pink	lYellow  //14 Yellow	lWhite   //15 White}#macro LDrawColor(n)	pigment	{		#if(LDRAWColors[n].gray<0)		#warning concat("Ldraw color ",str(n,0,0)," is not defined in l_colors.inc\n",		"It will be replaced by lWhite (LDraw color 15)\n")		color lWhite		#else		color LDRAWColors[n]		#end	}	LoadMaterial()#end#version LColors_Inc_Temp;#end //l_colors.inc