Class PaintTools.pencil
The drawing pencil.
Defined in: tools.js.
Constructor Attributes | Constructor Name and Description |
---|---|
PaintTools.pencil(app)
|
Method Attributes | Method Name and Description |
---|---|
mousedown(ev)
Initialize the drawing operation.
|
|
mousemove(ev)
Perform the drawing operation, while the user moves the mouse.
|
|
mouseup(ev)
End the drawing operation, once the user releases the mouse button.
|
Class Detail
PaintTools.pencil(app)
- Parameters:
- {Painter} app
- Reference to the main paint application object.
Method Detail
mousedown(ev)
Initialize the drawing operation.
- Parameters:
- {Event} ev
- The DOM Event object.
mousemove(ev)
Perform the drawing operation, while the user moves the mouse.
- Parameters:
- {Event} ev
- The DOM Event object.
mouseup(ev)
End the drawing operation, once the user releases the mouse button.
- Parameters:
- {Event} ev
- The DOM Event object.