WsWindow
is a representation of a single webpage for drawing GUI elements. It can be accessed from a web browser locally and over the network. WsWindow and WsWidgets aims to have an API as close as possible to SC's GUI classes.
WsWindow uses a node.js script to serve dynamic webpages. This script is controlled internally by the WsWindowServer class.
WsWindow
has changed after Quark version 0.1.Credits: This software was developed by Marcin Pączkowski and Michael McCrea with the support of the Center for Digital Arts and Experimental Media (DXARTS) at the University of Washington.
Starts a new web-based Window to draw GUI elements on.
title |
Window's title, used for both title text in the browser's frame/tab, as well as the portion of the address. NOTE: Please don't use characters that are not filename-safe (like #^/\ etc). Spaces are allowed and will be removed in the window's address. |
wwwPort |
Specify the port at which the page will be served. |
isDefault |
If |
suppressPosting |
If |
An instance of WsWindow
Close/free all open instances of WsWindow (useful in case of accidentally re-running a code block that instantiates new WsWindows). This will also close the node server, if running.
Free this instance of the WsWindow.
Same as -free.
Removes all GUI elements from the WsWindow (but does not close/free it).
Set/get the background color.
color |
Should be an instance of a |
If freq > 0
, the background will alternate between the two defined colors. To stop alternatting between colors, set freq
to 0
or use -background.