An example of a Grid Object – it is set on the FloatCanvas with one of:
FloatCanvas.GridUnder = Grid
FloatCanvas.GridOver = Grid
It will be drawn every time, regardless of the viewport.
In its _Draw method, it computes what to draw, given the ViewPortBB of the Canvas it’s being drawn on.
Initialize self. See help(type(self)) for accurate signature. |
|
DotGrid
¶An example of a Grid Object – it is set on the FloatCanvas with one of:
FloatCanvas.GridUnder = Grid
FloatCanvas.GridOver = Grid
It will be drawn every time, regardless of the viewport.
In its _Draw method, it computes what to draw, given the ViewPortBB of the Canvas it’s being drawn on.
__init__
(self, Spacing, Size = 2, Color = "Black", Cross=False, CrossThickness = 1)¶Initialize self. See help(type(self)) for accurate signature.
CalcPoints
(self, Canvas)¶