Skip to content
Simon Holloway edited this page May 28, 2013 · 1 revision
<?php

use SyHolloway\MrColor\Color;

$color1 = Color::load('rgba(200, 54, 129, 0.2)');

$color1->dump();

if($color1->isDark())
{
    $color1->lighten(20);
}
else
{
    $color1->darken(20);
}

$color1->dump();

$color2 = $color1->copy()->complementary();

$color1->dump();
$color2->dump();

$color1->sync($color2);

$color1->dump();
$color2->dump();

var_dump(Color::test());

echo $color2->getRgbaString();

echo $color2;

?>
Clone this wiki locally