|
|
|
NavigationPersonal tools |
Edje Gradient Part
NOTE: this section is incomplete and sometimes just wrong, take with a considerable amount of salt. The gradient type displays a color spectrum defined in the spectra block in many directions and shapes. See also: Edje Part, Edje Group, Edje Data Collection, Edje.
part {
name: "gradient";
type: GRADIENT;
description {
state: "default" 0.0;
gradient {
spectrum: "name";
rel1{
}
rel2{
}
}
fill {
origin {
}
size {
}
}
rel1 {
}
rel2 {
}
}
}
[edit] Gradient
gradient {
spectrum: "spectrumName";
type: "gradientType";
rel1 {
}
rel2 {
}
}
The gradient block defines the necessary properties to display the spectrum.
If either rel1 or rel2 is present in the gradient block of a linear gradient, these will override any angle/origin/size specified in the fill block ('spread' is still honored). Depending on the gradient type, this block rel1 and rel2 might have different effects. [edit] Fill
fill {
spread: 0-1;
angle: 0-1;
origin {
}
size {
}
}
The fill block defines the way the gradient fills the container, it works in the same way than image [edit] Gradient types[edit] LinearThis is the default gradient type, when the gradient block rel1 and rel2 are set, it traces a vector between them and display the colors in following that angle. [edit] RadialThis gradient type draws the spectrum as a series of concentric rings centered by the origin property of the fill block. |