Are they just being ignored now? Most of them are easy fixes.
Printable View
Are they just being ignored now? Most of them are easy fixes.
/noadminsonline
Shit, i deceive myself :/
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).
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.Quote:
Define a function or procedure that takes as input a string that you will convert to arbitrary "rainbow" BBCode
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.
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.
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?