Add Message for App Failure

This commit is contained in:
Marty Oehme 2018-07-07 21:07:42 +02:00
parent 34bdd1ae81
commit bdc5dc1af1
1 changed files with 7 additions and 2 deletions

View File

@ -17,8 +17,13 @@ class AppComponent implements OnInit {
@override
void ngOnInit() {
canvas.context2D.setFillColorRgb(255, 0, 0);
canvas.context2D.fillRect(0, 0, 200, 150);
canvas.context2D.setFillColorRgb(200, 0, 0);
canvas.context2D.fillRect(0, 0, canvas.width, canvas.height);
canvas.context2D.setFillColorRgb(0, 255, 0);
canvas.context2D.fillText('''
If you see this
the app is broken :(
''', canvas.width/2, canvas.height/2);
engine = new App(canvas);
html.window.animationFrame.then(animFrame);