Hardware Man
New Member
- Joined
- Apr 10, 2013
- Messages
- 40
I have a list of 20 different colors whose RGB values I'd like to hard code into a function. I'd be passing 2 values to the function ("highNum" and "lowNum"). My goal is to calculate the percentage increase between those 2 numbers and return a color based on the result (with the idea being that the larger result gets the brighter color filled into the target cell).
I'm pretty much at the end of my rope in figuring out how to pass the value of the color between the sub and the function, and could really use a hand!
I'm fine with using either the RGB value or the hex value to pass the color (whichever is easiest).
I'm pretty much at the end of my rope in figuring out how to pass the value of the color between the sub and the function, and could really use a hand!
I'm fine with using either the RGB value or the hex value to pass the color (whichever is easiest).