Skip to content

Commit

Permalink
Update getting_started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bp74 committed Nov 14, 2014
1 parent 899d8e6 commit 94a6c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ The following code shows how to initialize the main drawing area (Stage) and how
void main() {

// The Stage is a wrapper over the HTML canvas element.
CanvasElement canvas = html.querySelector('#stageCanvas')
CanvasElement canvas = html.querySelector('#stageCanvas');
Stage stage = new Stage(canvas);

// The RenderLoop controls the flow of the program
RenderLoop renderLoop = new RenderLoop();
renderLoop.addStage(stage);

// Start loading an image (BitmapData) and continue when done
Future<BitmapData> future = BitmapData.loadImage('Flower.png');
Future<BitmapData> future = BitmapData.load('Flower.png');
future.then((BitmapData bitmapData) {

// A Bitmap is the display object you can add to the display list.
Expand Down

0 comments on commit 94a6c1e

Please sign in to comment.