Download the PHP package xu-chris/contrastcolor without Composer
On this page you can find all versions of the php package xu-chris/contrastcolor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xu-chris/contrastcolor
More information about xu-chris/contrastcolor
Files in xu-chris/contrastcolor
Download xu-chris/contrastcolor
More information about xu-chris/contrastcolor
Files in xu-chris/contrastcolor
Vendor xu-chris
Package contrastcolor
Short Description Calculates contrast color for given HEX color
License MIT
Package contrastcolor
Short Description Calculates contrast color for given HEX color
License MIT
Please rate this library. Is it a good library?
Informations about the package contrastcolor
Contrast Color for Kirby CMS 4.0
Adds toContrastColor() to calculate wether using a white or a black color for a given image color in Kirby.
1 Installation
Download and copy this repository to site/plugins/contrastcolor or use compose:
2 Blueprint for image files
For images, you can create a blueprint that adds a color field:
3 Use this plugin
Given an image with a color, you can use it like this:
Currently, it's limited for HEX color values automatically calculated
All versions of contrastcolor with dependencies
PHP Build Version
Package Version
Requires
getkirby/composer-installer Version
^1.1
php Version >=8.1.0
getkirby/cms Version ^4.0 || ^5.0
php Version >=8.1.0
getkirby/cms Version ^4.0 || ^5.0
The package xu-chris/contrastcolor contains the following files
Loading the files please wait ...