Bitmap/Flood fill: Difference between revisions

Content added Content deleted
m (Automated syntax highlighting fixup (second round - minor fixes))
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,233: Line 3,233:


When the up arrow is pressed, the red square changes to blue and when the down arrow is pressed the blue square turns back to red.
When the up arrow is pressed, the red square changes to blue and when the down arrow is pressed the blue square turns back to red.
<syntaxhighlight lang="ecmascript">import "graphics" for Canvas, ImageData, Color
<syntaxhighlight lang="wren">import "graphics" for Canvas, ImageData, Color
import "dome" for Window
import "dome" for Window
import "input" for Keyboard
import "input" for Keyboard
Line 3,304: Line 3,304:


var Game = Bitmap.new("Bitmap - flood fill", 600)</syntaxhighlight>
var Game = Bitmap.new("Bitmap - flood fill", 600)</syntaxhighlight>

=={{header|XPL0}}==
=={{header|XPL0}}==
[[File:FloodXPL0.gif|right|Output]]
[[File:FloodXPL0.gif|right|Output]]