strokes-get-grid-position

strokes-get-grid-position is a compiled Lisp function in `strokes.el'.

(strokes-get-grid-position STROKE-EXTENT POSITION &optional GRID-RESOLUTION)

Map POSITION to a new grid position.
Do so based on its STROKE-EXTENT and GRID-RESOLUTION.
STROKE-EXTENT is a list ((XMIN . YMIN) (XMAX . YMAX)).
If POSITION is a `strokes-lift', then it is itself returned.
Optional GRID-RESOLUTION may be used in place of `strokes-grid-resolution'.
The grid is a square whose dimension is [0,GRID-RESOLUTION).