1
голосов
2ответов
1007 просмотров

iphone change fill color of a shape drawn in context

I have drawn an enclosed shape using CGContext and filled a default color. I want to change the fill color on some event, how can I do that? There is only one enclosed shape in the context.

0
голосов
4ответов
1755 просмотров

css Gif white background stroke?

Does anyone know how to fix the white background stroke in the css that you see when a transparent gif is overlayed on a colour?

3
голосов
5ответов
2990 просмотров

Color names allowed in HTML/CSS

I know and use a few color names like 'white', 'blue', 'red', is there a complete list of colors allowed in HTML/CSS ?

3
голосов
2ответов
1101 просмотров

Extract list of supported HTML or X11 colour names and their RGB values using javascript

There are places to get lists of HTML or X11 colour names and their RGB equivalents. For instance we can find that "Aquamarine" is "#70DB93". Presumably the browsers know the mappings. Is there a way to use javascript to interrogate the browser and get a list of which colour names it supports ...

497
голосов
7ответов
421226 просмотров

OS X Terminal Colors

I'm new to OS X, having just gotten a Mac after working with Ubuntu Linux for some time. Among the many things I'm trying to figure out is the absence of colors in my terminal window - like the ones that are shown (on Linux) when running ls -la or git status... I just can't figure out how to act...

0
голосов
3ответов
1797 просмотров

How to continuously fade a BitmapData to a certain color?

I'm drawing stuff on a bitmapData and I need to continuously fade every pixel to 0x808080 while still drawing (its for a DisplacementMapFilter)... I think this illustrates my problem: http://www.ventdaval.com/lab/grey.swf The simpler approach I tried was drawing a semi-transparent grey box on i...

6
голосов
2ответов
16115 просмотров

PHP - Replace colour within image

I hope someone can help, I have made a script that masks images... however it is reliant on a colour to mask with ( 'green screen' style). The trouble is if the image that I am masking contains that colour it is ruined. What I am looking to do is prior to masking the image replace any occurance...

3
голосов
2ответов
14034 просмотров

Convert integer into a color, starting at red and cycling through

How do you convert an integer to a usable color (for PictureBox.CreateGraphics)? The color should start at red, cycle to orange, yellow, etc. and come all the way back around to red again. This is in vb.net. If I cannot do this, how do I use PictureBox.CreateGraphics with a hex code instead of ...

7
голосов
5ответов
3892 просмотров

CMYK + CMYK = ? CMYK / 2 =?

Suppose there are two colors defined in CMYK: color1 = 30, 40, 50, 60 color2 = 50, 60, 70, 80 If they were to be printed what values would the resulting color have? color_new = min(cyan1 + cyan2, 100), min(magenta1 + magenta2, 100), min(yellow1 + yellow2, 100), min(black1 + black2, 100)? ...

7
голосов
1ответов
1476 просмотров

Quartz 2D: CGColorSpaceCreateLab: Purpose of range parameter?

In Quartz 2D, the CGColorSpaceCreateLab() function takes a range parameter defined as follows: CGFloat range[4]: An array of 4 numbers that specify the range of valid values for the a* and b* components of the color space. The a* component represents values running from green to red, and the ...

0
голосов
1ответов
507 просмотров

How to combine red and green channels into a blue channel?

I'm porting a DOS game to AS3. I need a way to specifically format my sprite files. I need to know how to take a 256-colour paletted PNG, and save a (presumably) 32-bit PNG, where all three colour channels are summed to the blue channel only - so all colour information is contained only on the b...

1
голосов
2ответов
3000 просмотров

How to remove existing background color of text when highlighting?

I'm writing a small utility in Python that does some pattern matching of text. Text that matches the pattern the user has entered gets highlighted yellow. I'm achieving this using a Tkinter Text widget, and setting up a tag on the Text widget named "match" that gives any text with the tag nam...

0
голосов
7ответов
1248 просмотров

Regex for matching ARGB Color (-44830298)

i'm trying to get Color information that i've stored in a text file and then use that color as the forecolor for a label. BUT, at run time when i click the button to do it, it doesnt give me any error messages or anything. the code i have is below: MatchCollection lines = Regex.Matches(File.Rea...

1
голосов
1ответов
399 просмотров

Font properties

I have a text file with the following info in it, on a single line: -16777216 Arial 7.8 Bold (-16777216 is the color of the text in ARGB format).. How would I be able to set this text as the font properties for a label at runtime? I have googled this but couldn't find anything related specif...

5
голосов
4ответов
858 просмотров

Selection Coloring Algorithm

I'm trying to generate a color that could highlight an item as "selected" based on the color of the current object. I've tried increasing some of the HSB values, but I can't come up with a generalized formula. Particularly, I have problems when working with white (a brighter white doesn't look mu...

36
голосов
11ответов
28291 просмотров

Generate lighter/darker color in css using javascript

let say I have #404040 color code. How to generate a new color code which is either lighter or darker by 20% (or given x%)? I need this for generate a hover color in a dynamic site (which color is changing using theme). Therefore it is not possible to use another class or :hover with predefined c...

0
голосов
1ответов
61 просмотров

UI communication colors

I'm creating message boxes with different states. One for success, one for error. I've using colors ala http://www.flickr.com/photos/jannejanne/2492207808/sizes/o/ But I came up with 2 colors too many. Blue and Yellow. Does anyone know any good patterns/best practices for when to use these sta...

5
голосов
5ответов
703 просмотров

How should I implement an application-wide color-code in a WinForm application?

I'm building a WinForms application, and I'm using specific colors on most controls. I do that sometimes from the WinForms designer, and sometimes directly into my code. I got a static class somewhere looking like that : public static class MyColors { public static Color DarkGreen ...

12
голосов
7ответов
322 просмотров

What is the best strategy for using color scheming tools for non-designer developers?

When making color choices during web design, I use free online tools such as ColorSchemer in which I: click on a color use the colors it suggests for me This makes my designs look better than if I chose colors freely out of a color wheel. But beyond this simple approach, what are are the bes...

0
голосов
2ответов
1329 просмотров

jquery sorting dom elements based on its css("color")

What you can see on following page is a list of usernames in some random order. I want to use jquery to sort them in this order: red blue green purple black http://www.arvag.net/test/sorting/ This is what i did so far: <script type="text/javascript"> $(function() { var admin =...

10
голосов
3ответов
4107 просмотров

If Form is dark, then Text on form should be Light

I have 60% Opaque form. And when the user changes the color of the form, sometimes (depending on the chosen color), they cannot see the text on the form anymore because it too-closely resembles the color of the form. So, I'm trying to do maybe an if/switch to see if the chosen BackColor of the fo...

4
голосов
3ответов
3447 просмотров

Change textColor of UINavigationBar "prompt"?

Any (supported) way of doing this? IIRC it usually switches over by itself to a white color at some point when using a "darker than X" tintColor, but we seem to be just on the edge with our scheme.

274
голосов
11ответов
138939 просмотров

Colorized Ruby output to the terminal

Using Ruby, how can I perform background and foreground text colorization for output in the terminal? I remember, when programming Pascal we all used to write our own textcolor(…) procedures to make our small educational programs look more pretty and presentational. How would I go about coding ...

6
голосов
4ответов
22741 просмотров

How to remove a black background from PDF text before printing

I have a PDF with a black background and white/yellow text. How can I remove the black background before printing and invert the color of the text?

9
голосов
1ответов
3333 просмотров

How does Windows change Aero Glass color?

I'm using Windows 7 RTM and I wonder how the control panel is able to update the Aero Glass color so smoothly without restarting the DWM (uxsms). DwmSetColorizationColor isn't working any more...

1
голосов
2ответов
1764 просмотров

Flex 3 loading background color

During loading of a Flex 3 built application, it always shows this blue-grayish background color. I've tried a handful of tips, building preloaders etc, and all that works, but even before the preloaders kick in, that blue-grayish color is displayed. I've tried lots of ways to change it, like edi...

4
голосов
4ответов
3150 просмотров

linearRGB conversion to/from HSL

Does anyone know of a way to get HSL from an linearRGB color (not an sRGB color)? I've seen a lot of sRGBHSL conversions, but nothing for linearRGBHSL. Not sure if it is fundementally the same conversion with minor tweaks, but I'd appreciate any insight someone may have on this. Linear RGB is no...

24
голосов
5ответов
23890 просмотров

Need to change the color of table view selection

I need to change the default blue color selection of table view to some custom color. Is there any way to do that. Help me

460
голосов
54ответов
630906 просмотров

Random color generator

Given this function, I want to replace the color with a random color generator. document.overlay = GPolyline.fromEncoded({ color: "#0000FF", weight: 10, points: encoded_points, zoomFactor: 32, levels: encoded_levels, numLevels: 4 }); How can I do it?

1
голосов
4ответов
1162 просмотров

Putting colors on an image in C#

I've used this piece of code to put an image in a variable. What I wanna do is draw dots on it on various places and then save the result. What I do is I open a dialog to select the file and to check if it worked, I put it in a picturebox. Using winforms offcourse. Using Visual Studio 2008 Profe...