gr_record_get_point
Syntax:
gr_record_get_point(record, i);
Argument name | Type | Description |
---|---|---|
record |
Record |
The record |
i |
integer |
The point index |
Returns: (Point
) The point number i inside the recording
Description:
Get the specified point in the specified gesture record. You can use thegr_point
functions to get info about the 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);
}