Skip to content
Script for automatic generation of one pixel alpha-transparent images for non-RGBA browsers to easily emulate RGBA colors in backgrounds
PHP CSS
Find file
Latest commit 72556a0 Mar 4, 2014 @LeaVerou Merge pull request #13 from niekdegreef/patch-2
as per previous pull request

README.markdown

rgba.php

Script for automatic generation of one pixel alpha-transparent images for non-RGBA browsers to easily emulate RGBA colors in backgrounds.

More info

Updates

First, I updated your rgba() string parsing. It's not much (literally microseconds faster), but it is faster and more system efficient. (see the included script benchmark.php for direct comparison).

I have now added all 16 of the valid HTML color names to the names list, as well as added a new syntax for loading named colors (rgba.php/colorname,alpha).

Something went wrong with that request. Please try again.