Console colors (Windows)
Is it possible to print out things in different colors in Python for Windows? I already enabled ANSI.sys, but this does not seam to work. I want to be able to print one line in red, and the next in green, etc. ...
Is it possible to print out things in different colors in Python for Windows? I already enabled ANSI.sys, but this does not seam to work. I want to be able to print one line in red, and the next in green, etc. ...
Various bash commands I use -- fancy diffs, build scripts, etc, produce lots of color output. When I redirect this output to a file, and then cat or less the file later, the colorization is gone -- presumably b/c the act of redirecting the output stripped out the color codes that tell the terminal to change colors. Is there a way to ca...
Hello everyone! I have another quartz 2d (iphone) question: How to change all the colors of an ImageView to black and white and leave only red ??? DD ...
I have added the back ground color as an image to uiwebview but it is coming to the back side of web view not to the web view. The web view is always in white colored view, I can't change it. myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; myView.autoresizingMask=YES; webView = [[UIWebView alloc] init]...
I am just curious when I am resolving conflicts the red ones are the conflicts...while the yellow colour is the new code added...but then I see this orange color and white sort of blue text what do they mean? What exactly do colors in the tortoise svn while resolving conflicts signify....just out of curiosity ...
How would you get the colors from an allocated color something like... $col = imagecolorallocate($im, 255, 50, 5); //A fake function - rgbfromallocate (that I wish I knew) $rgb = rgbfromallocate($col); print $rgb['r'];//255 print $rgb['g'];//50 print $rgb['b'];//5 ...
Hi, For a filetype plug-in, I would like to define and use a default custom highlight name, e.g.: hi CsvColumn guifg=black guibg=NavajoWhite ctermfg=black ctermbg=yellow However, I would like to allow users to define their own in preference to the default, so to do something like: if <somehow or other check if 'CsvColumn' has NOT be...
I have a program where I basically need to load Rich Text from a StringBuilder. The problem is, somethimes I get a string that is 100,000 lines long (and this is a possible situation for the program), including Rtf codes and colours. The problem isn't building the string, it's when I asign the Rtf property to the StringBuilder.ToString...
I am taking an xml feed and creating an image from the text. What I would like to do it color the link text a different color than the regular text. I am looping through the text to find the link, but cannot figure out how to color that text. ...
How do I create a custom colour scale ideally in Hex? say from yellow to red, depending on the height of an object? is this a correct way to achieve this or is there a better way without having to convert it at the end?: var r:int = 255; var b:int = 0; var maxHeight:int = 52; var minHeight:int = 21; var scale:int = 255 / (maxHeight-min...
Hello. I use StackOverflow for the first time, so please be friendly and understanding. Few days ago I got interested in ActionScript. I have downloaded FlashDevelop (a free IDE) and FlexSDK4. Then I have learned the basics from some tutorials. For now I am not really developing any big project, I'm rather just doing tests. Anyway, a sol...
For study reasons i need to change the color temperature of some monitors. Basically the same what f.lux does. The problem is, i have know idea how its done. It seems so there is know Win32 API or COM API in Windows for doing this. Maybe Flux is using DirectX? Most likely its using direct the API from different graphic cards. Grate...
My 9-5 job is as a software engineer so this usually isn't a problem for me, but I do know HTML and css and feel like I can come up with a decent layout if needed... The only problem is when it comes to selecting a color scheme for sites. Usually I will just find a site that has colors that I think look nice and most likely aren't weir...
In my app i want the users to select a base colour for elements to be displayed on a calendar. From the base colour the user has selected, i need to be able to automatically set an appropriate border colour, and an appropriate text colour. When i mean appropriate i mean a darker tint or shade variation for the border Are there any jqu...
In matplotlib, line plots color cycle automatically. These two line plots would have different colors. axes.plot(x1, y) axes.plot(x2, y) However, bar plots don't. Both these data series will have blue bars. axes.bar(x1, y) axes.bar(x2, y) How do I make bar plots cycle automatically across a predefined set of colors? ...
I want to plot a 2d rect (using the rectangle function is good enough for my needs), but with a linearly interpolated color, i.e at the bottom it should be red, at the top blue, and between the two there should be the linear interpolation of the two colors. How can I do this? ...
I am trying to draw two parallel lines on the canvas, but seems like properties of the latter overwrites the former. Please suggest what could be wrong : <html> <head> <script type="application/javascript"> function draw() { var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); // draw a 10 pix...
I can convert RGB values to HSV with the following code... $r = $r/255; $g = $g/255; $b = $b/255; $h = 0; $s = 0; $v = 0; $min = min(min($r, $g),$b); $max = max(max($r, $g),$b); $r = $max-$min; $v = $max; if($r == 0){ $h = 0; $s = 0; } else { $s = $r / $max; $hr = ((($max - $r) / 6) + ($r / 2)) / $r; $hg = (...
I'd like to convert a set of pixel values from one profiled colorspace to another, without these values residing in an image file, such as (say) a list of RGB/RGBA/CMYK/etc data structures. I have python and PIL at my disposal (but I'm interested in solutions in related environments if that's what it takes). The latest PIL has very nic...
For this project I use Python's colorsys to convert RGB to HSV vice versa to be able to manipulate saturation and lightness, but I noticed that some colors yields bogus results. For example, if I take any primary colors there's no problem: However if I chose a random RGB color and convert it to HSV, I sometime gets bogus results. ...