Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Color property of state.displayStats #19

Open
enil42 opened this issue Jan 16, 2021 · 0 comments
Open

Color property of state.displayStats #19

enil42 opened this issue Jan 16, 2021 · 0 comments

Comments

@enil42
Copy link

enil42 commented Jan 16, 2021

Enjoying the state.displayStats functionality!

The current color property accepts standard html5 color names, but I can't get it to function with either hex equivalents or the rgb() syntax.

Am I missing something obvious? If not, would it be possible to enable either the #000000 format, or the rgb() syntax (as strings in the property field is fine, or 0x hex format, or arrays of 8bit values, whatever works), so that it is easier to generate random colors?

I worked around this by creating a shared array of the names and randomly pulling by index, but I'd like something less hacky/space consuming.

If I am indeed missing something obvious, let me know, and I'll document the property on the wiki.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant