<div class="container"> <header> <h1>MrColor</h1> </header> <section> <?php use SyHolloway\MrColor\Color; require_once dirname(__DIR__) . '/manual-init.php'; //Run a test to check the core color syncing works echo '<h2>Test Results</h2>'; $results = Color::test(50); var_dump($results); echo '<h2>Create default color</h2>'; //Create a default color $color1 = Color::create(); $color1->dump(); echo '<h2>Create color with RGB values</h2>'; //Create a color with RGB values $color2 = Color::create(array('red' => 200, 'green' => 200, 'blue' => 100)); $color2->dump(); echo '<h2>Manipulating color with properties</h2>'; $color3 = Color::create(array('red' => 200, 'green' => 200, 'blue' => 100)); $color3->dump(); $color3->hue = 100; $color3->lightness = $color3->lightness - 0.1; $color3->alpha -= 1.2;