Redraw:
Filter:
Classes (extension) | Red > redTools

Redraw : Object
ExtensionExtension

simple drawing with the mouse
Source: Redraw.sc

Description

The GUI takes the following modifier keys…

shiftstraight line from last mouse position
altrectangle from last mouse position
ctrloval from last mouse position

(try to use alt and ctrl in combination with shift)

Class Methods

Redraw.new(bounds)

Arguments:

bounds

A Rect that defines window size and position.

Inherited class methods

Instance Methods

.win

The window.

.mouse

Current mouse position as a Point.

.clear

Clears the drawing.

.close

Close the window if open.

.width = val

Set Pen stroke width.

.strokeColor = col

Set Pen stroke colour.

.background = col

Set drawing background colour.

Inherited instance methods

Examples