You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple function to set color and alpha at the same time, to shorten the drawing code a bit.
/// @func draw_set_color_ext(color,alpha)/// @desc Sets the drawing color and alpha./// @arg {Constant.Color} color The color to set./// @arg {Real} alpha The alpha to set (from 0 to 1).
function draw_set_color_ext(_color, _alpha) {
gml_pragma("forceinline");
draw_set_color(_color);
draw_set_alpha(_alpha);
}
If someone has a better name suggestion, feel free to share. ^^
The text was updated successfully, but these errors were encountered:
This and the companion function draw_set_text_align are planned for the upcoming release. If someone has a nicer function name for setting both color and alpha please share; if no other suggestion is made, I'll go with draw_set_color_ext.
A simple function to set color and alpha at the same time, to shorten the drawing code a bit.
If someone has a better name suggestion, feel free to share. ^^
The text was updated successfully, but these errors were encountered: