Questions tagged [color]

Color is the visual perception of light by humans into named categories, commonly "red," "green," and "blue."

Filter by
Sorted by
Tagged with
311 votes
14 answers
27k views

How can I find an optimum set of colors for 10 players?

I want to give each of 10 players a unique identifying color. Is there an optimum set of colors for this? How do I create one? Every set I've come up with contains colors that are too similar. ...
David Thielen's user avatar
41 votes
5 answers
2k views

Best Way to allow players to "Dye" images without losing color quality?

I am creating a 2.5D isometric (2D images) game. I want the players to be able to "dye" their armor, clothes, and other things. I find that grayscaling everything leads to losing out on some of the ...
Carter81's user avatar
  • 878
37 votes
4 answers
11k views

Should I use "conventional" colors to represent item rarity?

I'm making a new RPG that has loot. In fact, a majority of the game is based around loot. It's going to have colored borders to denote the rarity of the loot as it's drawn. WoW uses Grey, White, ...
DasBeasto's user avatar
  • 648
36 votes
11 answers
2k views

What is the best way to avoid colorblind issues?

About 5-10% of males have some form of colorblindness. What's the best way to ensure you are not turning away 5-10% of your male population from your game? Just to note colorblindness does not mean ...
Pyrolistical's user avatar
33 votes
8 answers
7k views

Do complementary shadows make sense for games?

According to color theory, shadows work better if they don't use pure blacks or grays, but instead use a color that's complementary to the color of the object casting that shadow. That is, if you ...
congusbongus's user avatar
  • 14.8k
30 votes
5 answers
23k views

Given a RGB color x, how to find the most contrasting color y? [duplicate]

Possible Duplicate: Making a symbol appear on any colour I have to mark a certain item in a way that will make it stick-out in the background. I need it to be surrounded with the color that ...
AturSams's user avatar
  • 10.5k
29 votes
4 answers
73k views

How can I include vertex color information in .OBJ files?

The .obj files I export are missing data for vertex colors. Is there a way to include color information in the .obj file? If not, what are the alternatives?
Mina Wissa's user avatar
23 votes
6 answers
5k views

Algorithm to modify a color to make it less similar than background

I'm creating a demo of 20 balls bouncing each other, with a background filled with a solid color. Color for each ball is chosen randomly with randint(0, 255) for ...
MestreLion's user avatar
16 votes
7 answers
4k views

What does the term "channel" mean when used in regards to computer graphics?

I was studying terminology for computer graphics, and this statement came up that confused me. The image can have alpha channels for transparency. I tried searching for the meaning of the term "...
Stync's user avatar
  • 311
14 votes
3 answers
3k views

How do I simulate color blindness for accessibility testing?

Is there an application I can download (or some configuration of Windows, or something) that will let me see how my game will appear to users with different color-blindnesses? There are already good ...
ashes999's user avatar
  • 11.3k
13 votes
8 answers
35k views

How to Color.Lerp between multiple colors?

I have found it rather difficult to find a solution to this in the Unity documents. Color.Lerp(Color a, Color b, float t) is a function that gradually changes a ...
Zee's user avatar
  • 932
11 votes
1 answer
975 views

How to achieve light that changes color mid-way?

I thought of creating light sources, and some colored windows. Now, the windows are semi-transparent. How could I make it so that when the light (say, pure white) hits the glass and continues through ...
manabreak's user avatar
  • 1,048
10 votes
6 answers
1k views

What's a good alternative to colored tiles to account for color blindness?

I have a game with tiles. Each tile is a number, and each number is one of six colors. The color is important to the game play, and I want to make the game available to those who are color blind. ...
fbrereto's user avatar
  • 423
10 votes
2 answers
4k views

Is white the best base color to start with when planning to shade sprites within Unity?

I'm looking into prototyping a game in Unity which will consist of solid square sprites / tiles. I figure I can represent different types of objects with different colors for each of the tiles in the ...
SpartanDonut's user avatar
  • 2,937
9 votes
4 answers
10k views

Colorize with a given color a texture

I have a texture and I want to "colorize" it with a given color, lets say cyan (#00ffff) or purple (#800080). What I want to do, ...
Pacha's user avatar
  • 439
8 votes
4 answers
2k views

Bright colors versus duller colors

I was talking to a friend the other day and we got onto the discussion about colors in videogames, relating to actual in-game graphics/art. He told me that even though it's easy to see things when ...
Shiester's user avatar
  • 1,119
8 votes
2 answers
1k views

Making a symbol appear on any colour

I'm developing an RPG/roguelike-style game. Instead of having maps like: ......... ......... ....@.... ...h..... Oh look, a dwarf. I was having solid background ...
PrettyPrincessKitty FS's user avatar
8 votes
1 answer
3k views

Pixel Picking vs Raycasting

I was recently introduced to a way of picking in OpenGL known as pixel picking (or color picking). From my understanding, how this is done is that the scene is rendered to the back buffer with a ...
DarkDestry's user avatar
  • 1,431
7 votes
2 answers
587 views

2-components color model

RGB is the natural color model for OpenGL. But a lot of other color models exist. For example, CMY(K) for printers, YUV for JPEG, the little cousins YCbCr and YCoCg, HSL & HSV from the 70's, and ...
Cyan's user avatar
  • 335
7 votes
2 answers
2k views

How do I change a sprite's color?

In my rhythm game, I have a note object which can be of a different color depending on the note chart. I could use a sprite sheet with all the different color variations I use, but I would prefer to ...
Mr_Qqn's user avatar
  • 392
7 votes
4 answers
3k views

What colour space or mixing algorithm should I use for "watercolor-like" colour mixing in-game?

I want to make a game where the player creates potions out of coloured ingredients, and I think the RGB or HSV colour spaces would be confusing for players expecting (red + yellow = orange, red + blue ...
Hypergardens's user avatar
7 votes
1 answer
909 views

Cycling through colors with the same brightness

Ok. So I have a game I am working on with a bunch of colored particles. Each of them gets their own color however they are all close to a specific shade. To explain that better I am using the HSV ...
J.Doe's user avatar
  • 289
6 votes
1 answer
200 views

Excluding Background from Color Picking

I've implemented picking based on color coding, but I don't want the background color to be pickable. Is there any way in openGL (2.x) to exclude the background color? For some reason, doing glClear(...
Grieverheart's user avatar
  • 1,205
5 votes
6 answers
3k views

Colors for villains, good guys and neutrals

I am looking for 4-6 color schemes for three factions, good, evil and neutral (in a space strategy if that matters). I'd like the player to choose which side they want to play and each side will have ...
MartinTeeVarga's user avatar
5 votes
3 answers
11k views

How do I create a color picker with variable hue and saturation?

I am trying to create a Color Picker similar to that of MS Paint. Unfortunately, I can't figure out the algorithm for saturation. This is what my current algorithm creates. Anytime I try to perform ...
Lemmings20's user avatar
5 votes
4 answers
3k views

Fading to transparent with premultiplied alpha

I'm fading an object from fully visible to transparent, but the fade darkens the object. this.Color = Color.Lerp(Color.White, Color.Transparent, weight); The ...
Wouter's user avatar
  • 281
5 votes
1 answer
10k views

draw a box with transparent background (outline) in unity

I am trying to draw an outline (a transparent box with colored border essentially) I have the following code adapted from here ...
Pavan K's user avatar
  • 163
5 votes
3 answers
4k views

UI Text Won't Change Color in Unity 5

In Unity 5 on Windows 10, I try to change the text color from the Inspector and in scripts, but the color won't change. Here are some screenshots of my Text objects open in the inspector, with there ...
jasper's user avatar
  • 51
5 votes
1 answer
310 views

Coloring Terrain By Steepness Issue

Also I am attempting to implement some simple coloring by "slope" onto my planet and to do this I take the normal mapped normal "y" component and subtract it from one. Yet I am getting some strange ...
multifractal's user avatar
4 votes
2 answers
10k views

What is the color value of daylight?

This is a very short question. I want to implement ambient light in the color of daylight from the sun. What is the color value of sun light?
danijar's user avatar
  • 5,681
4 votes
2 answers
776 views

Programatically replace color gradient on sprite

Say I have the following image: I want to tint the yellow parts on this sprites shoulder/arms by a random color. In other questions on this site, they suggest using a chroma key and replacing the ...
Benixo's user avatar
  • 669
4 votes
2 answers
4k views

Palette reduction to pre-defined palette

I'm writing a bunch of GLSL effects for fun, but I can't wrap my head around this. Basically, I want to reduce a texture's palette into a pre-defined set of colors. For example, a post-processing ...
manabreak's user avatar
  • 1,048
4 votes
1 answer
2k views

When should I use color keying vs PNG transparency?

SDL (and other toolkits) can use color keying to make a certain color in an image transparent. Alternatively, you could load a PNG image that supports transparency. When should I use which?
user44066's user avatar
4 votes
2 answers
3k views

What is the benefit of YCbCr?

Why would someone want to store images as YCbCr instead of RGB in RAM or in GPU memory?
user68854's user avatar
  • 197
4 votes
2 answers
2k views

Color key or transparent images?

Ive seen a lot of people make sprite sheets magenta instead of transparent and then they make the magenta transparent using code. What is best (Performance) to use transparent images or use a color (...
user avatar
4 votes
1 answer
4k views

What makes a shader function with a LineRenderer?

A LineRenderer has both Material and Color properties. But many shaders do not work, ie the line will not respect the Color property, or the line will show black (regardless of the materials having ...
Jethro's user avatar
  • 309
4 votes
2 answers
251 views

How do I implement 2d color animation like in this video?

link on youtube at 1:38 - 1:42, purple things (I think this is particle system) that come off from the moon. Someone else had decompiled the game in the past, and the assets shows that the dark blue ...
Rei's user avatar
  • 165
4 votes
1 answer
2k views

How to reduce color space in a post-processing material in Unreal Engine 4

I'm trying to get an old-school Quake 1 look going in UE4. I am currently using this blueprint in order to get a retro style large pixel filter. In game (might need to zoom in to see the difference)...
Devan Buggay's user avatar
4 votes
1 answer
818 views

cost of texture change vs color change

How would I go about determining the difference in cost between changing the render color of an object every frame vice changing the texture (same sheet, just changing the source rectangle) every ...
David Torrey's user avatar
4 votes
2 answers
3k views

Why is enabling GL_FRAMEBUFFER_SRGB making the colours brighter?

My understanding of gamma correction is as follows: We want to do colour math in linear space so we can lerp etc. between colour values and get the results we expect. But human eyes don't have a ...
Ryan1729's user avatar
  • 714
4 votes
2 answers
2k views

Best way to blend colors in tile lighting? (XNA)

I have made a color, decent, recursive, fast tile lighting system in my game. It does everything I need except one thing: different colors are not blended at all: Here is my color blend code: ...
ben's user avatar
  • 117
4 votes
1 answer
200 views

Problem building a color grading map

I am trying to build a default color grading map into a 1024x32 RenderTarget. Here is my shader code: ...
cubrman's user avatar
  • 1,551
4 votes
2 answers
2k views

Gradient Banding in Unity Android

In an Android game, I have a gradient background that changes color over time. This was achieved by creating a 1x2 pixel texture in code, and stretching it over a large quad with bilinear filtering. ...
eclmist's user avatar
  • 1,153
3 votes
2 answers
3k views

Implementing a color picker [closed]

I'm making a paint program using applets in Java, and I want to create some sort of color palette where the colors blend into each other, similar to this: However, I'm having trouble understanding ...
kikiotsuka's user avatar
3 votes
4 answers
4k views

OpenGL gradient banding on Samsung Galaxy S2 Android phone

I've got a live wallpaper out on the market which uses OpenGL to render some basic shapes and a flat plane. The simple lighting creates a gradient effect across the plane, which looks fine on most ...
Josh's user avatar
  • 193
3 votes
1 answer
7k views

How do I get the object color?

I want to get the object color, when I start the game. How do I do this? ...
user43474's user avatar
  • 537
3 votes
2 answers
390 views

Does GPU mipmapping assume the texture is gamma corrected?

I have been reading the Real Time Rendering book and stumbled upon this paragraph: For textures encoded in a nonlinear space (such as most color textures), ignoring gamma correction when ...
tuket's user avatar
  • 475
3 votes
1 answer
166 views

How to paint regions of a map with visually different colors

I'm learning some concepts of procedural content generation. Now I'm generating a map with regions and each region has a diferent colors generated in a pseudo-random way. My problem right now is ...
Killrazor's user avatar
  • 395
3 votes
1 answer
2k views

Programmatically set color of Box2D body's sprite or image

In my basic Cocos2D + Box2D iPhone app I have a bunch of circular Box2D bodies. I'd like to change the color of the circles programatically. What's the easiest way to do this? So far I'm just ...
MrDatabase's user avatar
  • 1,951
3 votes
1 answer
1k views

How can I build an accurate 15-bit Highcolor RGB palette

I want to recreate an accurate version of a 15-bit RGB color palette (PC Highcolor, SNES, Playstation 1), storing each color from the palette as a standard 6 digit hex code. With each color component ...
baseten's user avatar
  • 171

1
2 3 4 5