I'm using AS3 (Flash) to read SVG files and display them.
The problem is correctly displaying a linear/radial gradient.
Following is an example of a simple linear gradient from Red to Blue, in SVG.
<linearGradient id="GRADIENT_1" gradientUnits="userSpaceOnUse"
x1="107.3938" y1="515.5684" x2="105.2488" y2="428.8614"
gradientTransform="m...
Why does the following code lead to a blocky gradient? i.e. the gradient is not smooth, you can see some of the rectangles that make it up.
Is there a way to fix this?
BTW I'm running this on Vista, but I've also experienced this on a Mac as well.
var stage:Stage = Stage {
title: "Louis' Photo Wall"
width: 900
height: 600
scene: Scen...
I had an idea to programmatically generate matching color schemes however I need to be able to generate a linear gradient given a set of two colors (Hex or RGB values).
Can anyone provide me the (pseudo-)code or point me in the right direction to accomplish this task?
EDIT: I forgot to mention, but I also need to specify (or know) the ...
I'm struggling to reproduce the gradient fill of this chart. Is there tools that help testing GradientEntry properties on fills?
...
I want to use multiple backgrounds in css, which are currently supported by Firefox 3.61, Chrome/Safari, supposedly Opera10.5 (doesn't run on gnu/linux). It is working fine, however i would like to use linear-gradients as a background. it works ok for Firefox, doesn't work at all with Chrome, yet i can't figure out how to make it work fo...
I have a grid containing rows flagged with different priorities. I want to color the high priority rows red, low ones blue, etc.
I'd like to set the shade based on a mathmatically calculated gradient rather than arbitrarily assigning colors to specific priorities. How can I extract a single color from a single point along gradient?
...
Consider rect has fill of linearGradient with two color with rotation of 112 degree.
I am following below steps to make it alive
Make gradient vertically for that set the values for coordinates
x1=0, y1=, x2=, y2=
Using transform list values in gradientTransform.
gradientTransform="rotate(angle, shapeWidth/2, shapeHeight/2)".
but t...
In the webkit and moz vendor specific properties for CSS gradients, you can specify the height of the gradient. Is there something similar for IE? For example:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aaaaaa', endColorstr='#ffffff'); /* IE */
background: -webkit-gradient(linear, left top, left 3, from(#aaaaaa),...
Say I have a liner gradient as shown:
QLinearGradient linearGrad(QPointF(0, 0), QPointF(0, 100));
linearGrad.setColorAt(1, Qt::red);
linearGrad.setColorAt(0.5, Qt::yellow);
linearGrad.setColorAt(0, Qt::green);
How to get the color of the point QPointF(0, 28.5) in this gradient?
Indeed I want to have this kind of color distribution to...
Consider the following svg snippet:
<linearGradient id="redgradient" x1="0%" x2="0%" y1="0%" y2="100%">
<stop offset="0%" stop-color="#ffffff"/>
<stop offset="100%" stop-color="#ff0000"/>
</linearGradient>
<rect x="0" y="0" width="400" height="400" fill="url(#redgradient)"/>
Is there a way of specifying that the colours should...
Can I combine 3 gradients into one -webkit-gradient? I want to have an image that has a radial gradient for the "background" and "middle-ground" and a linear gradient for the "foreground". Is this possible?
...
I've discovered to my great annoyance, that once I move a color gradient or some other complex style to a resource dictionary it is out of Expression Blend's Visual Studio WPF Designer Thingy's jurisdiction and must be edited in XAML. I have no issues with working in XAML except that it is more time intensive than a designer. So my que...