/tg/ Station 13 - Modules - Types — Var Details - Proc Details

universal_icon

This is intended to replace /icon, allowing rustg to generate icons much faster than DM can at scale. Construct these with the uni_icon() proc, in the same manner as BYOND's icon() proc. Additionally supports a number of transform procs (lowercase, rather than BYOND's uppercase) such as Crop, Scale, and Blend (as blend_icon/blend_color).

Vars

flat_heightSet by get_flat_uni_icon(grow = TRUE): the canvas's height in pixels.
flat_widthSet by get_flat_uni_icon(grow = TRUE): the canvas's width in pixels.
flat_x1Set by get_flat_uni_icon(grow = TRUE): the x of the canvas's lower left pixel, relative to the flattened appearance's own (1, 1).
flat_y1Set by get_flat_uni_icon(grow = TRUE): the y of the canvas's lower left pixel, relative to the flattened appearance's own (1, 1).

Procs

NewDon't instantiate these yourself, use uni_icon.
change_opacityInternally performs a color blend. Amount ranges from 0-1 (100% opacity)

Var Details

flat_height

Set by get_flat_uni_icon(grow = TRUE): the canvas's height in pixels.

flat_width

Set by get_flat_uni_icon(grow = TRUE): the canvas's width in pixels.

flat_x1

Set by get_flat_uni_icon(grow = TRUE): the x of the canvas's lower left pixel, relative to the flattened appearance's own (1, 1).

flat_y1

Set by get_flat_uni_icon(grow = TRUE): the y of the canvas's lower left pixel, relative to the flattened appearance's own (1, 1).

Proc Details

New

Don't instantiate these yourself, use uni_icon.

change_opacity

Internally performs a color blend. Amount ranges from 0-1 (100% opacity)