matatirosoln/pantone-converter

Convert from a named Pantone coated colour to Hex, RGB or CMYK variants

0.0.1 2020-09-11 10:15 UTC

This package is auto-updated.

Last update: 2024-11-11 19:15:21 UTC


README

Convert a PANTONE® Coated colour to Hex, RGB or CMYK.

Installation

composer require matatirosoln/pantone-converter

Usage

use MSDev\PantoneConverter\PantoneConverter;

$colour = PantoneConverter::ColourFromName('100-C');

print $colour->hex(); // outputs F6EB61

$rgb = $colour->rgb(); // RGB object
print $rgb->green(); // outputs 246

print $colour->cmyk()->magenta(); //outputs 4.0 

License

Copyright © 2020, Matatiro Solutions. Licensed under the MIT License.

Notes