paintWorldOverlay method
void
paintWorldOverlay()
inherited
Paints under the overlay's rebased world matrix, worldToScreen ∘ translate(origin), so coordinates handed to canvas must be world − origin (Ruling 03-3). scale is the camera's, for stroke widths.
Colours come from paper, as in paintOverlay.
Implementation
@override
void paintWorldOverlay(
Canvas canvas, Vector2 origin, double scale, PaperPalette paper) {
bandPaint.color = paper.preview;
bandPaint.strokeWidth = kPreviewStrokePixels / scale;
paintRubberBand(canvas, origin, scale);
}