stagexl 0.13.9+1 copy "stagexl: ^0.13.9+1" to clipboard
stagexl: ^0.13.9+1 copied to clipboard

outdatedDart 1 only

A fast and universal 2D rendering engine for HTML5 and Dart.

example/example.dart

import 'dart:html' as html;
import 'package:stagexl/stagexl.dart';

void main()  {

//  StageXL.stageOptions.renderEngine = RenderEngine.Canvas2D;

  var canvas = html.querySelector('#stage');
  var stage = new Stage(canvas, width: 800, height: 600);
  var renderLoop = new RenderLoop();
  renderLoop.addStage(stage);

  var sprite = new Sprite();
  sprite.graphics.moveTo(0, 0);
  sprite.graphics.lineTo(240, 0);
  sprite.graphics.lineTo(240, 534);
  sprite.graphics.lineTo(12, 534);
  sprite.graphics.arcTo(12, 534, 0, 522, 12);
  sprite.graphics.closePath();
  sprite.graphics.fillColor(0xFF8D307E);

  sprite.graphics.beginPath();
  sprite.graphics.circle(100, 100, 40);
  sprite.graphics.fillColor(Color.Green);

  //sprite.graphics.lineTo(0,200);
  //sprite.graphics.strokeColor(Color.Red, 5);
  sprite.addTo(stage);

}
37
likes
0
pub points
56%
popularity

Publisher

unverified uploader

A fast and universal 2D rendering engine for HTML5 and Dart.

Homepage

Documentation

Documentation

License

unknown (license)

Dependencies

xml

More

Packages that depend on stagexl