Background Colour - Alpha Channel
Posted: Fri Sep 13, 2013 5:26 pm
Hi hi!
Now this is an age-old problem with AF, and is the main reason I have never really used it for more than a few occasional places where I could overcome the problem by using a Specific colour as background.
The problem is shown in the screengrab. You will see that the area around the box is white - setting FFFFFF in the plugin settings.
There is no way to make this transparent. And the problem is that 99% of the stuff I do would need that background to be transparent.
So - my question is this: Is it possible to update AF to use the Alpha Layer format of colourisation that has been around in CSS for quite some time. That is: RGBA. It would mean giving the user TWO ways of inputting colours everywhere, and wouldn't just apply to backgrounds.
So you would use a dropdown to select either "RGB Value (Format 00252FF)" or "RGBA Value (Format 155,155,155,0.5 where the last number is between 0.0 and 1.0)"
This means I can have "255,0,0,0.0" and affect a fully transparent background colour.
From http://www.w3schools.com/cssref/css_colors_legal.asp
RGBA Colors
RGBA color values are supported in IE9+, Firefox 3+, Chrome, Safari, and in Opera 10+.
RGBA color values are an extension of RGB color values with an alpha channel - which specifies the opacity of the object.
An RGBA color value is specified with: rgba(red, green, blue, alpha). The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque).
Example
p
{
background-color:rgba(255,0,0,0.5);
}
Now this is an age-old problem with AF, and is the main reason I have never really used it for more than a few occasional places where I could overcome the problem by using a Specific colour as background.
The problem is shown in the screengrab. You will see that the area around the box is white - setting FFFFFF in the plugin settings.
There is no way to make this transparent. And the problem is that 99% of the stuff I do would need that background to be transparent.
So - my question is this: Is it possible to update AF to use the Alpha Layer format of colourisation that has been around in CSS for quite some time. That is: RGBA. It would mean giving the user TWO ways of inputting colours everywhere, and wouldn't just apply to backgrounds.
So you would use a dropdown to select either "RGB Value (Format 00252FF)" or "RGBA Value (Format 155,155,155,0.5 where the last number is between 0.0 and 1.0)"
This means I can have "255,0,0,0.0" and affect a fully transparent background colour.
From http://www.w3schools.com/cssref/css_colors_legal.asp
RGBA Colors
RGBA color values are supported in IE9+, Firefox 3+, Chrome, Safari, and in Opera 10+.
RGBA color values are an extension of RGB color values with an alpha channel - which specifies the opacity of the object.
An RGBA color value is specified with: rgba(red, green, blue, alpha). The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque).
Example
p
{
background-color:rgba(255,0,0,0.5);
}