Skip to content

DemonTools

Damian Monogue edited this page Feb 22, 2021 · 4 revisions

What is this thing?

This is a place for items which don't really fit in anywhere or I don't feel like there's enough to make its own module.
That being said there are definitely a few categories things call into.

Color related things

These could almost be their own module at this point, but I'm loathe to pull them out. There are functions for converting the formats for cecho, decho, etc from one to another. For example, ansi2cecho takes ansi text and formats it for cecho. Along the same lines there are:

  • cecho2decho
  • hecho2html
  • etc
  • append2decho
    • takes whatever you have copy()ed and returns it as decho.
  • displayColors
    • like showColors but in my opinion better
  • string2color
    • takes a string and generates a color based on it. Will return the same color every time for the same string.
  • and many more.

File functions

Misc crap

Examples

The API Docs contain examples for most of the individual functions, and a complete list of what is available.

Clone this wiki locally