|
||
Drawing shapesThere is a whole collection of functions available to draw different shapes. Also there are functions to draw text (see next section). You can only use these in the drawing event of an object; these functions in general don't make any sense anywhere else in code. Realize that collisions between instances are determined by their sprites (or masks) and not by what you actually draw. The following drawing functions exist that can be used to draw basic shapes.
draw_clear(col) Clears the entire room in the given color (no alpha blending). Most of the above functions use the color and alpha setting that can be changed with following functions.
draw_set_color(col) Sets the drawing color to be used from now on for drawing primitives. A whole range of predefined colors is available:
c_aqua The following functions can help you to create the colors you want.
make_color_rgb(red, green, blue) Returns a color with the indicated red, green, and blue components, where red, green and blue must be values between 0 and 255. The following miscellaneous functions exist.
draw_getpixel(x, y) Returns the color of the pixel corresponding to position (x,y) in the room. This is not very fast, so use with care.
|
||
|
||
|
You can also read this manual on one single long page (± 1.5 mb)
Also available in: ![]() Download helpfile
|
||





