Discuss Scratch

Rumanti
Scratcher
1000+ posts

Rainbow text algorithm?:

So everyone's using rainbow text, and I decided that it would be pretty cool if I could make a program of my own, in Python. Except I don't know how to render the rainbow, I mean, how much RGB did you change per letter? I already googled but I have no idea. Help?

This might or might not belong in AT but I think this place is the best place to ask this question

:wq
MegaApuTurkUltra
Scratcher
1000+ posts

Rainbow text algorithm?:

Use HSL, loop through H, convert to RGB

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
__init__
Scratcher
1000+ posts

Rainbow text algorithm?:

MegaApuTurkUltra wrote:

Use HSL, loop through H, convert to RGB

thisandagain pls explain
ChocolatePi
Scratcher
1000+ posts

Rainbow text algorithm?:

__init__ wrote:

MegaApuTurkUltra wrote:

Use HSL, loop through H, convert to RGB
what was the point of that post
Rumanti
Scratcher
1000+ posts

Rainbow text algorithm?:

What is HSL short for? I knew but I can't remember..

:wq
ev3commander
Scratcher
500+ posts

Rainbow text algorithm?:

Rumanti wrote:

What is HSL short for? I knew but I can't remember..
hue saturation lightness

You won't be unknown anymore
My browser / operating system: Windows 7, Chrome 32.XX.XXXX.XX, Flash 12.0 (release 0)
My alternative browser / operating system: OS X 10.9.5, Safari 7, Flash 15.0 (release 0)
Reached 500+ on April 8, 2015
Rumanti
Scratcher
1000+ posts

Rainbow text algorithm?:

ev3commander wrote:

Rumanti wrote:

What is HSL short for? I knew but I can't remember..
hue saturation lightness
Thanks.
Oh, HUE. No wonder.

:wq
DigiTechs
Scratcher
500+ posts

Rainbow text algorithm?:

Rumanti wrote:

ev3commander wrote:

Rumanti wrote:

What is HSL short for? I knew but I can't remember..
hue saturation lightness
Thanks.
Oh, HUE. No wonder.

hue hue hue hue hue


Puns mixed with laughter = hue.

hehe.

Also, you need all 256^3 colours to make a true rainbow!

EDIT: Whoops. a value of 0 in a component is also valid RGB. e.e

Last edited by DigiTechs (April 19, 2015 20:37:42)


I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.

Powered by DjangoBB

Standard | Mobile