Download the PHP package abyrate/colorist without Composer
On this page you can find all versions of the php package abyrate/colorist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package colorist
Colorist
This package allows you to convert and manage color models.
Supported color models
- RGB (RGBA)
- HEX (HEXA)
- html colors names
Short hex code is supported (#001122, #012, #00112233, #0123)
List of names colors you can see here
In the plans
- HSL (HSLA)
- HSV (HSVA)
- CMYK
- Lab
Requirements
- PHP >= 7.1
Installation
Run command
Or add the following in your root composer.json file:
and run command:
Usage
If you change the values of any model, the rest are automatically updated
Create
Supported syntax:
- 'rgb(0,0,0)' - rgb model
- 'rgba(0,0,0,0)' - rgb model with alpha channel
- '#000000' - hex model
- '#00000000' - hex model with alpha channel
- 'orange' - name model
Range of channels:
- r, g, b - 0-255 (in the hex 00-ff)
- alpha - 0-1 (float value. In the hex 00-ff)
Get
Channels
Models
Set
Channels
Models
All versions of colorist with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package abyrate/colorist contains the following files
Loading the files please wait ....