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.
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)¶CalcPoints
(self, Canvas)¶