From a175ef406b21712133e863b4f27aaa5a5d624bfd Mon Sep 17 00:00:00 2001 From: TorbenKoehn Date: Sat, 27 May 2017 20:46:34 +0200 Subject: [PATCH] - Set version constraint to 5.6+ (dropped 5.5 completely) - Using fixed PHPUnit for travis - Fixed Color::parseInt and Color::toInt. RgbColors will now always generate an int with alpha set to 0xff (255) and using parseInt will always return an RgbaColor --- .travis.yml | 6 +- composer.json | 6 +- composer.lock | 1459 +++++++++++++++++++++++++++++++++++++- src/Phim/Color.php | 1207 ++++++++++++++++--------------- tests/unit/ColorTest.php | 22 + 5 files changed, 2086 insertions(+), 614 deletions(-) diff --git a/.travis.yml b/.travis.yml index af3e2a4..cfc09c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ git: depth: 5 php: + - 5.6 - 7.0 before_script: @@ -12,4 +13,7 @@ before_script: install: - composer self-update - - composer install --no-dev + - composer install + +script: + - vendor/bin/phpunit diff --git a/composer.json b/composer.json index 1455005..c0ba28d 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,8 @@ "source": "https://github.com/Talesoft/phim", "docs": "http://phim.talesoft.codes/docs" }, - "minimum-stability": "dev", "require": { - "php": ">=5.5.0" + "php": ">=5.6" }, "autoload": { "psr-4": { @@ -33,5 +32,8 @@ "gd": "for image processing with GD", "imagick": "for image processing with Imagick", "symfony/mbstring-polyfill": "if youre lacking the mbstring extension or can't install it" + }, + "require-dev": { + "phpunit/phpunit": "^6.1" } } diff --git a/composer.lock b/composer.lock index 7bcb757..4d26041 100644 --- a/composer.lock +++ b/composer.lock @@ -4,17 +4,1466 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "5ce0cdcd38d96066c68c3152184b1616", - "content-hash": "0b5832537063c67ccf8cbb6dda94e639", + "content-hash": "dedcc31eaa925c4bb67001ff9ad4d356", "packages": [], - "packages-dev": [], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2015-06-14T21:17:01+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "doctrine/collections": "1.*", + "phpunit/phpunit": "~4.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "homepage": "https://github.com/myclabs/DeepCopy", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "time": "2017-04-12T18:52:22+00:00" + }, + { + "name": "phar-io/manifest", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "phar-io/version": "^1.0.1", + "php": "^5.6 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "time": "2017-03-05T18:14:27+00:00" + }, + { + "name": "phar-io/version", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "time": "2017-03-05T17:38:23+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2015-12-27T11:43:31+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.2.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2016-09-30T07:12:33+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.2.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "time": "2016-11-25T06:54:22+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.7.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/93d39f1f7f9326d746203c7c056f300f7f126073", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8 || ^5.6.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2017-03-02T20:05:34+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "5.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "dc421f9ca5082a0c0cb04afb171c765f79add85b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/dc421f9ca5082a0c0cb04afb171c765f79add85b", + "reference": "dc421f9ca5082a0c0cb04afb171c765f79add85b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.11 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^3.0", + "sebastian/version": "^2.0", + "theseer/tokenizer": "^1.1" + }, + "require-dev": { + "ext-xdebug": "^2.5", + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-xdebug": "^2.5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2017-04-21T08:03:57+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2016-10-03T07:40:28+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.11", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2017-02-27T10:12:30+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "6.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "42b7f394a8e009516582331b1e03a1aba40175d1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/42b7f394a8e009516582331b1e03a1aba40175d1", + "reference": "42b7f394a8e009516582331b1e03a1aba40175d1", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "^1.3", + "phar-io/manifest": "^1.0.1", + "phar-io/version": "^1.0", + "php": "^7.0", + "phpspec/prophecy": "^1.7", + "phpunit/php-code-coverage": "^5.2", + "phpunit/php-file-iterator": "^1.4", + "phpunit/php-text-template": "^1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^4.0", + "sebastian/comparator": "^2.0", + "sebastian/diff": "^1.4.3 || ^2.0", + "sebastian/environment": "^3.0.2", + "sebastian/exporter": "^3.1", + "sebastian/global-state": "^1.1 || ^2.0", + "sebastian/object-enumerator": "^3.0.2", + "sebastian/resource-operations": "^1.0", + "sebastian/version": "^2.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2", + "phpunit/dbunit": "<3.0" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "^1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2017-05-22T07:45:30+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "eabce450df194817a7d7e27e19013569a903a2bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/eabce450df194817a7d7e27e19013569a903a2bf", + "reference": "eabce450df194817a7d7e27e19013569a903a2bf", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^3.0" + }, + "conflict": { + "phpunit/phpunit": "<6.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "time": "2017-03-03T06:30:20+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" + }, + { + "name": "sebastian/comparator", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "20f84f468cb67efee293246e6a09619b891f55f0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/20f84f468cb67efee293246e6a09619b891f55f0", + "reference": "20f84f468cb67efee293246e6a09619b891f55f0", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/diff": "^1.2", + "sebastian/exporter": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-03-03T06:26:08+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-05-22T07:24:03+00:00" + }, + { + "name": "sebastian/environment", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "02b6b2c7aefe2cdb1185b8dbf8718b0bcedf3ab3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/02b6b2c7aefe2cdb1185b8dbf8718b0bcedf3ab3", + "reference": "02b6b2c7aefe2cdb1185b8dbf8718b0bcedf3ab3", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2017-05-18T10:10:00+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "234199f4528de6d12aaa58b612e98f7d36adb937" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937", + "reference": "234199f4528de6d12aaa58b612e98f7d36adb937", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2017-04-03T13:19:02+00:00" + }, + { + "name": "sebastian/global-state", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2017-04-27T15:39:26+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "31dd3379d16446c5d86dec32ab1ad1f378581ad8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/31dd3379d16446c5d86dec32ab1ad1f378581ad8", + "reference": "31dd3379d16446c5d86dec32ab1ad1f378581ad8", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/object-reflector": "^1.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-03-12T15:17:29+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "773f97c67f28de00d397be301821b06708fca0be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", + "reference": "773f97c67f28de00d397be301821b06708fca0be", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "time": "2017-03-29T09:07:27+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2017-03-03T06:23:57+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "time": "2017-04-07T12:08:54+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2016-11-23T20:04:58+00:00" + } + ], "aliases": [], - "minimum-stability": "dev", + "minimum-stability": "stable", "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.5.0" + "php": ">=5.6" }, "platform-dev": [] } diff --git a/src/Phim/Color.php b/src/Phim/Color.php index 0cfc7f0..acf973b 100644 --- a/src/Phim/Color.php +++ b/src/Phim/Color.php @@ -30,580 +30,580 @@ class Color const HUE_RANGE_BLUE = 'blue'; const HUE_RANGE_MAGENTA = 'magenta'; - const ABBIEXXXX = 0x4c2f27; - const ABSOLUTEZERO = 0x0048ba; - const ACIDGREEN = 0xb0bf1a; - const AERO = 0x7cb9e8; - const AEROBLUE = 0xc9ffe5; - const AFRICANVIOLET = 0xb284be; - const AIRFORCEBLUERAF = 0x5d8aa8; - const AIRFORCEBLUEUSAF = 0x00308f; - const AIRSUPERIORITYBLUE = 0x72a0c1; - const ALABAMACRIMSON = 0xaf002a; - const ALABASTER = 0xf2f0e6; - const ALICEBLUE = 0xf0f8ff; - const ALIENARMPIT = 0x84de02; - const ALIZARINCRIMSON = 0xe32636; - const ALLOYORANGE = 0xc46210; - const ALMOND = 0xefdecd; - const AMARANTH = 0xe52b50; - const AMARANTHDEEPPURPLE = 0x9f2b68; - const AMARANTHPINK = 0xf19cbb; - const AMARANTHPURPLE = 0xab274f; - const AMARANTHRED = 0xd3212d; - const AMAZON = 0x3b7a57; - const AMAZONITE = 0x00c4b0; - const AMBER = 0xffbf00; - const AMBERSAEECE = 0xff7e00; - const AMERICANROSE = 0xff033e; - const AMETHYST = 0x9966cc; - const ANDROIDGREEN = 0xa4c639; - const ANTIFLASHWHITE = 0xf2f3f4; - const ANTIQUEBRASS = 0xcd9575; - const ANTIQUEBRONZE = 0x665d1e; - const ANTIQUEFUCHSIA = 0x915c83; - const ANTIQUERUBY = 0x841b2d; - const ANTIQUEWHITE = 0xfaebd7; - const AOENGLISH = 0x008000; - const APPLEGREEN = 0x8db600; - const APRICOT = 0xfbceb1; - const AQUA = 0x00ffff; - const AQUAMARINE = 0x7fffd4; - const ARCTICLIME = 0xd0ff14; - const ARMYGREEN = 0x4b5320; - const ARSENIC = 0x3b444b; - const ARTICHOKE = 0x8f9779; - const ARYLIDEYELLOW = 0xe9d66b; - const ASHGREY = 0xb2beb5; - const ASPARAGUS = 0x87a96b; - const ATOMICTANGERINE = 0xff9966; - const AUBURN = 0xa52a2a; - const AUREOLIN = 0xfdee00; - const AUROMETALSAURUS = 0x6e7f80; - const AVOCADO = 0x568203; - const AWESOME = 0xff2052; - const AZTECGOLD = 0xc39953; - const AZURE = 0x007fff; - const AZUREISHWHITE = 0xdbe9f4; - const AZUREMIST = 0xf0ffff; - const AZUREWEBCOLOR = 0xf0ffff; - const BABYBLUE = 0x89cff0; - const BABYBLUEEYES = 0xa1caf1; - const BABYPINK = 0xf4c2c2; - const BABYPOWDER = 0xfefefa; - const BAKERMILLERPINK = 0xff91af; - const BALLBLUE = 0x21abcd; - const BANANAMANIA = 0xfae7b5; - const BANANAYELLOW = 0xffe135; - const BANGLADESHGREEN = 0x006a4e; - const BARBIEPINK = 0xe0218a; - const BARNRED = 0x7c0a02; - const BATTERYCHARGEDBLUE = 0x1dacd6; - const BATTLESHIPGREY = 0x848482; - const BAZAAR = 0x98777b; - const BDAZZLEDBLUE = 0x2e5894; - const BEAUBLUE = 0xbcd4e6; - const BEAVER = 0x9f8170; - const BEGONIA = 0xfa6e79; - const BEIGE = 0xf5f5dc; - const BIGDIPORUBY = 0x9c2542; - const BIGFOOTFEET = 0xe88e5a; - const BISQUE = 0xffe4c4; - const BISTRE = 0x3d2b1f; - const BISTREBROWN = 0x967117; - const BITTERLEMON = 0xcae00d; - const BITTERLIME = 0xbfff00; - const BITTERSWEET = 0xfe6f5e; - const BITTERSWEETSHIMMER = 0xbf4f51; - const BLACK = 0x000000; - const BLACKBEAN = 0x3d0c02; - const BLACKCORAL = 0x54626f; - const BLACKLEATHERJACKET = 0x253529; - const BLACKOLIVE = 0x3b3c36; - const BLACKSHADOWS = 0xbfafb2; - const BLANCHEDALMOND = 0xffebcd; - const BLASTOFFBRONZE = 0xa57164; - const BLEUDEFRANCE = 0x318ce7; - const BLIZZARDBLUE = 0xace5ee; - const BLOND = 0xfaf0be; - const BLUE = 0x0000ff; - const BLUEBELL = 0xa2a2d0; - const BLUEBERRY = 0x4f86f7; - const BLUEBOLT = 0x00b9fb; - const BLUEBONNET = 0x1c1cf0; - const BLUECRAYOLA = 0x1f75fe; - const BLUEGRAY = 0x6699cc; - const BLUEGREEN = 0x0d98ba; - const BLUEJEANS = 0x5dadec; - const BLUELAGOON = 0xace5ee; - const BLUEMAGENTAVIOLET = 0x553592; - const BLUEMUNSELL = 0x0093af; - const BLUENCS = 0x0087bd; - const BLUEPANTONE = 0x0018a8; - const BLUEPIGMENT = 0x333399; - const BLUERYB = 0x0247fe; - const BLUESAPPHIRE = 0x126180; - const BLUEVIOLET = 0x8a2be2; - const BLUEYONDER = 0x5072a7; - const BLUSH = 0xde5d83; - const BOLE = 0x79443b; - const BONDIBLUE = 0x0095b6; - const BONE = 0xe3dac9; - const BOOGERBUSTER = 0xdde26a; - const BOSTONUNIVERSITYRED = 0xcc0000; - const BOTTLEGREEN = 0x006a4e; - const BOYSENBERRY = 0x873260; - const BRANDEISBLUE = 0x0070ff; - const BRASS = 0xb5a642; - const BRICKRED = 0xcb4154; - const BRIGHTCERULEAN = 0x1dacd6; - const BRIGHTGREEN = 0x66ff00; - const BRIGHTLAVENDER = 0xbf94e4; - const BRIGHTLILAC = 0xd891ef; - const BRIGHTMAROON = 0xc32148; - const BRIGHTNAVYBLUE = 0x1974d2; - const BRIGHTPINK = 0xff007f; - const BRIGHTTURQUOISE = 0x08e8de; - const BRIGHTUBE = 0xd19fe8; - const BRIGHTYELLOWCRAYOLA = 0xffaa1d; - const BRILLIANTAZURE = 0x3399ff; - const BRILLIANTLAVENDER = 0xf4bbff; - const BRILLIANTROSE = 0xff55a3; - const BRINKPINK = 0xfb607f; - const BRITISHRACINGGREEN = 0x004225; - const BRONZE = 0xcd7f32; - const BRONZEYELLOW = 0x737000; - const BROWN = 0xa52a2a; - const BROWNNOSE = 0x6b4423; - const BROWNSUGAR = 0xaf6e4d; - const BROWNTRADITIONAL = 0x964b00; - const BROWNWEB = 0xa52a2a; - const BROWNYELLOW = 0xcc9966; - const BRUNSWICKGREEN = 0x1b4d3e; - const BUBBLEGUM = 0xffc1cc; - const BUBBLES = 0xe7feff; - const BUDGREEN = 0x7bb661; - const BUFF = 0xf0dc82; - const BULGARIANROSE = 0x480607; - const BURGUNDY = 0x800020; - const BURLYWOOD = 0xdeb887; - const BURNISHEDBROWN = 0xa17a74; - const BURNTORANGE = 0xcc5500; - const BURNTSIENNA = 0xe97451; - const BURNTUMBER = 0x8a3324; - const BYZANTINE = 0xbd33a4; - const BYZANTIUM = 0x702963; - const CADET = 0x536872; - const CADETBLUE = 0x5f9ea0; - const CADETGREY = 0x91a3b0; - const CADMIUMGREEN = 0x006b3c; - const CADMIUMORANGE = 0xed872d; - const CADMIUMRED = 0xe30022; - const CADMIUMYELLOW = 0xfff600; - const CAFAULAIT = 0xa67b5b; - const CAFNOIR = 0x4b3621; - const CALPOLYPOMONAGREEN = 0x1e4d2b; - const CAMBRIDGEBLUE = 0xa3c1ad; - const CAMEL = 0xc19a6b; - const CAMEOPINK = 0xefbbcc; - const CAMOUFLAGEGREEN = 0x78866b; - const CANARY = 0xffff99; - const CANARYYELLOW = 0xffef00; - const CANDYAPPLERED = 0xff0800; - const CANDYPINK = 0xe4717a; - const CAPRI = 0x00bfff; - const CAPUTMORTUUM = 0x592720; - const CARDINAL = 0xc41e3a; - const CARIBBEANGREEN = 0x00cc99; - const CARMINE = 0x960018; - const CARMINEMP = 0xd70040; - const CARMINEPINK = 0xeb4c42; - const CARMINERED = 0xff0038; - const CARNATIONPINK = 0xffa6c9; - const CARNELIAN = 0xb31b1b; - const CAROLINABLUE = 0x56a0d3; - const CARROTORANGE = 0xed9121; - const CASTLETONGREEN = 0x00563f; - const CATALINABLUE = 0x062a78; - const CATAWBA = 0x703642; - const CEDARCHEST = 0xc95a49; - const CEIL = 0x92a1cf; - const CELADON = 0xace1af; - const CELADONBLUE = 0x007ba7; - const CELADONGREEN = 0x2f847c; - const CELESTE = 0xb2ffff; - const CELESTIALBLUE = 0x4997d0; - const CERISE = 0xde3163; - const CERISEPINK = 0xec3b83; - const CERULEAN = 0x007ba7; - const CERULEANBLUE = 0x2a52be; - const CERULEANFROST = 0x6d9bc3; - const CGBLUE = 0x007aa5; - const CGRED = 0xe03c31; - const CHAMOISEE = 0xa0785a; - const CHAMPAGNE = 0xf7e7ce; - const CHAMPAGNEPINK = 0xf1ddcf; - const CHARCOAL = 0x36454f; - const CHARLESTONGREEN = 0x232b2b; - const CHARMPINK = 0xe68fac; - const CHARTREUSE = 0x7fff00; - const CHARTREUSETRADITIONAL = 0xdfff00; - const CHARTREUSEWEB = 0x7fff00; - const CHERRY = 0xde3163; - const CHERRYBLOSSOMPINK = 0xffb7c5; - const CHESTNUT = 0x954535; - const CHINAPINK = 0xde6fa1; - const CHINAROSE = 0xa8516e; - const CHINESERED = 0xaa381e; - const CHINESEVIOLET = 0x856088; - const CHLOROPHYLLGREEN = 0x4aff00; - const CHOCOLATE = 0xd2691e; - const CHOCOLATETRADITIONAL = 0x7b3f00; - const CHOCOLATEWEB = 0xd2691e; - const CHROMEYELLOW = 0xffa700; - const CINEREOUS = 0x98817b; - const CINNABAR = 0xe34234; - const CINNAMONCITATIONNEEDED = 0xd2691e; - const CINNAMONSATIN = 0xcd607e; - const CITRINE = 0xe4d00a; - const CITRON = 0x9fa91f; - const CLARET = 0x7f1734; - const CLASSICROSE = 0xfbcce7; - const COBALTBLUE = 0x0047ab; - const COCOABROWN = 0xd2691e; - const COCONUT = 0x965a3e; - const COFFEE = 0x6f4e37; - const COLUMBIABLUE = 0xc4d8e2; - const CONGOPINK = 0xf88379; - const COOLBLACK = 0x002e63; - const COOLGREY = 0x8c92ac; - const COPPER = 0xb87333; - const COPPERCRAYOLA = 0xda8a67; - const COPPERPENNY = 0xad6f69; - const COPPERRED = 0xcb6d51; - const COPPERROSE = 0x996666; - const COQUELICOT = 0xff3800; - const CORAL = 0xff7f50; - const CORALPINK = 0xf88379; - const CORALRED = 0xff4040; - const CORALREEF = 0xfd7c6e; - const CORDOVAN = 0x893f45; - const CORN = 0xfbec5d; - const CORNELLRED = 0xb31b1b; - const CORNFLOWERBLUE = 0x6495ed; - const CORNSILK = 0xfff8dc; - const COSMICCOBALT = 0x2e2d88; - const COSMICLATTE = 0xfff8e7; - const COTTONCANDY = 0xffbcd9; - const COYOTEBROWN = 0x81613c; - const CREAM = 0xfffdd0; - const CRIMSON = 0xdc143c; - const CRIMSONGLORY = 0xbe0032; - const CRIMSONRED = 0x990000; - const CULTURED = 0xf5f5f5; - const CYAN = 0x00ffff; - const CYANAZURE = 0x4e82b4; - const CYANBLUEAZURE = 0x4682bf; - const CYANCOBALTBLUE = 0x28589c; - const CYANCORNFLOWERBLUE = 0x188bc2; - const CYANPROCESS = 0x00b7eb; - const CYBERGRAPE = 0x58427c; - const CYBERYELLOW = 0xffd300; - const CYCLAMEN = 0xf56fa1; - const DAFFODIL = 0xffff31; - const DANDELION = 0xf0e130; - const DARKBLUE = 0x00008b; - const DARKBLUEGRAY = 0x666699; - const DARKBROWN = 0x654321; - const DARKBROWNTANGELO = 0x88654e; - const DARKBYZANTIUM = 0x5d3954; - const DARKCANDYAPPLERED = 0xa40000; - const DARKCERULEAN = 0x08457e; - const DARKCHESTNUT = 0x986960; - const DARKCORAL = 0xcd5b45; - const DARKCYAN = 0x008b8b; - const DARKELECTRICBLUE = 0x536878; - const DARKGOLDENROD = 0xb8860b; - const DARKGRAY = 0xa9a9a9; - const DARKGRAYX11 = 0xa9a9a9; - const DARKGREEN = 0x013220; - const DARKGREENX11 = 0x006400; - const DARKGREY = 0xa9a9a9; - const DARKGUNMETAL = 0x1f262a; - const DARKIMPERIALBLUE = 0x00416a; - const DARKJUNGLEGREEN = 0x1a2421; - const DARKKHAKI = 0xbdb76b; - const DARKLAVA = 0x483c32; - const DARKLAVENDER = 0x734f96; - const DARKLIVER = 0x534b4f; - const DARKLIVERHORSES = 0x543d37; - const DARKMAGENTA = 0x8b008b; - const DARKMEDIUMGRAY = 0xa9a9a9; - const DARKMIDNIGHTBLUE = 0x003366; - const DARKMOSSGREEN = 0x4a5d23; - const DARKOLIVEGREEN = 0x556b2f; - const DARKORANGE = 0xff8c00; - const DARKORCHID = 0x9932cc; - const DARKPASTELBLUE = 0x779ecb; - const DARKPASTELGREEN = 0x03c03c; - const DARKPASTELPURPLE = 0x966fd6; - const DARKPASTELRED = 0xc23b22; - const DARKPINK = 0xe75480; - const DARKPOWDERBLUE = 0x003399; - const DARKPUCE = 0x4f3a3c; - const DARKPURPLE = 0x301934; - const DARKRASPBERRY = 0x872657; - const DARKRED = 0x8b0000; - const DARKSALMON = 0xe9967a; - const DARKSCARLET = 0x560319; - const DARKSEAGREEN = 0x8fbc8f; - const DARKSIENNA = 0x3c1414; - const DARKSKYBLUE = 0x8cbed6; - const DARKSLATEBLUE = 0x483d8b; - const DARKSLATEGRAY = 0x2f4f4f; - const DARKSLATEGREY = 0x2f4f4f; - const DARKSPRINGGREEN = 0x177245; - const DARKTAN = 0x918151; - const DARKTANGERINE = 0xffa812; - const DARKTAUPE = 0x483c32; - const DARKTERRACOTTA = 0xcc4e5c; - const DARKTURQUOISE = 0x00ced1; - const DARKVANILLA = 0xd1bea8; - const DARKVIOLET = 0x9400d3; - const DARKYELLOW = 0x9b870c; - const DARTMOUTHGREEN = 0x00703c; - const DAVYSGREY = 0x555555; - const DEBIANRED = 0xd70a53; - const DEEPAQUAMARINE = 0x40826d; - const DEEPCARMINE = 0xa9203e; - const DEEPCARMINEPINK = 0xef3038; - const DEEPCARROTORANGE = 0xe9692c; - const DEEPCERISE = 0xda3287; - const DEEPCHAMPAGNE = 0xfad6a5; - const DEEPCHESTNUT = 0xb94e48; - const DEEPCOFFEE = 0x704241; - const DEEPFUCHSIA = 0xc154c1; - const DEEPGREEN = 0x056608; - const DEEPGREENCYANTURQUOISE = 0x0e7c61; - const DEEPJUNGLEGREEN = 0x004b49; - const DEEPKOAMARU = 0x333366; - const DEEPLEMON = 0xf5c71a; - const DEEPLILAC = 0x9955bb; - const DEEPMAGENTA = 0xcc00cc; - const DEEPMAROON = 0x820000; - const DEEPMAUVE = 0xd473d4; - const DEEPMOSSGREEN = 0x355e3b; - const DEEPPEACH = 0xffcba4; - const DEEPPINK = 0xff1493; - const DEEPPUCE = 0xa95c68; - const DEEPRED = 0x850101; - const DEEPRUBY = 0x843f5b; - const DEEPSAFFRON = 0xff9933; - const DEEPSKYBLUE = 0x00bfff; - const DEEPSPACESPARKLE = 0x4a646c; - const DEEPSPRINGBUD = 0x556b2f; - const DEEPTAUPE = 0x7e5e60; - const DEEPTUSCANRED = 0x66424d; - const DEEPVIOLET = 0x330066; - const DEER = 0xba8759; - const DENIM = 0x1560bd; - const DENIMBLUE = 0x2243b6; - const DESATURATEDCYAN = 0x669999; - const DESERT = 0xc19a6b; - const DESERTSAND = 0xedc9af; - const DESIRE = 0xea3c53; - const DIAMOND = 0xb9f2ff; - const DIMGRAY = 0x696969; - const DIMGREY = 0x696969; - const DINGYDUNGEON = 0xc53151; - const DIRT = 0x9b7653; - const DODGERBLUE = 0x1e90ff; - const DOGWOODROSE = 0xd71868; - const DOLLARBILL = 0x85bb65; - const DOLPHINGRAY = 0x828e84; - const DONKEYBROWN = 0x664c28; - const DRAB = 0x967117; - const DUKEBLUE = 0x00009c; - const DUSTSTORM = 0xe5ccc9; - const DUTCHWHITE = 0xefdfbb; - const EARTHYELLOW = 0xe1a95f; - const EBONY = 0x555d50; - const ECRU = 0xc2b280; - const EERIEBLACK = 0x1b1b1b; - const EGGPLANT = 0x614051; - const EGGSHELL = 0xf0ead6; - const EGYPTIANBLUE = 0x1034a6; - const ELECTRICBLUE = 0x7df9ff; - const ELECTRICCRIMSON = 0xff003f; - const ELECTRICCYAN = 0x00ffff; - const ELECTRICGREEN = 0x00ff00; - const ELECTRICINDIGO = 0x6f00ff; - const ELECTRICLAVENDER = 0xf4bbff; - const ELECTRICLIME = 0xccff00; - const ELECTRICPURPLE = 0xbf00ff; - const ELECTRICULTRAMARINE = 0x3f00ff; - const ELECTRICVIOLET = 0x8f00ff; - const ELECTRICYELLOW = 0xffff33; - const EMERALD = 0x50c878; - const EMINENCE = 0x6c3082; - const ENGLISHGREEN = 0x1b4d3e; - const ENGLISHLAVENDER = 0xb48395; - const ENGLISHRED = 0xab4b52; - const ENGLISHVERMILLION = 0xcc474b; - const ENGLISHVIOLET = 0x563c5c; - const ETONBLUE = 0x96c8a2; - const EUCALYPTUS = 0x44d7a8; - const FALLOW = 0xc19a6b; - const FALURED = 0x801818; - const FANDANGO = 0xb53389; - const FANDANGOPINK = 0xde5285; - const FASHIONFUCHSIA = 0xf400a1; - const FAWN = 0xe5aa70; - const FELDGRAU = 0x4d5d53; - const FELDSPAR = 0xfdd5b1; - const FERNGREEN = 0x4f7942; - const FERRARIRED = 0xff2800; - const FIELDDRAB = 0x6c541e; - const FIERYROSE = 0xff5470; - const FIREBRICK = 0xb22222; - const FIREENGINERED = 0xce2029; - const FLAME = 0xe25822; - const FLAMINGOPINK = 0xfc8eac; - const FLATTERY = 0x6b4423; - const FLAVESCENT = 0xf7e98e; - const FLAX = 0xeedc82; - const FLIRT = 0xa2006d; - const FLORALWHITE = 0xfffaf0; - const FLUORESCENTORANGE = 0xffbf00; - const FLUORESCENTPINK = 0xff1493; - const FLUORESCENTYELLOW = 0xccff00; - const FOLLY = 0xff004f; - const FORESTGREEN = 0x228b22; - const FORESTGREENTRADITIONAL = 0x014421; - const FORESTGREENWEB = 0x228b22; - const FRENCHBEIGE = 0xa67b5b; - const FRENCHBISTRE = 0x856d4d; - const FRENCHBLUE = 0x0072bb; - const FRENCHFUCHSIA = 0xfd3f92; - const FRENCHLILAC = 0x86608e; - const FRENCHLIME = 0x9efd38; - const FRENCHMAUVE = 0xd473d4; - const FRENCHPINK = 0xfd6c9e; - const FRENCHPLUM = 0x811453; - const FRENCHPUCE = 0x4e1609; - const FRENCHRASPBERRY = 0xc72c48; - const FRENCHROSE = 0xf64a8a; - const FRENCHSKYBLUE = 0x77b5fe; - const FRENCHVIOLET = 0x8806ce; - const FRENCHWINE = 0xac1e44; - const FRESHAIR = 0xa6e7ff; - const FROSTBITE = 0xe936a7; - const FUCHSIA = 0xff00ff; - const FUCHSIACRAYOLA = 0xc154c1; - const FUCHSIAPINK = 0xff77ff; - const FUCHSIAPURPLE = 0xcc397b; - const FUCHSIAROSE = 0xc74375; - const FULVOUS = 0xe48400; - const FUZZYWUZZY = 0xcc6666; - const GAINSBORO = 0xdcdcdc; - const GHOSTWHITE = 0xf8f8ff; - const GOLD = 0xffd700; - const GOLDENROD = 0xdaa520; - const GRAY = 0x808080; - const GREEN = 0x008000; - const GREENYELLOW = 0xadff2f; - const GREY = 0x808080; - const HONEYDEW = 0xf0fff0; - const HOTPINK = 0xff69b4; - const INDIANRED = 0xcd5c5c; - const INDIGO = 0x4b0082; - const IVORY = 0xfffff0; - const KHAKI = 0xf0e68c; - const LAVENDER = 0xe6e6fa; - const LAVENDERBLUSH = 0xfff0f5; - const LAWNGREEN = 0x7cfc00; - const LEMONCHIFFON = 0xfffacd; - const LIGHTBLUE = 0xadd8e6; - const LIGHTCORAL = 0xf08080; - const LIGHTCYAN = 0xe0ffff; - const LIGHTGOLDENRODYELLOW = 0xfafad2; - const LIGHTGRAY = 0xd3d3d3; - const LIGHTGREEN = 0x90ee90; - const LIGHTGREY = 0xd3d3d3; - const LIGHTPINK = 0xffb6c1; - const LIGHTSALMON = 0xffa07a; - const LIGHTSEAGREEN = 0x20b2aa; - const LIGHTSKYBLUE = 0x87cefa; - const LIGHTSLATEGRAY = 0x778899; - const LIGHTSLATEGREY = 0x778899; - const LIGHTSTEELBLUE = 0xb0c4de; - const LIGHTYELLOW = 0xffffe0; - const LIME = 0x00ff00; - const LIMEGREEN = 0x32cd32; - const LINEN = 0xfaf0e6; - const MAGENTA = 0xff00ff; - const MAROON = 0x800000; - const MEDIUMAQUAMARINE = 0x66cdaa; - const MEDIUMBLUE = 0x0000cd; - const MEDIUMORCHID = 0xba55d3; - const MEDIUMPURPLE = 0x9370db; - const MEDIUMSEAGREEN = 0x3cb371; - const MEDIUMSLATEBLUE = 0x7b68ee; - const MEDIUMSPRINGGREEN = 0x00fa9a; - const MEDIUMTURQUOISE = 0x48d1cc; - const MEDIUMVIOLETRED = 0xc71585; - const MIDNIGHTBLUE = 0x191970; - const MINTCREAM = 0xf5fffa; - const MISTYROSE = 0xffe4e1; - const MOCCASIN = 0xffe4b5; - const NAVAJOWHITE = 0xffdead; - const NAVY = 0x000080; - const OLDLACE = 0xfdf5e6; - const OLIVE = 0x808000; - const OLIVEDRAB = 0x6b8e23; - const ORANGE = 0xffa500; - const ORANGERED = 0xff4500; - const ORCHID = 0xda70d6; - const PALEGOLDENROD = 0xeee8aa; - const PALEGREEN = 0x98fb98; - const PALETURQUOISE = 0xafeeee; - const PALEVIOLETRED = 0xdb7093; - const PAPAYAWHIP = 0xffefd5; - const PEACHPUFF = 0xffdab9; - const PERU = 0xcd853f; - const PINK = 0xffc0cb; - const PLUM = 0xdda0dd; - const POWDERBLUE = 0xb0e0e6; - const PURPLE = 0x800080; - const REBECCAPURPLE = 0x663399; - const RED = 0xff0000; - const ROSYBROWN = 0xbc8f8f; - const ROYALBLUE = 0x4169e1; - const SADDLEBROWN = 0x8b4513; - const SALMON = 0xfa8072; - const SANDYBROWN = 0xf4a460; - const SEAGREEN = 0x2e8b57; - const SEASHELL = 0xfff5ee; - const SIENNA = 0xa0522d; - const SILVER = 0xc0c0c0; - const SKYBLUE = 0x87ceeb; - const SLATEBLUE = 0x6a5acd; - const SLATEGRAY = 0x708090; - const SLATEGREY = 0x708090; - const SNOW = 0xfffafa; - const SPRINGGREEN = 0x00ff7f; - const STEELBLUE = 0x4682b4; - const TAN = 0xd2b48c; - const TEAL = 0x008080; - const THISTLE = 0xd8bfd8; - const TOMATO = 0xff6347; - const TURQUOISE = 0x40e0d0; - const VIOLET = 0xee82ee; - const WHEAT = 0xf5deb3; - const WHITE = 0xffffff; - const WHITESMOKE = 0xf5f5f5; - const YELLOW = 0xffff00; - const YELLOWGREEN = 0x9acd32; + const ABBIEXXXX = 0x4c2f27ff; + const ABSOLUTEZERO = 0x0048baff; + const ACIDGREEN = 0xb0bf1aff; + const AERO = 0x7cb9e8ff; + const AEROBLUE = 0xc9ffe5ff; + const AFRICANVIOLET = 0xb284beff; + const AIRFORCEBLUERAF = 0x5d8aa8ff; + const AIRFORCEBLUEUSAF = 0x00308fff; + const AIRSUPERIORITYBLUE = 0x72a0c1ff; + const ALABAMACRIMSON = 0xaf002aff; + const ALABASTER = 0xf2f0e6ff; + const ALICEBLUE = 0xf0f8ffff; + const ALIENARMPIT = 0x84de02ff; + const ALIZARINCRIMSON = 0xe32636ff; + const ALLOYORANGE = 0xc46210ff; + const ALMOND = 0xefdecdff; + const AMARANTH = 0xe52b50ff; + const AMARANTHDEEPPURPLE = 0x9f2b68ff; + const AMARANTHPINK = 0xf19cbbff; + const AMARANTHPURPLE = 0xab274fff; + const AMARANTHRED = 0xd3212dff; + const AMAZON = 0x3b7a57ff; + const AMAZONITE = 0x00c4b0ff; + const AMBER = 0xffbf00ff; + const AMBERSAEECE = 0xff7e00ff; + const AMERICANROSE = 0xff033eff; + const AMETHYST = 0x9966ccff; + const ANDROIDGREEN = 0xa4c639ff; + const ANTIFLASHWHITE = 0xf2f3f4ff; + const ANTIQUEBRASS = 0xcd9575ff; + const ANTIQUEBRONZE = 0x665d1eff; + const ANTIQUEFUCHSIA = 0x915c83ff; + const ANTIQUERUBY = 0x841b2dff; + const ANTIQUEWHITE = 0xfaebd7ff; + const AOENGLISH = 0x008000ff; + const APPLEGREEN = 0x8db600ff; + const APRICOT = 0xfbceb1ff; + const AQUA = 0x00ffffff; + const AQUAMARINE = 0x7fffd4ff; + const ARCTICLIME = 0xd0ff14ff; + const ARMYGREEN = 0x4b5320ff; + const ARSENIC = 0x3b444bff; + const ARTICHOKE = 0x8f9779ff; + const ARYLIDEYELLOW = 0xe9d66bff; + const ASHGREY = 0xb2beb5ff; + const ASPARAGUS = 0x87a96bff; + const ATOMICTANGERINE = 0xff9966ff; + const AUBURN = 0xa52a2aff; + const AUREOLIN = 0xfdee00ff; + const AUROMETALSAURUS = 0x6e7f80ff; + const AVOCADO = 0x568203ff; + const AWESOME = 0xff2052ff; + const AZTECGOLD = 0xc39953ff; + const AZURE = 0x007fffff; + const AZUREISHWHITE = 0xdbe9f4ff; + const AZUREMIST = 0xf0ffffff; + const AZUREWEBCOLOR = 0xf0ffffff; + const BABYBLUE = 0x89cff0ff; + const BABYBLUEEYES = 0xa1caf1ff; + const BABYPINK = 0xf4c2c2ff; + const BABYPOWDER = 0xfefefaff; + const BAKERMILLERPINK = 0xff91afff; + const BALLBLUE = 0x21abcdff; + const BANANAMANIA = 0xfae7b5ff; + const BANANAYELLOW = 0xffe135ff; + const BANGLADESHGREEN = 0x006a4eff; + const BARBIEPINK = 0xe0218aff; + const BARNRED = 0x7c0a02ff; + const BATTERYCHARGEDBLUE = 0x1dacd6ff; + const BATTLESHIPGREY = 0x848482ff; + const BAZAAR = 0x98777bff; + const BDAZZLEDBLUE = 0x2e5894ff; + const BEAUBLUE = 0xbcd4e6ff; + const BEAVER = 0x9f8170ff; + const BEGONIA = 0xfa6e79ff; + const BEIGE = 0xf5f5dcff; + const BIGDIPORUBY = 0x9c2542ff; + const BIGFOOTFEET = 0xe88e5aff; + const BISQUE = 0xffe4c4ff; + const BISTRE = 0x3d2b1fff; + const BISTREBROWN = 0x967117ff; + const BITTERLEMON = 0xcae00dff; + const BITTERLIME = 0xbfff00ff; + const BITTERSWEET = 0xfe6f5eff; + const BITTERSWEETSHIMMER = 0xbf4f51ff; + const BLACK = 0x000000ff; + const BLACKBEAN = 0x3d0c02ff; + const BLACKCORAL = 0x54626fff; + const BLACKLEATHERJACKET = 0x253529ff; + const BLACKOLIVE = 0x3b3c36ff; + const BLACKSHADOWS = 0xbfafb2ff; + const BLANCHEDALMOND = 0xffebcdff; + const BLASTOFFBRONZE = 0xa57164ff; + const BLEUDEFRANCE = 0x318ce7ff; + const BLIZZARDBLUE = 0xace5eeff; + const BLOND = 0xfaf0beff; + const BLUE = 0x0000ffff; + const BLUEBELL = 0xa2a2d0ff; + const BLUEBERRY = 0x4f86f7ff; + const BLUEBOLT = 0x00b9fbff; + const BLUEBONNET = 0x1c1cf0ff; + const BLUECRAYOLA = 0x1f75feff; + const BLUEGRAY = 0x6699ccff; + const BLUEGREEN = 0x0d98baff; + const BLUEJEANS = 0x5dadecff; + const BLUELAGOON = 0xace5eeff; + const BLUEMAGENTAVIOLET = 0x553592ff; + const BLUEMUNSELL = 0x0093afff; + const BLUENCS = 0x0087bdff; + const BLUEPANTONE = 0x0018a8ff; + const BLUEPIGMENT = 0x333399ff; + const BLUERYB = 0x0247feff; + const BLUESAPPHIRE = 0x126180ff; + const BLUEVIOLET = 0x8a2be2ff; + const BLUEYONDER = 0x5072a7ff; + const BLUSH = 0xde5d83ff; + const BOLE = 0x79443bff; + const BONDIBLUE = 0x0095b6ff; + const BONE = 0xe3dac9ff; + const BOOGERBUSTER = 0xdde26aff; + const BOSTONUNIVERSITYRED = 0xcc0000ff; + const BOTTLEGREEN = 0x006a4eff; + const BOYSENBERRY = 0x873260ff; + const BRANDEISBLUE = 0x0070ffff; + const BRASS = 0xb5a642ff; + const BRICKRED = 0xcb4154ff; + const BRIGHTCERULEAN = 0x1dacd6ff; + const BRIGHTGREEN = 0x66ff00ff; + const BRIGHTLAVENDER = 0xbf94e4ff; + const BRIGHTLILAC = 0xd891efff; + const BRIGHTMAROON = 0xc32148ff; + const BRIGHTNAVYBLUE = 0x1974d2ff; + const BRIGHTPINK = 0xff007fff; + const BRIGHTTURQUOISE = 0x08e8deff; + const BRIGHTUBE = 0xd19fe8ff; + const BRIGHTYELLOWCRAYOLA = 0xffaa1dff; + const BRILLIANTAZURE = 0x3399ffff; + const BRILLIANTLAVENDER = 0xf4bbffff; + const BRILLIANTROSE = 0xff55a3ff; + const BRINKPINK = 0xfb607fff; + const BRITISHRACINGGREEN = 0x004225ff; + const BRONZE = 0xcd7f32ff; + const BRONZEYELLOW = 0x737000ff; + const BROWN = 0xa52a2aff; + const BROWNNOSE = 0x6b4423ff; + const BROWNSUGAR = 0xaf6e4dff; + const BROWNTRADITIONAL = 0x964b00ff; + const BROWNWEB = 0xa52a2aff; + const BROWNYELLOW = 0xcc9966ff; + const BRUNSWICKGREEN = 0x1b4d3eff; + const BUBBLEGUM = 0xffc1ccff; + const BUBBLES = 0xe7feffff; + const BUDGREEN = 0x7bb661ff; + const BUFF = 0xf0dc82ff; + const BULGARIANROSE = 0x480607ff; + const BURGUNDY = 0x800020ff; + const BURLYWOOD = 0xdeb887ff; + const BURNISHEDBROWN = 0xa17a74ff; + const BURNTORANGE = 0xcc5500ff; + const BURNTSIENNA = 0xe97451ff; + const BURNTUMBER = 0x8a3324ff; + const BYZANTINE = 0xbd33a4ff; + const BYZANTIUM = 0x702963ff; + const CADET = 0x536872ff; + const CADETBLUE = 0x5f9ea0ff; + const CADETGREY = 0x91a3b0ff; + const CADMIUMGREEN = 0x006b3cff; + const CADMIUMORANGE = 0xed872dff; + const CADMIUMRED = 0xe30022ff; + const CADMIUMYELLOW = 0xfff600ff; + const CAFAULAIT = 0xa67b5bff; + const CAFNOIR = 0x4b3621ff; + const CALPOLYPOMONAGREEN = 0x1e4d2bff; + const CAMBRIDGEBLUE = 0xa3c1adff; + const CAMEL = 0xc19a6bff; + const CAMEOPINK = 0xefbbccff; + const CAMOUFLAGEGREEN = 0x78866bff; + const CANARY = 0xffff99ff; + const CANARYYELLOW = 0xffef00ff; + const CANDYAPPLERED = 0xff0800ff; + const CANDYPINK = 0xe4717aff; + const CAPRI = 0x00bfffff; + const CAPUTMORTUUM = 0x592720ff; + const CARDINAL = 0xc41e3aff; + const CARIBBEANGREEN = 0x00cc99ff; + const CARMINE = 0x960018ff; + const CARMINEMP = 0xd70040ff; + const CARMINEPINK = 0xeb4c42ff; + const CARMINERED = 0xff0038ff; + const CARNATIONPINK = 0xffa6c9ff; + const CARNELIAN = 0xb31b1bff; + const CAROLINABLUE = 0x56a0d3ff; + const CARROTORANGE = 0xed9121ff; + const CASTLETONGREEN = 0x00563fff; + const CATALINABLUE = 0x062a78ff; + const CATAWBA = 0x703642ff; + const CEDARCHEST = 0xc95a49ff; + const CEIL = 0x92a1cfff; + const CELADON = 0xace1afff; + const CELADONBLUE = 0x007ba7ff; + const CELADONGREEN = 0x2f847cff; + const CELESTE = 0xb2ffffff; + const CELESTIALBLUE = 0x4997d0ff; + const CERISE = 0xde3163ff; + const CERISEPINK = 0xec3b83ff; + const CERULEAN = 0x007ba7ff; + const CERULEANBLUE = 0x2a52beff; + const CERULEANFROST = 0x6d9bc3ff; + const CGBLUE = 0x007aa5ff; + const CGRED = 0xe03c31ff; + const CHAMOISEE = 0xa0785aff; + const CHAMPAGNE = 0xf7e7ceff; + const CHAMPAGNEPINK = 0xf1ddcfff; + const CHARCOAL = 0x36454fff; + const CHARLESTONGREEN = 0x232b2bff; + const CHARMPINK = 0xe68facff; + const CHARTREUSE = 0x7fff00ff; + const CHARTREUSETRADITIONAL = 0xdfff00ff; + const CHARTREUSEWEB = 0x7fff00ff; + const CHERRY = 0xde3163ff; + const CHERRYBLOSSOMPINK = 0xffb7c5ff; + const CHESTNUT = 0x954535ff; + const CHINAPINK = 0xde6fa1ff; + const CHINAROSE = 0xa8516eff; + const CHINESERED = 0xaa381eff; + const CHINESEVIOLET = 0x856088ff; + const CHLOROPHYLLGREEN = 0x4aff00ff; + const CHOCOLATE = 0xd2691eff; + const CHOCOLATETRADITIONAL = 0x7b3f00ff; + const CHOCOLATEWEB = 0xd2691eff; + const CHROMEYELLOW = 0xffa700ff; + const CINEREOUS = 0x98817bff; + const CINNABAR = 0xe34234ff; + const CINNAMONCITATIONNEEDED = 0xd2691eff; + const CINNAMONSATIN = 0xcd607eff; + const CITRINE = 0xe4d00aff; + const CITRON = 0x9fa91fff; + const CLARET = 0x7f1734ff; + const CLASSICROSE = 0xfbcce7ff; + const COBALTBLUE = 0x0047abff; + const COCOABROWN = 0xd2691eff; + const COCONUT = 0x965a3eff; + const COFFEE = 0x6f4e37ff; + const COLUMBIABLUE = 0xc4d8e2ff; + const CONGOPINK = 0xf88379ff; + const COOLBLACK = 0x002e63ff; + const COOLGREY = 0x8c92acff; + const COPPER = 0xb87333ff; + const COPPERCRAYOLA = 0xda8a67ff; + const COPPERPENNY = 0xad6f69ff; + const COPPERRED = 0xcb6d51ff; + const COPPERROSE = 0x996666ff; + const COQUELICOT = 0xff3800ff; + const CORAL = 0xff7f50ff; + const CORALPINK = 0xf88379ff; + const CORALRED = 0xff4040ff; + const CORALREEF = 0xfd7c6eff; + const CORDOVAN = 0x893f45ff; + const CORN = 0xfbec5dff; + const CORNELLRED = 0xb31b1bff; + const CORNFLOWERBLUE = 0x6495edff; + const CORNSILK = 0xfff8dcff; + const COSMICCOBALT = 0x2e2d88ff; + const COSMICLATTE = 0xfff8e7ff; + const COTTONCANDY = 0xffbcd9ff; + const COYOTEBROWN = 0x81613cff; + const CREAM = 0xfffdd0ff; + const CRIMSON = 0xdc143cff; + const CRIMSONGLORY = 0xbe0032ff; + const CRIMSONRED = 0x990000ff; + const CULTURED = 0xf5f5f5ff; + const CYAN = 0x00ffffff; + const CYANAZURE = 0x4e82b4ff; + const CYANBLUEAZURE = 0x4682bfff; + const CYANCOBALTBLUE = 0x28589cff; + const CYANCORNFLOWERBLUE = 0x188bc2ff; + const CYANPROCESS = 0x00b7ebff; + const CYBERGRAPE = 0x58427cff; + const CYBERYELLOW = 0xffd300ff; + const CYCLAMEN = 0xf56fa1ff; + const DAFFODIL = 0xffff31ff; + const DANDELION = 0xf0e130ff; + const DARKBLUE = 0x00008bff; + const DARKBLUEGRAY = 0x666699ff; + const DARKBROWN = 0x654321ff; + const DARKBROWNTANGELO = 0x88654eff; + const DARKBYZANTIUM = 0x5d3954ff; + const DARKCANDYAPPLERED = 0xa40000ff; + const DARKCERULEAN = 0x08457eff; + const DARKCHESTNUT = 0x986960ff; + const DARKCORAL = 0xcd5b45ff; + const DARKCYAN = 0x008b8bff; + const DARKELECTRICBLUE = 0x536878ff; + const DARKGOLDENROD = 0xb8860bff; + const DARKGRAY = 0xa9a9a9ff; + const DARKGRAYX11 = 0xa9a9a9ff; + const DARKGREEN = 0x013220ff; + const DARKGREENX11 = 0x006400ff; + const DARKGREY = 0xa9a9a9ff; + const DARKGUNMETAL = 0x1f262aff; + const DARKIMPERIALBLUE = 0x00416aff; + const DARKJUNGLEGREEN = 0x1a2421ff; + const DARKKHAKI = 0xbdb76bff; + const DARKLAVA = 0x483c32ff; + const DARKLAVENDER = 0x734f96ff; + const DARKLIVER = 0x534b4fff; + const DARKLIVERHORSES = 0x543d37ff; + const DARKMAGENTA = 0x8b008bff; + const DARKMEDIUMGRAY = 0xa9a9a9ff; + const DARKMIDNIGHTBLUE = 0x003366ff; + const DARKMOSSGREEN = 0x4a5d23ff; + const DARKOLIVEGREEN = 0x556b2fff; + const DARKORANGE = 0xff8c00ff; + const DARKORCHID = 0x9932ccff; + const DARKPASTELBLUE = 0x779ecbff; + const DARKPASTELGREEN = 0x03c03cff; + const DARKPASTELPURPLE = 0x966fd6ff; + const DARKPASTELRED = 0xc23b22ff; + const DARKPINK = 0xe75480ff; + const DARKPOWDERBLUE = 0x003399ff; + const DARKPUCE = 0x4f3a3cff; + const DARKPURPLE = 0x301934ff; + const DARKRASPBERRY = 0x872657ff; + const DARKRED = 0x8b0000ff; + const DARKSALMON = 0xe9967aff; + const DARKSCARLET = 0x560319ff; + const DARKSEAGREEN = 0x8fbc8fff; + const DARKSIENNA = 0x3c1414ff; + const DARKSKYBLUE = 0x8cbed6ff; + const DARKSLATEBLUE = 0x483d8bff; + const DARKSLATEGRAY = 0x2f4f4fff; + const DARKSLATEGREY = 0x2f4f4fff; + const DARKSPRINGGREEN = 0x177245ff; + const DARKTAN = 0x918151ff; + const DARKTANGERINE = 0xffa812ff; + const DARKTAUPE = 0x483c32ff; + const DARKTERRACOTTA = 0xcc4e5cff; + const DARKTURQUOISE = 0x00ced1ff; + const DARKVANILLA = 0xd1bea8ff; + const DARKVIOLET = 0x9400d3ff; + const DARKYELLOW = 0x9b870cff; + const DARTMOUTHGREEN = 0x00703cff; + const DAVYSGREY = 0x555555ff; + const DEBIANRED = 0xd70a53ff; + const DEEPAQUAMARINE = 0x40826dff; + const DEEPCARMINE = 0xa9203eff; + const DEEPCARMINEPINK = 0xef3038ff; + const DEEPCARROTORANGE = 0xe9692cff; + const DEEPCERISE = 0xda3287ff; + const DEEPCHAMPAGNE = 0xfad6a5ff; + const DEEPCHESTNUT = 0xb94e48ff; + const DEEPCOFFEE = 0x704241ff; + const DEEPFUCHSIA = 0xc154c1ff; + const DEEPGREEN = 0x056608ff; + const DEEPGREENCYANTURQUOISE = 0x0e7c61ff; + const DEEPJUNGLEGREEN = 0x004b49ff; + const DEEPKOAMARU = 0x333366ff; + const DEEPLEMON = 0xf5c71aff; + const DEEPLILAC = 0x9955bbff; + const DEEPMAGENTA = 0xcc00ccff; + const DEEPMAROON = 0x820000ff; + const DEEPMAUVE = 0xd473d4ff; + const DEEPMOSSGREEN = 0x355e3bff; + const DEEPPEACH = 0xffcba4ff; + const DEEPPINK = 0xff1493ff; + const DEEPPUCE = 0xa95c68ff; + const DEEPRED = 0x850101ff; + const DEEPRUBY = 0x843f5bff; + const DEEPSAFFRON = 0xff9933ff; + const DEEPSKYBLUE = 0x00bfffff; + const DEEPSPACESPARKLE = 0x4a646cff; + const DEEPSPRINGBUD = 0x556b2fff; + const DEEPTAUPE = 0x7e5e60ff; + const DEEPTUSCANRED = 0x66424dff; + const DEEPVIOLET = 0x330066ff; + const DEER = 0xba8759ff; + const DENIM = 0x1560bdff; + const DENIMBLUE = 0x2243b6ff; + const DESATURATEDCYAN = 0x669999ff; + const DESERT = 0xc19a6bff; + const DESERTSAND = 0xedc9afff; + const DESIRE = 0xea3c53ff; + const DIAMOND = 0xb9f2ffff; + const DIMGRAY = 0x696969ff; + const DIMGREY = 0x696969ff; + const DINGYDUNGEON = 0xc53151ff; + const DIRT = 0x9b7653ff; + const DODGERBLUE = 0x1e90ffff; + const DOGWOODROSE = 0xd71868ff; + const DOLLARBILL = 0x85bb65ff; + const DOLPHINGRAY = 0x828e84ff; + const DONKEYBROWN = 0x664c28ff; + const DRAB = 0x967117ff; + const DUKEBLUE = 0x00009cff; + const DUSTSTORM = 0xe5ccc9ff; + const DUTCHWHITE = 0xefdfbbff; + const EARTHYELLOW = 0xe1a95fff; + const EBONY = 0x555d50ff; + const ECRU = 0xc2b280ff; + const EERIEBLACK = 0x1b1b1bff; + const EGGPLANT = 0x614051ff; + const EGGSHELL = 0xf0ead6ff; + const EGYPTIANBLUE = 0x1034a6ff; + const ELECTRICBLUE = 0x7df9ffff; + const ELECTRICCRIMSON = 0xff003fff; + const ELECTRICCYAN = 0x00ffffff; + const ELECTRICGREEN = 0x00ff00ff; + const ELECTRICINDIGO = 0x6f00ffff; + const ELECTRICLAVENDER = 0xf4bbffff; + const ELECTRICLIME = 0xccff00ff; + const ELECTRICPURPLE = 0xbf00ffff; + const ELECTRICULTRAMARINE = 0x3f00ffff; + const ELECTRICVIOLET = 0x8f00ffff; + const ELECTRICYELLOW = 0xffff33ff; + const EMERALD = 0x50c878ff; + const EMINENCE = 0x6c3082ff; + const ENGLISHGREEN = 0x1b4d3eff; + const ENGLISHLAVENDER = 0xb48395ff; + const ENGLISHRED = 0xab4b52ff; + const ENGLISHVERMILLION = 0xcc474bff; + const ENGLISHVIOLET = 0x563c5cff; + const ETONBLUE = 0x96c8a2ff; + const EUCALYPTUS = 0x44d7a8ff; + const FALLOW = 0xc19a6bff; + const FALURED = 0x801818ff; + const FANDANGO = 0xb53389ff; + const FANDANGOPINK = 0xde5285ff; + const FASHIONFUCHSIA = 0xf400a1ff; + const FAWN = 0xe5aa70ff; + const FELDGRAU = 0x4d5d53ff; + const FELDSPAR = 0xfdd5b1ff; + const FERNGREEN = 0x4f7942ff; + const FERRARIRED = 0xff2800ff; + const FIELDDRAB = 0x6c541eff; + const FIERYROSE = 0xff5470ff; + const FIREBRICK = 0xb22222ff; + const FIREENGINERED = 0xce2029ff; + const FLAME = 0xe25822ff; + const FLAMINGOPINK = 0xfc8eacff; + const FLATTERY = 0x6b4423ff; + const FLAVESCENT = 0xf7e98eff; + const FLAX = 0xeedc82ff; + const FLIRT = 0xa2006dff; + const FLORALWHITE = 0xfffaf0ff; + const FLUORESCENTORANGE = 0xffbf00ff; + const FLUORESCENTPINK = 0xff1493ff; + const FLUORESCENTYELLOW = 0xccff00ff; + const FOLLY = 0xff004fff; + const FORESTGREEN = 0x228b22ff; + const FORESTGREENTRADITIONAL = 0x014421ff; + const FORESTGREENWEB = 0x228b22ff; + const FRENCHBEIGE = 0xa67b5bff; + const FRENCHBISTRE = 0x856d4dff; + const FRENCHBLUE = 0x0072bbff; + const FRENCHFUCHSIA = 0xfd3f92ff; + const FRENCHLILAC = 0x86608eff; + const FRENCHLIME = 0x9efd38ff; + const FRENCHMAUVE = 0xd473d4ff; + const FRENCHPINK = 0xfd6c9eff; + const FRENCHPLUM = 0x811453ff; + const FRENCHPUCE = 0x4e1609ff; + const FRENCHRASPBERRY = 0xc72c48ff; + const FRENCHROSE = 0xf64a8aff; + const FRENCHSKYBLUE = 0x77b5feff; + const FRENCHVIOLET = 0x8806ceff; + const FRENCHWINE = 0xac1e44ff; + const FRESHAIR = 0xa6e7ffff; + const FROSTBITE = 0xe936a7ff; + const FUCHSIA = 0xff00ffff; + const FUCHSIACRAYOLA = 0xc154c1ff; + const FUCHSIAPINK = 0xff77ffff; + const FUCHSIAPURPLE = 0xcc397bff; + const FUCHSIAROSE = 0xc74375ff; + const FULVOUS = 0xe48400ff; + const FUZZYWUZZY = 0xcc6666ff; + const GAINSBORO = 0xdcdcdcff; + const GHOSTWHITE = 0xf8f8ffff; + const GOLD = 0xffd700ff; + const GOLDENROD = 0xdaa520ff; + const GRAY = 0x808080ff; + const GREEN = 0x008000ff; + const GREENYELLOW = 0xadff2fff; + const GREY = 0x808080ff; + const HONEYDEW = 0xf0fff0ff; + const HOTPINK = 0xff69b4ff; + const INDIANRED = 0xcd5c5cff; + const INDIGO = 0x4b0082ff; + const IVORY = 0xfffff0ff; + const KHAKI = 0xf0e68cff; + const LAVENDER = 0xe6e6faff; + const LAVENDERBLUSH = 0xfff0f5ff; + const LAWNGREEN = 0x7cfc00ff; + const LEMONCHIFFON = 0xfffacdff; + const LIGHTBLUE = 0xadd8e6ff; + const LIGHTCORAL = 0xf08080ff; + const LIGHTCYAN = 0xe0ffffff; + const LIGHTGOLDENRODYELLOW = 0xfafad2ff; + const LIGHTGRAY = 0xd3d3d3ff; + const LIGHTGREEN = 0x90ee90ff; + const LIGHTGREY = 0xd3d3d3ff; + const LIGHTPINK = 0xffb6c1ff; + const LIGHTSALMON = 0xffa07aff; + const LIGHTSEAGREEN = 0x20b2aaff; + const LIGHTSKYBLUE = 0x87cefaff; + const LIGHTSLATEGRAY = 0x778899ff; + const LIGHTSLATEGREY = 0x778899ff; + const LIGHTSTEELBLUE = 0xb0c4deff; + const LIGHTYELLOW = 0xffffe0ff; + const LIME = 0x00ff00ff; + const LIMEGREEN = 0x32cd32ff; + const LINEN = 0xfaf0e6ff; + const MAGENTA = 0xff00ffff; + const MAROON = 0x800000ff; + const MEDIUMAQUAMARINE = 0x66cdaaff; + const MEDIUMBLUE = 0x0000cdff; + const MEDIUMORCHID = 0xba55d3ff; + const MEDIUMPURPLE = 0x9370dbff; + const MEDIUMSEAGREEN = 0x3cb371ff; + const MEDIUMSLATEBLUE = 0x7b68eeff; + const MEDIUMSPRINGGREEN = 0x00fa9aff; + const MEDIUMTURQUOISE = 0x48d1ccff; + const MEDIUMVIOLETRED = 0xc71585ff; + const MIDNIGHTBLUE = 0x191970ff; + const MINTCREAM = 0xf5fffaff; + const MISTYROSE = 0xffe4e1ff; + const MOCCASIN = 0xffe4b5ff; + const NAVAJOWHITE = 0xffdeadff; + const NAVY = 0x000080ff; + const OLDLACE = 0xfdf5e6ff; + const OLIVE = 0x808000ff; + const OLIVEDRAB = 0x6b8e23ff; + const ORANGE = 0xffa500ff; + const ORANGERED = 0xff4500ff; + const ORCHID = 0xda70d6ff; + const PALEGOLDENROD = 0xeee8aaff; + const PALEGREEN = 0x98fb98ff; + const PALETURQUOISE = 0xafeeeeff; + const PALEVIOLETRED = 0xdb7093ff; + const PAPAYAWHIP = 0xffefd5ff; + const PEACHPUFF = 0xffdab9ff; + const PERU = 0xcd853fff; + const PINK = 0xffc0cbff; + const PLUM = 0xdda0ddff; + const POWDERBLUE = 0xb0e0e6ff; + const PURPLE = 0x800080ff; + const REBECCAPURPLE = 0x663399ff; + const RED = 0xff0000ff; + const ROSYBROWN = 0xbc8f8fff; + const ROYALBLUE = 0x4169e1ff; + const SADDLEBROWN = 0x8b4513ff; + const SALMON = 0xfa8072ff; + const SANDYBROWN = 0xf4a460ff; + const SEAGREEN = 0x2e8b57ff; + const SEASHELL = 0xfff5eeff; + const SIENNA = 0xa0522dff; + const SILVER = 0xc0c0c0ff; + const SKYBLUE = 0x87ceebff; + const SLATEBLUE = 0x6a5acdff; + const SLATEGRAY = 0x708090ff; + const SLATEGREY = 0x708090ff; + const SNOW = 0xfffafaff; + const SPRINGGREEN = 0x00ff7fff; + const STEELBLUE = 0x4682b4ff; + const TAN = 0xd2b48cff; + const TEAL = 0x008080ff; + const THISTLE = 0xd8bfd8ff; + const TOMATO = 0xff6347ff; + const TURQUOISE = 0x40e0d0ff; + const VIOLET = 0xee82eeff; + const WHEAT = 0xf5deb3ff; + const WHITE = 0xffffffff; + const WHITESMOKE = 0xf5f5f5ff; + const YELLOW = 0xffff00ff; + const YELLOWGREEN = 0x9acd32ff; private static $names = [ 'abbiexxxx' => self::ABBIEXXXX, @@ -1283,7 +1283,7 @@ public static function toHexString(ColorInterface $color, $expand = false) if ($rgb instanceof AlphaColorInterface) $hex .= str_pad(dechex($rgb->getAlpha() * 255), 2, '0', STR_PAD_LEFT); - else if ($hex[1] === $hex[2] && $hex[3] === $hex[4] && $hex[5] === $hex[6] && !$expand) + else if (!$expand && $hex[1] === $hex[2] && $hex[3] === $hex[4] && $hex[5] === $hex[6]) $hex = '#'.$hex[1].$hex[3].$hex[5]; return $hex; @@ -1300,16 +1300,16 @@ public static function parseHexString($string) switch ($len) { case 3: return new RgbColor( - hexdec(substr($string,0,1).substr($string,0,1)), - hexdec(substr($string,1,1).substr($string,1,1)), - hexdec(substr($string,2,1).substr($string,2,1)) + hexdec($string[0].$string[0]), + hexdec($string[1].$string[1]), + hexdec($string[2].$string[2]) ); case 4: return new RgbaColor( - hexdec(substr($string,0,1).substr($string,0,1)), - hexdec(substr($string,1,1).substr($string,1,1)), - hexdec(substr($string,2,1).substr($string,2,1)), - hexdec(substr($string,3,1).substr($string,3,1)) / 255 + hexdec($string[0].$string[0]), + hexdec($string[1].$string[1]), + hexdec($string[2].$string[2]), + hexdec($string[3].$string[3]) / 255 ); } @@ -1319,23 +1319,20 @@ public static function parseHexString($string) public static function toInt(ColorInterface $color) { + $color = $color->toRgba(); return unpack('N', pack('C*', $color->getRed(), $color->getGreen(), - $color->getBlue(), - $color instanceof AlphaColorInterface ? (int)($color->getAlpha() * 255) : 1 + $color->getBlue(), + (int)($color->getAlpha() * 255) ))[1]; } public static function parseInt($int) { - return new RgbaColor( - (int)(255 & ($int >> 24)), - (int)(255 & ($int >> 16)), - (int)(255 & ($int >> 8)), - (int)((255 & $int) / 255) - ); + list(, $r, $g, $b, $a) = unpack('C*', pack('N', $int)); + return new RgbaColor($r, $g, $b, $a / 255); } /** @@ -1357,7 +1354,7 @@ public static function parseFunctionString($string) $args = array_map('trim', explode(',', $matches[2])); if (!isset(self::$functions[$function])) - return new NonExistentFunctionNameException( + throw new NonExistentFunctionNameException( "Color function $function is not registered" ); @@ -1376,8 +1373,7 @@ public static function parseFunctionString($string) return MathUtil::convertValue($value, $arg['type'], $arg['base'], isset($arg['rotate']) && $arg['rotate']); }, $args, $argDefs); - $reflect = new \ReflectionClass($className); - return $reflect->newInstanceArgs($args); + return new $className(...$args); } /** @@ -1634,7 +1630,7 @@ public static function getDifference(ColorInterface $color, ColorInterface $comp $c1 = sqrt($a1 * $a1 + $b1 * $b1); $c2 = sqrt($a2 * $a2 + $b2 * $b2); $cx = ($c1 + $c2) / 2; - $gx = 0.5 * (1 - sqrt(pow($cx, 7) / (pow($cx, 7) + pow(25, 7)))); + $gx = 0.5 * (1 - sqrt(($cx ** 7) / (($cx ** 7) + (25 ** 7)))); $nn = (1 + $gx) * $a1; $c1 = sqrt($nn * $nn + $b1 * $b1); $h1 = self::cieLabToHue($nn, $b1); @@ -1680,17 +1676,16 @@ public static function getDifference(ColorInterface $color, ColorInterface $comp $tx = 1 - 0.17 * cos(deg2rad($hx - 30)) + 0.24 * cos(deg2rad(2 * $hx)) + 0.32 * cos(deg2rad(3 * $hx + 6)) - 0.20 * cos(deg2rad(4 * $hx - 63)); $ph = 30 * exp(-(($hx - 275) / 25) * (($hx - 275) / 25)); - $rc = 2 * sqrt(pow($cy, 7) / (pow($cy, 7) + pow(25, 7))); + $rc = 2 * sqrt(($cy ** 7) / (($cy ** 7) + (25 ** 7))); $sl = 1 + ((0.015 * (($lx - 50) * ($lx - 50))) / sqrt(20 + (($lx - 50) * ($lx - 50)))); $sc = 1 + 0.045 * $cy; $sh = 1 + 0.015 * $cy * $tx; $rt = -sin(deg2rad(2 * $ph)) * $rc; - $dl = $dl / ($kl * $sl); - $dc = $dc / ($kc * $sc); - $dh = $dh / ($kh * $sh); - $deltaE = sqrt(pow($dl, 2) + pow($dc, 2) + pow($dh, 2) + $rt * $dc * $dh); + $dl /= ($kl * $sl); + $dc /= ($kc * $sc); + $dh /= ($kh * $sh); - return $deltaE; + return sqrt(($dl ** 2) + ($dc ** 2) + ($dh ** 2) + $rt * $dc * $dh); } private static function cieLabToHue($a, $b) @@ -1698,16 +1693,16 @@ private static function cieLabToHue($a, $b) $bias = 0; - if ($a >= 0 && $b == 0) + if ($a >= 0 && $b === 0) return 0; - if ($a < 0 && $b == 0) + if ($a < 0 && $b === 0) return 180; - if ($a == 0 && $b > 0) + if ($a === 0 && $b > 0) return 90; - if ($a == 0 && $b < 0) + if ($a === 0 && $b < 0) return 270; if ($a > 0 && $b > 0) @@ -1749,10 +1744,10 @@ public static function toHtml(ColorInterface $color, $width = null, $height = nu $height, $color, $inversed, - intval($height / 4), + (int)($height / 4), $color->toLab()->toRgb(), Color::toHexString($color->toRgb()), - self::getHueRange($hue)."->".round($hue, 2), + self::getHueRange($hue).'->'.round($hue, 2), $name ? "
$name" : '' ); } diff --git a/tests/unit/ColorTest.php b/tests/unit/ColorTest.php index 353ccdf..b881163 100644 --- a/tests/unit/ColorTest.php +++ b/tests/unit/ColorTest.php @@ -3,6 +3,8 @@ namespace Phim\Test; use Phim\Color; +use Phim\Color\RgbaColor; +use Phim\Color\RgbColor; use PHPUnit\Framework\TestCase; class ColorTest extends TestCase @@ -36,4 +38,24 @@ public function testFunctionStringConversion() self::assertEquals(.9, $c->getLightness()); self::assertEquals(.223, $c->getAlpha()); } + + public function testIntegerConversion() + { + + for ($r = 0; $r < 255; $r += 50) { + for ($g = 0; $g < 255; $g += 50) { + for ($b = 0; $b < 255; $b += 50) { + for ($a = 0; $a < 1.0; $a += .1) { + + $c = new Color\RgbaColor($r, $g, $b, $a); + $c = Color::parseInt(Color::toInt($c)); + self::assertEquals($r, $c->getRed()); + self::assertEquals($g, $c->getGreen()); + self::assertEquals($b, $c->getBlue()); + self::assertEquals($a, $c->getAlpha(), '', .01); + } + } + } + } + } }