This wiki is out of date, use the continuation of this wiki instead

Draw curve

From FenixWiki

Jump to: navigation, search


[edit] Definition

INT draw_curve ( <INT x0> , <INT y0> , <INT x1> , <INT y1> , <INT x2> , <INT y2> , <INT x3> , <INT y3> , <INT smoothness> )

Draws a curve starting at the point (x0,y0), ending at the point (x1,y1) and influenced by the points (x2,y2) and (x3,y3) with a certain level of smoothness.

[edit] Parameters

INT x0 - The x coordinate of the starting point of the curve.
INT y0 - The y coordinate of the starting point of the curve.
INT x1 - The x coordinate of the first influence point of the curve.
INT y1 - The x coordinate of the first influence point of the curve.
INT x2 - The x coordinate of the second influence point of the curve.
INT y2 - The x coordinate of the second influence point of the curve.
INT x3 - The x coordinate of the end point of the curve.
INT y3 - The y coordinate of the end point of the curve.

[edit] Returns

INT : DrawID

-1 - Error.
1 - If drawn after drawing_map().
 !-1&&!1 - The DrawID of the drawing created.


Drawing Functions
Delete_draw() • Draw_box() • Draw_circle() • Draw_curve() • Draw_fcircle() • Draw_line() • Draw_rect() • Drawing_alpha() • Drawing_color() • Drawing_map() • Drawing_stipple() • Drawing_z() • Move_draw() •
Personal tools