Suggestions
971 views · started by Souleater ·
/noadminsonline
Shit, i deceive myself :/
The Unintelligible wrote:Get on msn, foo.
The fuck is this shit. ಠ_ೃ
GAMEchief wrote:The fuck is this shit. ಠ_ೃ
Magic.
http://forum.logicalgamers.com/programming-challenges-puzzles/46084-challenge-rainbow-bbcode-generator.html#post361344
The aforementioned was not rainbow.
You should use HSL to generate the colors, and then just convert it to RGB when outputting as hex.
Hue is beautifully simple. Just scale it by whatever-max-hue-is-i-think-360 divided by the number of characters in the string (minus the number of spaces if you want).
You should use HSL to generate the colors, and then just convert it to RGB when outputting as hex.
Hue is beautifully simple. Just scale it by whatever-max-hue-is-i-think-360 divided by the number of characters in the string (minus the number of spaces if you want).
GAMEchief wrote:The aforementioned was not rainbow.
You should use HSL to generate the colors, and then just convert it to RGB when outputting as hex.
Hue is beautifully simple. Just scale it by whatever-max-hue-is-i-think-360 divided by the number of characters in the string (minus the number of spaces if you want).
Define a function or procedure that takes as input a string that you will convert to arbitrary "rainbow" BBCode
My algorithm isn't systematic. As in, it doesn't conform to a standard "rainbow" algorithm like what you're describing. I wasn't trying to accomplish that. After some thought, I figured I'd try that one as well but it wasn't my objective.
The criteria I defined was to create something to arbitrarily generate rainbow BBCode. Which by definition is something that consists of its 7 colors.
Artificial's solution was an example of the algorithm you're referring to.
Thomas is busy. Patience.
The Unintelligible wrote:My algorithm isn't systematic. As in, it doesn't conform to a standard "rainbow" algorithm like what you're describing. I wasn't trying to accomplish that. After some thought, I figured I'd try that one as well but it wasn't my objective.
The criteria I defined was to create something to arbitrarily generate rainbow BBCode. Which by definition is something that consists of its 7 colors.
Artificial's solution was an example of the algorithm you're referring to.
Because it's the best algorithm!
Either way, I'd use HSL.
Just pick seven random hues, then increment from one to the other by (color2 - color1) / (total_string_characters / total_colors_7)
I think that's right anywho, on the most layman of examples that is obviously not optimized for for loop use yet.
GAMEchief wrote:Because it's the best algorithm!
Either way, I'd use HSL.
Just pick seven random hues, then increment from one to the other by (color2 - color1) / (total_string_characters / total_colors_7)
I think that's right anywho, on the most layman of examples that is obviously not optimized for for loop use yet.
I agree that it looks better. I realize that. I wasn't trying to accomplish that at all. Like I said, on hindsight I realized I should have done it that way because when I first created mine my initial thoughts were "wow this is so hideous in contrast to this."
Thanks, but you also don't need to describe the algorithm to me. It seems simple enough. You're creating an iterator based on this formula.
Rainbow Color Algorithm? - Yahoo! Answers
I don't intend on trying this anytime soon.
Thomas most likely can't do much of anything, cause Arty restricted FTP access to only him.
KainCantResetHisPass wrote:Thomas most likely can't do much of anything, cause Arty restricted FTP access to only him.
Last time I talked tto Thomas about getting some extra rights when I was an S-Mod, he got full access to everything but databases.
I'm on now. Had to go through a headache that almost made me have to delay uni a year. Should be back on track now tho. So what'd I miss?