gradient

UIImage with text problem

Hi. I have a UIImage with some text I´ve done it creating a RGB Context, after that I use drawinrect method to write the text on that context and finally I create a CGImage with CGBitmapContextCreateImage function. Then I have a black background with white text over. What I want now is to change the white pixels (text) for other value (...

SVG angular gradient

Is there a way to do an 'angular gradient' in SVG? (I don't know the official term -- it's the kind of gradient you see in color-pickers, where it varies by angle.) SVG seems to support only linear and radial gradients, but I'm thinking there might be some way to use a transform to simulate what I want. thanks! ...

Circular gradient in android

Im trying to make a gradient that emits from the middle of the screen in white, and turns to black as it moves toward the edges of the screen. As I make a "normal" gradient like this, I have been experimenting with different shapes: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gr...

Equivalant of this gradient code in ie css filter

Hi All, i need an equivalent or an alternative for this code in internet explorer using the filter method background: -moz-linear-gradient(center bottom , rgb(132, 133, 132) 0%, rgb(35, 35, 35) 49%, rgb(104, 104, 104) 100%) repeat scroll 0% 0% transparent; the most important thing in the code is the points ( 0% - 49% - 100% ) i beli...

Is it possible to combine a background image and CSS3 gradients?

I want to use CSS3 gradients for my color and then apply a background-image to apply some sort of light transparent texture. Is this possible? ...

Flex DataGrid mouseover row with gradient background

I have a DataGrid that needs to show a gradient background on mouseover of the row. I have created itemrenderers for each of the columns and the gradient shows up for the individual cell that is moused over, but not for the whole row. How do I get the whole row to show the gradient when mousing over one of the cells? ...

Using CSS gradient instead of images

Using CSS for creating gradients instead of images, does it have any negativity? For example the following code: #gradient { color: #fff; height: 100px; padding: 10px; /* For WebKit (Safari, Google Chrome etc) */ background: -webkit-gradient(linear, left top, left bottom, from(#00f), to(#fff)); /* For Mozilla/Gecko (Firefo...

How to interpolate hue values in HSV colour space?

Hi, I'm trying to interpolate between two colours in HSV colour space to produce a smooth colour gradient. I'm using a linear interpolation, eg: h = (1 - p) * h1 + p * h2 s = (1 - p) * s1 + p * s2 v = (1 - p) * v1 + p * v2 (where p is the percentage, and h1, h2, s1, s2, v1, v2 are the hue, saturation and value components of the two ...

"official"/standard CSS3 gradient

I know there is -webkit-gradient and -moz-linear-gradient. But what is the standard way of defining a gradient? Like there is: -webkit-border-radius and -moz-border-radius and the standard is meant to be border-radius. ...

Firefox Opacity (Transparancy) Gradient - Fading out an image

I have an element with content inside it. The element - with its content - should be fully opaque on the left , fully transparent on the right. Evenly graded from right to left. As the content and background it is merging into are not fixed, there is no way to make an image in advance. I am aware that gradients can be used as backgrou...

Color Code Rows in a Data Grid Based on a Gradient in VB.Net Forms

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? ...

CSS3 Gradient Borders

I'm trying to apply a gradient to a border, I thought it was as simple as doing this: border-color: -moz-linear-gradient(top, #555555, #111111); This does not work, does anyone know what the correct way to do border gradients is. Thanks. ...

Gradient fills only half the cell

Hi, How do I get the IE gradient function here in this code sample to completely fill the table cell? With the code given below, I could only get it to cover the upper half of the cell. <HTML> <HEAD> <style> <!--table .cl1 { font-family:Comic Sans MS; font-size:11.0pt; color:#800000; border-left:1.5pt solid #000000...

CSS3 transparent gradient similar with Photoshop ColorPicker

I try to create a transparent gradient with CSS. I need it for a color picker app. I have a transparent PNG I could use but its is 20kb large and would request a new HTTP request. The code should be ultralight. Here is what I've done so far: http://jsfiddle.net/78SEK/ The one above its the good one and the bottom one is made with CSS. ...

-moz-linear-gradient with PNG background over top

So Firefox supports gradient Backgrounds. Also supports multiple Background images.. So why does this not work?? background:-moz-linear-gradient(top, #5989bd,#336296), url(Active-Arrow.png) right center no-repeat; Also tried: background-color:-moz-linear-gradient(top, #5989bd,#336296); background:url(Active-Arrow.png) right center n...

Polygonal gradients with OpenGL

I'm wondering how I could create a gradient wuth multiple stops and a direction if I'm making polygons. Right now I'm creating gradients by changing the color of the verticies but this is limiting. Is there another way to do this? Thanks ...

How do I stop internet explorer's propriety gradient filter from cutting off content that should overflow?

I'm using the internet explorer gradient filter in my CSS. It was all going well until I noticed that images that are supposed to extend beyond their containers overflow:visible; are getting clipped as though the container was set to overflow:hidden; I have no idea why this would happen, or how to fix it. Can anyone help? I'm looking ...

How do I create a gradient button on an iPhone?

How can I create a button that looks like the one found in the screenshot below on an iPhone with the 3.0 SDK? It's a button that shows when connecting to a host iTunes library from the iTunes remote. Is it a case of writing a custom control or is this a stock style? ...

Drawing gradients on a UIView doesn't work on subsequent calls to drawRect:

I'm trying to debug an issue that is really stumping me. Basically, I have a UIView subclass that draws a gradient to itself in drawRect: based on colors that i provide in the init method. The problem occurs when the view draws itself again. If i call setNeedsDisplay on the view, or if say the view is removed due to an out of memory w...

iphone: re-sizing gradient after shift from portrait to landscape

In viewDidLoad, I can create a gradient with no problem: CAGradientLayer *blueGradient = [[CAGradientLayer layer] retain]; blueGradient.frame = CGRectMake(gradientStartX,gradientStartY,gradientWidth,gradientHeight); where gradientWith is device-defined as 320 or 1024 as appropriate. What I can’t do is resize it inside willRotateToInte...