Skip to content

rq.HudCgOpts ​

since 1.6.0

How rq.hud.cg draws a CG.

Fields ​

NameTypeDescription
src (optional)integer[]|{x: integer, y: integer, w: integer, h: integer}The part of the CG to draw, {x, y, w, h} in the CG's pixels; cut at the CG's edge.
w (optional)integerStretch what is drawn to this width, in pixels.
h (optional)integerStretch what is drawn to this height, in pixels.
alpha (optional)integerOpacity, 0 to 255. Default 255.
tint (optional)integer[]|{r: integer, g: integer, b: integer}Multiplies the colors: {128, 128, 128} is half as bright.

Used by ​

rq.hud.cg, rq.uikit.draw