?>
GTX0 NewestRepliesHottestMy Active
NIFE UpdatesRoadmapRequests | HelpDiscuss Game Worlds


The [?*][/?*] tag ([*] with randomness)
Posted: Posted September 29th, 2018 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)

There are 12 Replies
Page:
1 2 Load all posts
settingsSettings

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

Moonray Generation
Procedural Redack


Posted September 29th, 2018 by Moonray
Moonray
 

Moonray Generation
Procedural Redack


Posted September 29th, 2018 by Moonray
Moonray
 

Redack Moonray
Generation Procedural


Posted September 29th, 2018 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, 2018 by Moonray
Moonray
 

@Moonray: Fixed.

Posted September 29th, 2018 by Xhin
Xhin
Nature is beautiful

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

Edited September 29th, 2018 by Xhin
Xhin
Nature is beautiful

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, 2018 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, 2018 by Xhin
Xhin
Nature is beautiful

@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, 2018 by Xhin
Xhin
Nature is beautiful

Generations of Procedural Redack
Generations of Procedural Moonray

Posted September 30th, 2018 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, 2018 by LLight

Hmm?

Posted September 30th, 2018 by Xhin
Xhin
Nature is beautiful
Load next page Load rest of pages
Reply to: The [?*][/?*] tag ([*] with randomness)
Enter your message here

Site Rules | Complaints Process | Give Feedback Facebook Page
GTX0 © 2009-2019 Xhin GameTalk © 1999-2008 lives on