snap_to_grid

photonforge.snap_to_grid(value)

Snap the value to the current grid.

Parameters:

value – A single value, 2D coordinate or sequence.

Returns:

Value snapped to the grid.

See also

config.grid