?>


The [?*][/?*] tag ([*] with randomness)
Posted: Posted September 29th, 2018 by Xhin
View Source 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
Load all posts On page: 1 2
  settingsSettings

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

Moonray Generation
Procedural Redack


Posted September 29th, 2018 by Moonray
View Source Quote Report

Moonray Generation
Procedural Redack


Posted September 29th, 2018 by Moonray
View Source Quote Report

Redack Moonray
Generation Procedural


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

@Moonray: Fixed.

Posted September 29th, 2018 by Xhin
View Source Quote Report
Xhin
Ground's what's around

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

Edited September 29th, 2018 by Xhin
View Source Quote Report
Xhin
Ground's what's around

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
View Source 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
View Source Quote Report
Xhin
Ground's what's around

@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
View Source Quote Report
Xhin
Ground's what's around

Generations of Procedural Redack
Generations of Procedural Moonray

Posted September 30th, 2018 by LLight
View Source Quote Report
Next page Load rest of pages On page: /
Rules | Report Issue | Request Feature | Roadmap Facebook Page | Discord Group
GTX0 © 2009-2019 Xhin GameTalk © 1999-2008 lives on
You are not forgotten, Kevin, Liane, Norma, Jason, and Garrett