slot.alpha¶
Type:
numberSee also: slot, slot.color
Overview:¶
Represents the alpha (transparency) channel of the slot’s color (0–1). 1.0 is fully opaque, while 0.0 is fully transparent.
Example:¶
local slot = hero.slots[1]
slot.alpha = 0.8 -- 80% opacity
print("Slot alpha:", slot.alpha)