Try: ca/tecreations/ViewFile.php
<?php
GLOBAL $ORANGE, $PURPLE, $LIGHT_GREEN, $DARK_GREEN, $BROWN, $GREY, $DARK_GREY, $SELECTED, $SWING_BG;
$ORANGE = getHex(array(245,130,32));
$PURPLE = getHex(array(75,0,130));
$LIGHT_GREEN = getHex(array(0,224,0));
$DARK_GREEN = getHex(array(12,82,42));
$BROWN = getHex(array(0,0,0));
$GREY = getHex(array(248,249,250));
$DARK_GREY = getHex(array(18,17,16));
$SELECTED = getHex(array(102,204,255));
$SWING_BG = getHex(array(238,238,238));
global $GRAY_MIN, $GRAY_MAX, $GREY_MIN, $GREY_MAX;
global $GRAY_0, $GRAY_1, $GRAY_2, $GRAY_3, $GRAY_4, $GRAY_5, $GRAY_6, $GRAY_7, $GRAY_8, $GRAY_9;
global $GRAY_A, $GRAY_B, $GRAY_C, $GRAY_D, $GRAY_E, $GRAY_F;
global $GRAY_11, $GRAY_12, $GRAY_13, $GRAY_14, $GRAY_15;
global $GREY_0, $GREY_1, $GREY_2, $GREY_3, $GREY_4, $GREY_5, $GREY_6, $GREY_7, $GREY_8, $GREY_9;
global $GREY_A, $GREY_B, $GREY_C, $GREY_D, $GREY_E, $GREY_F;
global $GREY_11, $GREY_12, $GREY_13, $GREY_14, $GREY_15;
$GRAY_MIN = getHex(array(0,0,0));
$GRAY_MAX = getHex(array(255,255,255));
$GREY_MIN = $GRAY_MIN;
$GREY_MAX = $GRAY_MAX;
$GRAY_0 = $GRAY_MIN;
$GRAY_1 = getHex(array(15,15,15));
$GRAY_2 = getHex(array(31,31,31));
$GRAY_3 = getHex(array(47,47,47));
$GRAY_4 = getHex(array(63,63,63));
$GRAY_5 = getHex(array(79,79,79));
$GRAY_6 = getHex(array(95,95,95));
$GRAY_7 = getHex(array(111,111,111));
$GRAY_8 = getHex(array(127,127,127));
$GRAY_9 = getHex(array(143,143,143));
$GRAY_10 = getHex(array(159,159,159));
$GRAY_A = getHex(array(175,175,175));
$GRAY_B = getHex(array(191,191,191));
$GRAY_C = getHex(array(207,207,207));
$GRAY_D = getHex(array(223,223,223));
$GRAY_E = getHex(array(239,239,239));
$GRAY_F = $GRAY_MAX;
$GRAY_11 = $GRAY_A;
$GRAY_12 = $GRAY_B;
$GRAY_13 = $GRAY_C;
$GRAY_14 = $GRAY_D;
$GRAY_15 = $GRAY_E;
$GRAY_16 = $GRAY_MAX;
$GREY_0 = $GRAY_0;
$GREY_1 = $GRAY_1;
$GREY_2 = $GRAY_2;
$GREY_3 = $GRAY_3;
$GREY_4 = $GRAY_4;
$GREY_5 = $GRAY_5;
$GREY_6 = $GRAY_6;
$GREY_7 = $GRAY_7;
$GREY_8 = $GRAY_8;
$GREY_9 = $GRAY_9;
$GREY_10 = $GRAY_10;
$GREY_A = $GRAY_A;
$GREY_B = $GRAY_B;
$GREY_C = $GRAY_C;
$GREY_D = $GRAY_D;
$GREY_E = $GRAY_E;
$GREY_F = $GRAY_F;
$GREY_10 = $GRAY_A;
$GREY_11 = $GRAY_B;
$GREY_12 = $GRAY_C;
$GREY_13 = $GRAY_D;
$GREY_14 = $GRAY_E;
$GREY_15 = $GRAY_F;
//https://chrisyeh96.github.io/2020/03/28/terminal-colors.html
$BRIGHT_BLACK = getHex(array(85, 87, 83));
$BRIGHT_RED = getHex(array(239, 41, 41));
$BRIGHT_GREEN = getHex(array(138, 226, 52));
$BRIGHT_YELLOW = getHex(array(252, 233, 79));
$BRIGHT_BLUE = getHex(array(50, 175, 255));
$BRIGHT_MAGENTA = getHex(array(173, 127, 168));
$BRIGHT_CYAN = getHex(array(52, 226, 226));
$BRIGHT_WHITE = getHex(array(255, 255, 255));
function getHex($array = "") {
return rgb2Hex($array[0],$array[1],$array[2]);
}
function rgb2Hex($r = 0, $g = 0, $b = 0) {
$hex = sprintf("#%02x%02x%02x", $r,$g,$b);
return $hex;
}
global $VERBOSE;
if ($DEBUG && $VERBOSE) {
print("ORANGE: $ORANGE<br />");
print("PURPLE: $PURPLE<br />");
print("LIGHT_GREEN: $LIGHT_GREEN<br />");
print("DARK_GREEN: $DARK_GREEN<br />");
print("BROWN: $BROWN<br />");
print("GREY: $GREY<br />");
print("DARK_GREY: $DARK_GREY<br />");
print("SELECTED: $SELECTED<br />");
print("SWING_BG: $SWING_BG<br />");
print("<br />");
print("GRAY_MIN = $GRAY_MIN<br />");
print("GRAY_MAX = $GRAY_MAX<br />");
print("GREY_MIN = $GREY_MIN<br />");
print("GREY_MAX = $GREY_MAX<br />");
print("<br />");
print("GRAY_0 = $GRAY_0<br />");
print("GRAY_1 = $GRAY_1<br />");
print("GRAY_2 = $GRAY_2<br />");
print("GRAY_3 = $GRAY_3<br />");
print("GRAY_4 = $GRAY_4<br />");
print("GRAY_5 = $GRAY_5<br />");
print("GRAY_6 = $GRAY_6<br />");
print("GRAY_7 = $GRAY_7<br />");
print("GRAY_8 = $GRAY_8<br />");
print("GRAY_9 = $GRAY_9<br />");
print("GRAY_10 = $GRAY_10<br />");
print("GRAY_11 = $GRAY_11<br />");
print("GRAY_12 = $GRAY_12<br />");
print("GRAY_13 = $GRAY_13<br />");
print("GRAY_14 = $GRAY_14<br />");
print("GRAY_15 = $GRAY_15<br />");
print("GRAY_16 = $GRAY_16<br />");
print("GRAY_A = $GRAY_A<br />");
print("GRAY_B = $GRAY_B<br />");
print("GRAY_C = $GRAY_C<br />");
print("GRAY_D = $GRAY_D<br />");
print("GRAY_E = $GRAY_E<br />");
print("GRAY_F = $GRAY_F<br />");
print("<br />");
print("GREY_0 = $GREY_0<br />");
print("GREY_1 = $GREY_1<br />");
print("GREY_2 = $GREY_2<br />");
print("GREY_3 = $GREY_3<br />");
print("GREY_4 = $GREY_4<br />");
print("GREY_5 = $GREY_5<br />");
print("GREY_6 = $GREY_6<br />");
print("GREY_7 = $GREY_7<br />");
print("GREY_8 = $GREY_8<br />");
print("GREY_9 = $GREY_9<br />");
print("GREY_10 = $GREY_10<br />");
print("GREY_11 = $GREY_11<br />");
print("GREY_12 = $GREY_12<br />");
print("GREY_13 = $GREY_13<br />");
print("GREY_14 = $GREY_14<br />");
print("GREY_15 = $GREY_15<br />");
print("GREY_16 = $GREY_16<br />");
print("GREY_A = $GREY_A<br />");
print("GREY_B = $GREY_B<br />");
print("GREY_C = $GREY_C<br />");
print("GREY_D = $GREY_D<br />");
print("GREY_E = $GREY_E<br />");
print("GREY_F = $GREY_F<br />");
print("<br />");
print("//https://chrisyeh96.github.io/2020/03/28/terminal-colors.html</br />");
print("BRIGHT_BLACK = $BRIGHT_BLACK<br />");
print("BRIGHT_RED = $BRIGHT_RED<br />");
print("BRIGHT_GREEN = $BRIGHT_GREEN<br />");
print("BRIGHT_YELLOW = $BRIGHT_YELLOW<br />");
print("BRIGHT_BLUE = $BRIGHT_BLUE<br />");
print("BRIGHT_MAGENTA = $BRIGHT_MAGENTA<br />");
print("BRIGHT_CYAN = $BRIGHT_CYAN<br />");
print("BRIGHT_WHITE = $BRIGHT_WHITE<br />");
}
?>