From 0d9890cface9c02ea13099cb9f9da8d001440dd6 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Sat, 2 Apr 2016 20:53:51 -0700 Subject: [PATCH] Add some image methods --- sim/libmbit.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sim/libmbit.ts b/sim/libmbit.ts index 57ff3fa2..41ab453d 100644 --- a/sim/libmbit.ts +++ b/sim/libmbit.ts @@ -514,4 +514,17 @@ namespace ks.rt.pins { } +namespace ks.rt.images { + export function createImage(img: Image) { return img } + export function createBigImage(img: Image) { return img } +} +namespace ks.rt.ImageMethods { + export function showImage(i: Image, offset: number) { + // TODO offset? + i.copyTo(0, 5, board().image, 0) + runtime.queueDisplayUpdate() + } + + // TODO ... +} \ No newline at end of file