WP Manifestindependent plugin directory
manifest / developer / aricolor

ariColor

A PHP library for color manipulation in themes and plugins

by Aristeides Stathopoulos · github.com/progressplanner/aricolor · website

61stars
9forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/progressplanner/aricolor/archive/refs/heads/master.zip

Declares an update source (aristath/ariColor), so updates arrive through the plugin's own updater.

From the readme

ariColor A PHP library for color manipulation in themes and plugins ariColor is a PHP library that will hopefully help WordPress theme developers do their job easier and more effectively. Installation It does not provide you with methods like lighten(), darken() etc. Instead, what it does is give you the ability to create these yourself with extreme ease by giving you all the properties of a color at hand, and allowing you to manipulate them however you see fit. Example: First, let's create our color object: If you don't like using that method you can write your own proxy function: Notice that we used auto as the mode. If you use auto or completely omit the 2nd argument, ariColor will auto-detect it for you. You can use rgb, rgba, hsl, hsla, or even arrays as colors. Then you can use it like this: Say you want to get the values for red, green, blue: Or you want to get the hue, saturation, lightness or even luminance of your color: Scenario 1: You have an option where users can define the background color for their . In order to make sure the text is always readable, you can either give them a 2nd option to set the text color, or auto-calculate it for readability.

Read the full README on GitHub →

Releases

TagPublished
v1.1.2 Sep 15, 2020
1.1.1 Jul 24, 2020

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.