The Canvas Widget
Create a canvas for drawing with the
Canvas method. The Canvas widget uses a
coordinate system with the x coordinate increasing as you move right,
and the y coordinate increasing as you move down (i.e., the y
coordinate is mathematically upside-down). The x and y coordinates are
specified in pixels by default.
The standard configuration options that apply to
Other options are:
The distance considered “close enough” to an item to be judged to be within it. Default is 1 pixel.
Whether to limit the canvas to the scroll region. Default is
-scrollregion => [
x, y, w, h]
Sets the region that the user is allowed to scroll. The option is a list reference that conveniently corresponds to the return value of the
The distance to use for scrolling in the x direction.
The distance to use for scrolling in the y direction.