sb.redraw
sb.redraw(x, y, width, height, [channel])
Force a screen redraw. channel is an optional parameter. Specifying a x,y,width,height of 0 will result in a full screen refresh occurring.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | The x position of the redraw bounding box event |
y | number | The y position of the redraw bounding box event |
width | number | The width position of the redraw bounding box event |
height | number | The height position of the redraw bounding box event |
channel | string | An optional Storyboard IO channel to send the event on, if not specified the event is added directly into the current Storyboard application event queue if neither the environment variable or global GREIONAME variable are set. |
Returns
| Type | Description |
|---|---|
boolean | Returns: true for success, false for failure. |
Example
function CBRedraw() {
sb.redraw(25, 50, 100, 100)
}
function CBSendRedraw() {
var success, error = sb.redraw(25, 50, 100, 100, "my_channel");
if(success == false){
print(error)
}
}