Sim screen canvas implementation and _setPixel.

This commit is contained in:
Sam El-Husseini
2017-07-12 10:25:17 +03:00
parent 340d5e5cbf
commit 8215e8446a
6 changed files with 197 additions and 38 deletions

View File

@ -48,6 +48,7 @@ namespace pxsim {
touchButtonState: TouchButtonState;
irState: InfraredState;
lightState: EV3LightState;
screenState: EV3ScreenState;
view: SVGSVGElement;
@ -60,6 +61,7 @@ namespace pxsim {
this.builtinParts["buttons"] = this.buttonState = new EV3ButtonState();
this.builtinParts["light"] = this.lightState = new EV3LightState();
this.builtinParts["screen"] = this.screenState = new EV3ScreenState();
/*this.builtinParts["neopixel"] = this.neopixelState = new CommonNeoPixelState();
this.builtinParts["buttonpair"] = this.buttonState = new CommonButtonState();