Drawing Functions

From ENIGMA
Revision as of 23:04, 8 September 2017 by RobertBColton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This article is an overview of drawing related functions. ENIGMA provides all the same functions as Game Maker for rendering but also implements its own. For example, advanced curve functions can be found below as well. There is information on 3d functions and 3D graphics.

There are also drawing functions with the following Resource Functions.

General

Basic Shapes

Curves

Curve drawing demonstration

Bézier function example
Bézier function example
Spline function example
Spline function example
Spline continues function example
Spline continues function example

ENIGMA has some great curve drawing functions. It can draw both Bézier curves, as well as cubic Hermite splines. The major difference between them is that splines will go through the points. Bézier curves will interpolate between them and usually don't go through them.

Notice: Most of these modes are not very useful in drawing curves. It is recommended just to use pr_linestrip. Pattern can be added to curves with draw_set_line_pattern function.