Yogstation 13 - Modules - Types

code/__HELPERS/icons.dm

/proc/getFlatIcon Create a single /icon from a given /atom or /image.
/proc/generate_asset_name Generate a filename for this asset The same asset will always lead to the same asset name (Generated names do not include file extention.)
/proc/icon2base64 Converts an icon to base64. Operates by putting the icon in the iconCache savefile, exporting it as text, and then parsing the base64 from that. (This relies on byond automatically storing icons in savefiles as base64)
/proc/icon_exists Checks if the given iconstate exists in the given file, caching the result. Setting scream to TRUE will print a stack trace ONCE.
/proc/get_icon_dimensions Returns a list containing the width and height of an icon file