How To Add An Image To A Window In Pebble.js?
The documentation on window (http://developer.getpebble.com/docs/pebblejs/#window) says that we can add an image to it: 'Window: The Window by itself is the most flexible. It allow
Solution 1:
We're still working on improving Pebble.js and its documentation, but in the meantime, this should get you started with adding Images with Pebble.js:
var UI = require('ui');
var logo_image = new UI.Image({
position: new Vector2(0, 0),
size: new Vector2(144, 144),
backgroundColor: 'clear',
image: 'images/logo_image.png',
});
wind.add(logo_image);
wind.show();
Post a Comment for "How To Add An Image To A Window In Pebble.js?"