canvas.fill(color)
Flood fill the entire canvas with a specific color.
Parameters: color An RGB color value as an integer value.
Example: //Flood fill the canvas with a red background value function fillWithRed(name){ var canvas = sb.getCanvas(name); canvas.fill(0xff0000); }