Add changes.inc with color setting stored in an array and the appropriate number of colors psuedo randomized

This commit is contained in:
Matt McWilliams 2021-07-25 17:53:26 -04:00
parent 27f0a5b360
commit 28f6a39d77
3 changed files with 932 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.png
*.mkv
*.DS_Store

View File

@ -6,6 +6,7 @@
#include "./materials.inc"
#include "./dvdlogo.inc"
#include "./path.inc"
#include "./changes.inc"
#declare TOTAL_FRAMES = 900.0;
@ -19,7 +20,8 @@
#declare CAM_Z = -200;
#declare FRAME = floor(clock * TOTAL_FRAMES);
#declare color1 = <37, 255, 1>;
#declare colorChoice = Changes[FRAME][0];
#declare color1 = <LogoColors[colorChoice][0], LogoColors[colorChoice][1], LogoColors[colorChoice][2]>;
#declare plastic = texture{

927
changes.inc Normal file
View File

@ -0,0 +1,927 @@
#declare LogoColors = array[20][3]{
{190, 0, 255},
{0, 254, 255},
{255, 131, 0},
{0, 38, 255},
{255, 250, 1},
{255, 38, 0},
{255, 0, 139},
{37, 255, 1},
{0, 38, 255},
{255, 0, 139},
{0, 254, 255},
{255, 38, 0},
{255, 131, 0},
{190, 0, 255},
{37, 255, 1},
{255, 0, 139},
{255, 38, 0},
{0, 254, 255},
{255, 131, 0},
{190, 0, 255},
}
#declare Changes =
array[900][1]
{
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{1},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{2},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{3},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{4},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{5},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{6},
{7},
{7},
{7},
{7},
{7},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{8},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{9},
{10},
{10},
{10},
{10},
{10},
{10},
{10},
{10},
{10},
{10},
{10},
{10},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{11},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{12},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{13},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{14},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{15},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{16},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{17},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{18},
{19},
{19},
{19},
{19},
{19},
{19}
}