Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 Help Me ! » Brain challenge: allocate #00ff00 (green) to another RGB colornumber » 2011-12-21 23:59:54

FanOfBMS432
Replies: 2

Hi all,

I'm looking for a solution for my problem. I really hope someone can help me out / point me in the right direcion here.

The problem: an application (coded in C++) has hardcoded which colors it can use. Everything drawn by the code is green (#00FF00). The developers choose to include all combinations of FF and 00. So, red, yellow, magenta, green, etc. These one can choose from.

However, I need to have a customized color in this application (0, 255 , 191).

So the problem to solve is: I need a hex assigned value (#00FF00, green) to represent another color, but without changing this hexcode! I want this hexcode (#00FF00) to represent the color: 0, 255, 191)

So, before the app starts reading all variables and declares all constants, a want to redesign the colorpalette it uses, so whenever the hexcode #00FF00 is called, it returns the RGB value of 0, 255, 191

Any clues?
Fan

Board footer

Powered by FluxBB