Graphics :: Drawing
Here you will find scripts for drawing various kinds of shapes and effects.
Scripts for drawing sprites, backgrounds, surfaces, and text can be found in their respective sections.
- draw_arc(x1,y1,x2,y2,x3,y3,x4,y4,precision)
- Draws an arc of an ellipse mimicking draw_arc() from GM5.
- draw_chord(x1,y1,x2,y2,x3,y3,x4,y4,outline,precision)
- Draws a chord of an elliptical disk mimicing draw_chord() from GM5.
- draw_crosshair(x,y)
- Draws a pair of horizontal and vertical lines, spanning the room and intersecting a given point.
- draw_crosshair_ext(x,y,col1,col2,col3,col4)
- Draws a pair of horizontal and vertical lines, spanning the room and intersecting a given point.
- draw_crosshair_width(x,y)
- Draws a pair of horizontal and vertical lines of a given width, spanning the room and intersecting a given point.
- draw_crosshair_width_ext(x,y,width,col1,col2,col3,col4)
- Draws a pair of horizontal and vertical lines, spanning the room and intersecting a given point.
- draw_curve(x1,y1,x2,y2,direction,detail)
- Draws a curve between two points with a given starting angle.
- draw_pie(x1,y1,x2,y2,x3,y3,x4,y4,outline,precision)
- Draws a sector of an elliptical disc, mimicking draw_pie() from GM5.
- draw_rectangle_dashed(x1,y1,x2,y2,size)
- Draws a rectangle made of dashes of a given size.
- draw_rectangle_dashed_color(x1,y1,x2,y2,col1,col2,col3,col4,size)
- Draws a rectangle made of dashes of a given size.
- draw_rectangle_inverted(x1,y1,x2,y2)
- Draws a rectangle which inverts the colors beneath it.
- draw_roundrect_ext(x1,y1,x2,y2,outline,radius,precision)
- Draws a rectangle with rounded corners.