draw_text_color - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
NOTOC This function is part of the function set Drawing text
Draws a regular text string with top left corner placed at (x,y) position using the specified corner colors c1, c2, c3, c4 and the specified alpha. Colors are interpolated between corners.
A # symbol or carriage return chr(13) or linefeed chr(10) are interpreted as newline characters. Note that EDL string settings can allow you to use the \n escape sequence in place of the # symbol.
To change the text alignment you can use and functions.
- x, y: The coordinates to draw the text at. (0,0) indicates the top-left corner of the room.
- string: The textual string to display.
- c1: Color of the top left corner of the string.
- c2: Color of the top right corner of the string.
- c3: Color of the bottom right corner of the string.
- c4: Color of the bottom left corner of the string.
- alpha: Alpha component for the color.
none
//Draws a semi transparent and colored string
draw_text_color(100,100,"This is colorful",c_red,c_lime,c_black,c_yellow,0.5);