Hey: If you come up with any custom formats you think should be added officially, or have any other issues with bugs or imposed limitations, feel free to contact me (Nelg).
Colors
This tool supports the following style of CSS color codes: hex codes (#f00), named colors (red), RGB (rgb(255,0,0), and HSL (hsl(0,100%,50%)).
It also supports the following features (case sensitive!):
- rainbow - inserts colors of rainbow between red and blue
- rainbowfull - same as before, but adds magenta which is good for stacking rainbows or shifting back to red.
- repeat(#, colors...) - repeat any number of color codes. Example:
repeat(4, red, blue)
- orgb(r, g, b) - RGB offset from the previous color.
- ohsl(h, s%, l%) - HSL offset from the previous color. Good for making rainbows. Note that this tool works in RGB internally, so may be prone to error here. Example:
red,ohsl(50,0%,0%)
- rainbow2 - shortcut for
repeat(5,ohsl(60,0%,0%)) (aka another technically incorrect rainbow)
- $LEN - Number of characters contained in the input text. Example:
repeat($LEN,red,green)
Custom Output
In addition to the predefined outputs, you can output the color codes using these variables (not case sensitive!):
- $R, $G, $B - outputs integer color from 0 to 255
- $dR, $dG, $dB - outputs decimal color from 0.0 to 1.0
- $iR, $iG, $iB - outputs integer color from 0 to 15
- $xR, $xG, $xB - outputs hexadecimal color from 0 to f
- $H, $S, $L - outputs hue, saturation, brightness of color from 0.0 to 1.0
- $dH, $dS, $dL - outputs hue from 0-360, brightness from 0-100, value from 0-100
- $hex - hex code of rrggbb from 000000 to ffffff
These can all be mixed and matched as necessary, with the following text output:
- $txt - standard text output
- $xtxt - text output with (limited) protection for HTML
Note that right now, this tool natively works in Armagetron color codes.
It will only attempt to work around its limitations (seperating 0 and x, disallowing dark/highlighted colors), and does not attempt to workaround the limitations of any other formats unless otherwise mentioned by the text format above.