Hi!
When I draw a gradient fill with OpenGL, the output looks striped, i.e. it's rendered with only about the a fourth of the possible colors.
In the render buffer all the colors appear but not in the actual output.
I'm developing on iPhone 3G running iOS4.
Any ideas?
Peter
==========
==========
GLint redBits, greenBits, blueBi...
hi there.
what is the color limit for designing a website? is it limited to 256?
will it work on all browsers if i select any color from photoshop color palette?
edit: i am talking about the color attribute in the css
...
I'm writing code in which I use MATLAB's fill command to plot 2D shapes. I can specify the fill color of the shape. However, the border line color is always black. I want the border line color the same as the fill color. How can I also specify the border line color?
...
I would like to change the background color of a ListView Item after it has been touched until a further event.
This is my code:
listviewOfStuff.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
// When clicked, show a toast with the T...
My dreamweaver CS4 will not colour the syntax for HTML5 objects. However, I have downloaded an add-on through Adobe Exchange which allows automatic suggestions for HTML5. But I would love to have the syntax colouring. Any suggestions?
...
I need to randomly generate colors for multiple items in a to do list.
(like pick up the kids from school, pick up the dry cleaning and so on)
What's the best way of doing this in ruby and also avoid colors that would be hard to see (like grey, white, and so on)?
...
I need to get the color of some pixels on the screen or from the active window, and I need to do so quickly. I've tried using win32gui and ctypes/windll, but they're much too slow. Each of these programs gets the color of 100 pixels:
import win32gui
import time
time.clock()
for y in range(0, 100, 10):
for x in range(0, 100, 10):
...
Hi. I have a WinForms program where, whenever you change your selection, the RichTextBox needs to change the colour of certain other text. In order to do this, it has to select that text, and therefore I lose my current selection.
I can save and load the SelectionStart and SelectionLength properties, but I can't keep the "selection dire...
Hi 3D guru's out there,
I'm developing a WPF application that uses 3D for vizualizing a pipe system. At a certain moment it must be possible to color those pipes according to a value on certain points. See the figure below. This shows a 2D cross section overview of an elbow and a pipe attached to each other.
On this pipe some points ...
A R/G/B/A color components can be encoded in a single uint value. But I'm confusing order of the each components. Of course, there is no law, but I want to know more regular or more compatible order to hardware acceleration API like OpenGL.
-- edit --
I'm asking about byte encoding order of each channels, not it's terms.
...
Hello all,
In my android application, I use a listview and some linear layout on wich the user can click.
Of course, I had to set the background of my LinearLayout to a xml file where the stated pressed, selected are defined:
myView.setBackgroundDrawable(
getDrawable(android.R.drawable.list_selector_background));
So no problem I s...
How to convert HSV color directly to CMYK color?
Bonus points for mentioning JavaScript library that does that.
I've seen only solutions that convert HSV to RGB and then RGB to CMYK.
...
I want to make a ComboBox filled with all the colors from System.Drawing.Color
But I can't seem to collect all the colors from that collection
I've already tried using a foreach to do the job like this:
foreach (Color clr in Color)
{
}
But all I get is an error.
So how can I loop trough all the colors?
Any help will be ...
I want to make some printf's to the windows console from my C program but want to make some of them different colours.
Anyone know if this can be done easily?
EDIT: Windows XP is my OS
...
Actually, what I want is a textview which can show the progress of something, I know progressbar in android,however,so far as I know, it can not contain any text(am I right?), so, I want to change the background color of the textview to show progress,from left to right gradually.
Is there any other way to do this ?
Thanks in advance?
...
Yoyo experts!
I have several progressbars on my Windowsform (NOT WPF), and I would like to use different colors for each one.
How can I do this? I've googled , and found that I have to create my own control. But I have no clue , how to do this. Any idea? For example progressBar1 green, progressbar2 red.
Edit: ohh, I would like to solve ...
I think this is a pretty simple thing to do, but I don't know how.. thus I'm here. I have written a simple HTML form and need to change the color of the text on a Radio Button. Anyone have any ideas on how this is done?
...
When my ListViewItem is highlighted, I want the text to turn white. How can I define this?
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:color="@color/testcolor1"/>
<item android:state_pressed="true" android:state_enabled="false" android:color="@color/testcolor2...
My problem : the color of the fill in square go from black to full blue (255) with no transition color (darkest blue, dark blue, blue...). It seems that the CGContextSetRGBStroke is additive (WTF Oo) . like if the blue was 14 and the next update I put 140 the blue will be 154 and not 140 has I set.
Is someone get that problem ?
in the ...
Hey. I'm wondering how to get pixel colour (not from a bitmap, but a game)?
I've found some solutions on stackoverflow already, but I was told C# is an easy language and getting pixels colour doesn't seem to be something extraordinary, so maybe there's simplest way than 25 lines of code that is impossible to understand for a dummie like...