RedJWindow:
Filter:
Classes (extension) | Red > redUniverse

RedJWindow
ExtensionExtension

wrapper for JSCWindow
Location: NOT INSTALLED!

Description

Adding some functionality to the standard Window class. Requires RedVector and SwingOSC. (This class can also be used with osx-swing. Copy the class file RedJWindow.sc into the osx folder.)

Class Methods

Inherited class methods

Instance Methods

.draw

Alias for UserView: -drawFunc.

.play

Starts an internal thread on the AppClock updating at rate fps.

.stop

Stop internal thread.

.resize

Change window size while keeping x and y position. The argument can also be a RedVector

.background

Set window background. Alias for view.background_

.isOpen

Boolean.

.mouse

Returns a RedVector for mouse x and y position. Click&drag in window to set position.

.isPlaying

If the window is updating.

.userView

Access to the embedded view.

.animate

Start automatic refresh. Default at 60fps (although swingosc seems capped at 50).

.frame

Current frame.

.frameRate

Current average framerate.

Inherited instance methods

Examples