0340

From GTAMods Wiki
Revision as of 18:32, 11 February 2016 by Spaceeinstein (talk | contribs) (Created page with "thumb|0340 in action {{OpCode | games = {{Icon|t}} | command = SET_<wbr>TEXT_<wbr>COLOUR | description = Sets the color of the text | syntax1 =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
0340 in action

GTA III Vice City San Andreas SET_TEXT_COLOUR


Description
Sets the color of the text
Syntax
0340: set_text_draw_color [int1] [int2] [int3] [int4]
Parameter
[int1]
Red, between 0 and 255
[int2]
Green, between 0 and 255
[int3]
Blue, between 0 and 255
[int4]
Alpha, between 0 and 255

This opcode sets the color and opacity of the text, which defaults to the RGBA color of (225,225,225,255) (or #E1E1E1FF in hexadecimal, ). The color and opacity does not affect the black text shadow beneath the text. The lead image on this page shows text displayed in Vice City. The colors in order of descent are default color and opacity, red with full opacity, yellow with full opacity, and yellow with half opacity.

Keywords

set, draw, text, color, colour