IconColor

by Lummox JR
Create custom-colored icons and cache them to reuse as needed.
ID:91619
 
IconColor is a quick, handy library for you to use when you want to create a lot of different-colored icons.

  • Supports colorization of white-on-black or black-on-white icons, with an optional highlight added on (for a shiny or metallic appearance).

  • All icons are cached for quick access, but expire after 1-2 minutes (or a time you specify) to save memory.

  • Includes a user-overridable datum that can be used for even more complex operations, with the same handy cache feature.

  • Has useful procs for color-to-HTML or HTML-to-color conversion.

    With this library you can let players choose their own colors easily and build accessory icons to match, but much, much more is possible. The collective code in this tiny little library is insanely useful if you do anything with colorization and dynamic icons.