?>
GTX0 NewestRepliesHottestMy Active
NIFE UpdatesRoadmapRequests | HelpDiscuss Game Worlds


The [?*][/?*] tag ([*] with randomness)
Posted: Posted September 29th, 2018 by Xhin
Edit Report Thread Views

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
Edit Filter Quote Report

Moonray Generation
Procedural Redack


Posted September 29th, 2018 by Moonray
Edit Filter Quote Report

Redack Moonray
Generation Procedural


Posted September 29th, 2018 by Moonray
Edit Filter Quote Report

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
Edit Filter Quote Report

@Moonray: Fixed.

Posted September 29th, 2018 by Xhin
Edit Filter Quote Report
Xhin
Sky's the limit

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

Edited September 29th, 2018 by Xhin
Edit Filter Quote Report
Xhin
Sky's the limit

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
Edit Filter Quote Report
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 30th, 2018 by Xhin
Edit Filter Quote Report
Xhin
Sky's the limit

@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 30th, 2018 by Xhin
Edit Filter Quote Report
Xhin
Sky's the limit

Generations of Procedural Redack
Generations of Procedural Moonray

Posted September 30th, 2018 by LLight
Edit Filter Quote Report

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
Edit Filter Quote Report

Hmm?

Posted September 30th, 2018 by Xhin
Edit Filter Quote Report
Xhin
Sky's the limit
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
You are not forgotten, Kevin, Liane, Norma, Jason, and Garrett