gr_point_get_x

Syntax:

gr_point_get_x(point);
Argument name Type Description
point Point The point

Returns: (real) The X coordinate of the specified point

Description:

Returns the X coordinate of the specified point

Example:

// This code will manually draw each point of the recorded gesture
var size = gr_record_points_number(record);
for (var i = 0; i < size; i++) {
var point = gr_record_get_point(record, i);
var xx = gr_point_get_x(point);
var yy = gr_point_get_y(point);
draw_circle(xx, yy, 3, false);
}