So I’ve loaded several images of hour hands and minute hands with transparent backgrounds and I’ve loaded the face art.
I say write the face, write an hour hand, write a minute hand. This fails with the error:
[VERBOSE] xsHost.c:155: Found mod "pebble.moddable.tech"
[ERROR] gbitmap_png.c:110: PNG memory allocation failed
[ERROR] gbitmap_png.c:160: Failed to load PNG
[ERROR] xsPlatform.c:209: Error: not found
at ()
at draw ()
at ()
[ERROR] xsPlatform.c:217: fxAbort unhandled exception: not found
The code I’m using is this:
let background = new Poco.PebbleBitmap(10);
render.drawBitmap(background, 0, 0);
let hourhand = new Poco.PebbleBitmap(1);
render.drawBitmap(hourhand, 0, 0);
let minutehand = new Poco.PebbleBitmap(7);
render.drawBitmap(minutehand, 0, 0);
If I comment out the hourhand lines, the minute hand will draw over the face.
If I comment out the minutehand lines, the hour will draw over the face.
Now this is not how I am used to making a watch face. I’m used to saying, write face, write rotated image of hour hand, and write rotated image of minute hand. Using 72 images of hour hands and minute hands is a silly way to try this, but I have yet to find an example of the “rotate this image and write it” for CloudPebble and Javascript.
This is what the face looks like with something in the date window.

