Bg-gradient-interpolation

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style is part of a group of styles used to add gradient backgrounds to visual elements. This particular style sets the gradient interpolation.


Value

The bg-gradient-interpolation style accepts values "linearRGB" or "rgb". "rgb" affects the resolution more so than "linearRGB". These values are case-sensitive. The default value is not set.

bg-gradient-interpolation: rgb;


This style is cascading.


Remarks

Gradient backgrounds are implemented using a feature of Flash. More information may be found in the Flash documentation for Graphics.beginGradientFill.

In order to create a gradient background in frontal, all of the bg-gradient styles must be set:

Moreover, bg-gradient-type must be set for the particular visual element that is to have the gradient background. (All of the other styles are cascading.)


Example

This example shows the effect of the two values on roll over and roll out of the mouse.

<style><![CDATA[
	div
		{			
			bg-gradient-type: radial;
			bg-gradient-colors: [ 0x00FF00, 0x0000FF ];
			bg-gradient-alphas: [ 1, 1 ];
			bg-gradient-ratios: [ 0, 255 ];
			bg-gradient-matrix: [ 400, 400, .785, 0, 0 ];
			bg-gradient-spread: pad;
			bg-gradient-interpolation: rgb;
			bg-gradient-focal-point-ratio: .5;
			background-shape: ellipse;
		}
	div:hover
		{
			bg-gradient-interpolation: linearRGB;
		}
]]></style>
<div style="width: 400px; height: 400px; margin: auto;"/>


Can Be Applied To

This style can be applied to all visual elements in particular:

Personal tools
Get Adobe Flash player