Redraw simple drawing with the mouse


modifier keys:

shift - straight line from last mouse position

alt - rectangle from last mouse position

ctrl - oval from last mouse position

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


class methods:


*new(bounds)

bound - a Rect that defines window size and position


instance methods:

background_(col)

strokeColor_(col)

width_(val)

clear

close


instance variables:

<win

the window

<mouse

current mouse position as a Point



//--

a= Redraw.new

a.background= Color.grey

a.strokeColor= Color.red

a.width= 5

a.clear

a.close