0340
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 =...")
- 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