gradient

jQuery Corner+Gradient

I have one div element .box It's width is 200px and height is 300px First I want to make it 's corners round. I do it with following: $('.box').corner('round 10px'); Then I want to add gradient to it. SO it will have rounded corners + gradient. I try following: $('.box').gradient({ topcolor: '#000000', bottomcolor: '#ffffff', horizonta...

Can you animate gradients using Quartz in an iPhone?

Hi, I am new to iPhone development and am currently toying with recreating a charting tool I developed for Silverlight. Currently I'm using a gradient to 'fill' a rectangle representing a bar within a chart. Is it possible to animate this gradient so it changes colour when a user touches the bar within the chart. I have looked through...

gradient for selected row in asp.net gridview

Can a gradient color be assigned to the selected row? I tried but it is being assigned at the cell level so in each n every cell i have the start color and the end color. ...

Issue with Transparency

Hi, We have an issue with transparency. While writing an image to Context with gradient, transparency (which is unwanted) is getting applied. We are not sure why this has been getting applied. We need the context to be "ONLY" with Gradient but not with "TRANSPARENCY". Attaching the snippet of the code for your reference. - (UIImage *)...

Applying a color gradient on a line using ActionScript 3 / Flash

Hi, I am trying to construct a line dynamically, with a start and end gradient. I want to avoid using a GradientBox, as the lines are dynamic. All I want to do is have the line start red, end blue. This code does not work though :( myLine = new Shape(); myLine.graphics.lineStyle(2); myLine.graphics.lineGradientStyle(GradientType.LINEAR...

Calculate the gradient for an histogram in c++

I calculated the histogram(a simple 1d array) for an 3D grayscale Image. Now I would like to calculate the gradient for the this histogram at each point. So this would actually mean I have to calculate the gradient for a 1D function at certain points. However I do not have a function. So how can I calculate it with concrete x and y value...

How to create gradient mesh in code (C++)?

So How to create gradient mesh in code (C++)? I need some Open Source Lib... and tuts on how to use it... ...

using quartz to draw temperature map

Hello, I'm developing an iPhone app where I have a route that I display on a map. The route is made up of a bunch of waypoints and for each waypoint I have the (air) temperature at that spot. I would like to color the route according to the temperature values. Now I was wondering if I could somehow map my temperature scale, ranging from...

Possible to do a full screen transparent gradient effect via CSS?

Hi, so I'm wondering if this is possible. I've got this concept where I have a small tilable texture used as a background. Is it set to repeat at both x and y. In my Photoshop design I've just added a shadow layer on top which goes from 100% transparent and down to about 40% transparent in a grayish color. Which together with the back...

CSS rounded corners and gradient border

I am in the process of dicing and slicing a psd layout from a designer. The design is based on the 960 grid system and consists of multiple boxes (a 960px box for the top menu, 2 460px boxes for the 2 content areas, a 220pixel and a 720 pixel for another content setup option etc). All these boxes are based on a solid background color (bo...

RGB gradient based on percentage of file loaded

I'm working on my first Flash project, and for my preloader I'd like to do a really simple gradient based on the percentage loaded. The preloader says "77% loaded...", where the number 77 is a dynamic text instance called percentLoaded. I'd like the textColor of percentLoaded to change on a gradient from #000000 to #FFFFFF, in gray-sca...

Elaborate css for a background image gradient

I folks. This might be more of a design question but I thought I'd give it a whirl in case someone had some masterful CSS techniques I could use. If not, I'll brace myself for the onslaught of down-voting and nay saying! You can see the logo holder here has a background image with a nice gradient to the right, and is obviously semi-tra...

How do I draw this exact gradient on the iPhone?

The gradient in question is Figure 8-5 from the Quartz 2D Programming Guide, "A radial gradient that varies between a point and a circle". I'm trying to build a CGGradient object (not a CGShading object, which might be the problem) like so: CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB(); CGFloat colors[] = { 0,...

How to implement a conical/cone/circular gradient in WPF

I would like to recreate a conical/circular gradient in WPF. I've looked into inheriting System.Windows.Media.GradientBrush - which can be inherited from - but uses a lot of internal plumbing to get the job done (inherited from System.Windows.Media.Brush) Any ideas on how to achieve this would be appreciated (preferrably without resorti...

Positioning Layers and text gradients with css

I'm a CSS newbie trying to get some text gradients going on. I tried this code here but it didn't work for me, most likely because the h1 object is nested within a #header div. I imagine there's something to do with layers that I don't know about. Either I get a gradent block that is in front of everything or it's not appearing at all. ...

How Do I Draw A Slightly Diagonal Gradient Fill in PHP?

I found the following function can draw a vertical gradient in PHP. However, many web designers like their gradients to have an upper-left lightsource to make the gradient look more realistic. So, how do I change the angle slightly on the vertical gradient, making it into a slight gradient? I don't want to completely overdo it, but just ...

Programatically Rewinding Movie Clip Removes Gradient Mask (FlashCS4/AS3)

i'm trying to created a auto-rewind movie using a gradient mask in Flash CS4 using AS3. the only problem i'm having is when the movie clip reaches the end of the time line, the maskingLayerMC looses it's gradient. so while the movie rewinds, the maskingLayer has no gradient. it regains it's gradient when the playhead reaches the first...

How do I get a rainbow color gradient in C#?

I'd like to have an enumeration of Colors based on the rainbow colors (red... yellow... green... blue...). I see basically two ways to do that: Create a lookup table containing some important reference colors and interpolate between these. I don't like this idea at all. Apply some more or less fancy math. Probably less, but I don't qu...

adding colors to a Gradient Panel in java?

How to adding new colors to our gradient panel in java? ...

How to create a vertical color gradient (or any other angle besides a flat horizontal gradient)

Hey everyone, my first time trying to draw a multi-color gradient in actionscript 3. So I got this code from the help docs, but I can't seem to get a vertical gradient, whatever formula or number I use for rotate, it stays stuck on the default horizontal gradient :( You can view my gradient here My Code: You can see in the traces the...