ds_grid_multiply_disk


描述

This function will take all the values in a given disc-shaped region of the ds_grid, and multiply each one by the given amount.

NOTE: This function will only work with real numbers, not strings.


语法:

ds_grid_multiply_disk(index, xm, ym, r, val);

参数 描述
index 栅格的索引
xm 栅格内圆盘区域x位置。
ym 栅格内圆盘区域的y位置。
r 栅格中圆盘的半径
val The value to multiply the cells within the disk with.


Returns:

N/A(无返回值)


例如:

ds_grid_multiply_disk(mygrid, 5, 5, 5, 2)

The above code will take all the values found within the circular grid area and multiply each one by 2.