GTX0 successfully deep-cleanedNewpost / newreply revamp Part 1Easy easy post formatting
GTX0 AnnouncementsFeedbackHelp | SandboxNewest Posts | Replies | Hottest
NIFE UpdatesRoadmapRequests | HelpDiscuss Game Worlds


The [?*][/?*] tag ([*] with randomness)
Posted: Posted September 29th by Xhin

This tag:

[?*]Procedural[/?*] [?*]Generation[/?*]

Produces this:

Procedural Generation

It works similar to the [*][/*] tag but the color varies depending on what's inside the tag (always the same each time)

settingsOptions
There are 12 Replies

Is it consistent within an entire thread or just within individual posts/replies.

Moonray Generation
Procedural Redack


Posted September 29th by Moonray
Moonray
 

Moonray Generation
Procedural Redack


Posted September 29th by Moonray
Moonray
 

Redack Moonray
Generation Procedural


Posted September 29th by Moonray
Moonray
 

Cool.

Could you make it so that it only reuses a colour once it has exhausted the list of colours first?

Posted September 29th by Moonray
Moonray
 

@Moonray: Fixed.

Posted September 29th by Xhin
Xhin
The planets are aligned

Well now it's tied to the order you put the words in , which isn't cool.

Edited September 29th by Xhin
Xhin
The planets are aligned

i built something that hashes the text input into hexadecimal and converts the last six characters into a hex color. something like that would appear "random" but also be deterministic.

Posted September 29th by EN
EN

This one converts the text into hexadecimal and then runs a modulo on it based on the amount of colors. So similar concept.

Posted September 29th by Xhin
Xhin
The planets are aligned

@Moonray:

I switched [?*][/?*] back to how it was working before so the same text always generates the same color...

however, you can do this:

[?*#][/?*] which will make it distinct like your request:


[?*]Redack[/?*] [?*]Moonray[/?*]
[?*]Generation[/?*] [?*]Procedural[/?*]


Redack Moonray
Generation Procedural



[?*#]Redack[/?*] [?*#]Moonray[/?*]
[?*#]Generation[/?*] [?*#]Procedural[/?*]


Redack Moonray
Generation Procedural

Edited September 29th by Xhin
Xhin
The planets are aligned

Generations of Procedural Redack
Generations of Procedural Moonray

Posted September 30th by LLight

Generations of Procedural Redack
Generations of Procedural Moonray
Generations of Procedural Redray
Generations of Procedural Moonack

All the same! :o

Goodness, what have we done?

Edited September 30th by LLight

Hmm?

Posted September 30th by Xhin
Xhin
The planets are aligned
Reply to: The [?*][/?*] tag ([*] with randomness)
Enter your message here

Site Rules | Complaints Process | Register Complaint Facebook Page
GTX0 © 2009-2017 Xhin GameTalk © 1999-2008 lives on