Convert to Display P3 in PHP
Any color converts with to(); the result is Display P3, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('display-p3');
$color->getChannels();
// ['r' => 0.31, 'g' => 0.5039, 'b' => 0.9364]
$color = Color::parse('#3b82f6')->to('display-p3');
$color->getChannels();
// ['r' => 0.31, 'g' => 0.5039, 'b' => 0.9364]