Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 Before February 2015

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Random world background and rainbow fading background

var color = String.Format("#{0:X6}", random.Next(0x1000000)); connection.Send("say", "/bgcolor " + color);

It's a painfully annoying background when it switches constantly.

Last edited by Metatron (Oct 10 2014 5:12:26 am)


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#2 Before February 2015

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Random world background and rainbow fading background


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#3 Before February 2015

Buzzerbee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,570

Re: Random world background and rainbow fading background

That's super long lol. I have a code snippet that I borrowed online and just interpreted for EE, so I can show you that.


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#4 Before February 2015

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Random world background and rainbow fading background

BuzzerBee wrote:

That's super long lol. I have a code snippet that I borrowed online and just interpreted for EE, so I can show you that.

Please do


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#5 Before February 2015

ewoke
Member
Joined: 2015-02-20
Posts: 412

Re: Random world background and rainbow fading background

string color = "";  int red = 0, green = 0, blue = 0;                                              //blue-aqua                                 blue = 255;                                 for (green = 0; green < 256; green ++)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor "+color);                                     Thread.Sleep(10);                                 }                                 //aqua-green                                 green = 255;                                 for (blue = 255; blue > 0; blue--)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 //green-red                                 blue = 0;                                 for (red = 0; red < 256; red++)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 //red-yellow                                 red = 255;                                 for (green = 255; green > 0; green--)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 //yellow                                 green = 0;                                 for (blue = 0; blue < 256; blue++)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 blue = 255;                                 //                                 for (red = 255; red > 0; red --)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }

i converted rgb to html


if you can read this....good for you

Offline

#6 Before February 2015

Buzzerbee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,570

Re: Random world background and rainbow fading background

Squad wrote:
BuzzerBee wrote:

That's super long lol. I have a code snippet that I borrowed online and just interpreted for EE, so I can show you that.

Please do

Add me on TeamViewer: "BuzzerBee"


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#7 Before February 2015

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Random world background and rainbow fading background

ewoke wrote:
string color = "";  int red = 0, green = 0, blue = 0;                                              //blue-aqua                                 blue = 255;                                 for (green = 0; green < 256; green ++)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor "+color);                                     Thread.Sleep(10);                                 }                                 //aqua-green                                 green = 255;                                 for (blue = 255; blue > 0; blue--)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 //green-red                                 blue = 0;                                 for (red = 0; red < 256; red++)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 //red-yellow                                 red = 255;                                 for (green = 255; green > 0; green--)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 //yellow                                 green = 0;                                 for (blue = 0; blue < 256; blue++)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }                                 blue = 255;                                 //                                 for (red = 255; red > 0; red --)                                 {                                     color = ColorTranslator.ToHtml(Color.FromArgb(red, green, blue));                                     conn.Send("say", "/bgcolor " + color);                                     Thread.Sleep(10);                                 }

i converted rgb to html

Mine used to have rgb built in.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#8 Before February 2015

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: Random world background and rainbow fading background

Not sure if y'all resolved the giant codes
but yeah
http://rainbowcoding.com/how-to-create- … avascript/

They have a cool HSL to RGB thing goin' on... probably would cut down a bit.
And make a lot more sense.
#yolo

Offline

#9 Before February 2015

Cyral
Member
From: United States
Joined: 2015-02-15
Posts: 2,269

Re: Random world background and rainbow fading background

Don't do the whole raise green, lower red, etc etc thing. Loop from 0 to 360 (Hue), and convert HSV to RGB (Or HEX in this case), rather than looping from 0 to 255 in different cases for each color.


Player Since 2011. I used to make bots and stuff.

Offline

#10 Before February 2015

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: Random world background and rainbow fading background

^yep
hsv != hsl? (oh well)

Offline

Koya1423758774202658

Board footer

Powered by FluxBB

[ Started around 1714860464.3608 - Generated in 0.048 seconds, 12 queries executed - Memory usage: 1.55 MiB (Peak: 1.73 MiB) ]