← All packages

convert-arbitrary-string-to-color-consistently

Consistent Unique Character Name Coloring Script

Download .mpackage
Version
1
Author
demonnic
Created
14 Jun 2019
Updated
6 Feb 2025

Install from Mudlet's command line

mpkg install convert-arbitrary-string-to-color-consistently

Mudlet 4.20+ with mpkg installed

Or drag it in

Drag into MudletDrop it on the main window

Mudlet 4.11+ · click to download instead

Description

This Lua script provides a method to generate consistent, unique colors for text based on an input string. It converts a string into a random color table by using the string's ASCII values as a seed for the random number generator, ensuring that the same input always produces the same color. The package includes functions like string.tocolor() to generate colors and colorMungeEcho() to display text in the generated color.


This package was originally shared on the Mudlet Forums by the author. We’ve automatically listed it here on packages.mudlet.org so more users can discover and benefit from it. Please let us know if you have any questions or concerns - thanks for contributing to the Mudlet community!

Script (1)

Files (2)

2.7 KB unpacked

Select a script or file on the left to preview it here.