Comments (9)
Hi there,
you can use different images for aplite and basalt by simply appending bw / color.png. Within the appinfo.json you only need to add example.png once because the app will automatically use the correct image.color to your filenames. So if you have one image with the name example you need to create examplebw.png and example
{
"type": "png",
"name": "IMAGE_EXAMPLE",
"file": "images/example.png"
},
Hope that helps,
Mathias
from pebblejs.
@matism Thanks for replying! This is a helpful tip I should add to the README.md. @kinncj is referring to colored remote images that are loaded from the internet which I've demoed yesterday at the Toronto meetup but will be pushing up hopefully before the weekend.
from pebblejs.
@Meiguro Ah I see, wasn't clear to me so I thought that might help.
from pebblejs.
@matism, sorry for not being clear.
I figured that local and remote resources can use the same Image
object, but the Image::load()
method forces the Image to be grayscale.
Thanks.
from pebblejs.
@kinncj Now everything is clear to me - thanks for the explanation!
from pebblejs.
@kinncj The changes have been pushed! I recommend testing on a real watch. There seems to be a strange app message issue when used in the emulator that I haven't finished investigating, though it eventually still works. If using the emulator, continually press buttons until an image shows up. I plan to add a progress spinner for loading images later, though the progress spinner wouldn't solve the problem with the emulator.
from pebblejs.
@Meiguro it worked like a charm.
Is cloud pebble using master? I did not have a chance to test on CloudPebble yet, just locally.
from pebblejs.
@Meiguro I guess we can close this?
from pebblejs.
Yes, thanks for the reminder!
from pebblejs.
Related Issues (20)
- [Bug] Run time error when show UI.card() HOT 4
- [Bug] Error when building with the SDK 3.10 HOT 1
- [Feature Request] Disconnected message as a customisable image, like the startup screen
- [Bug] Card goes fullscreen when going back from Menu
- need a cloudpebble update HOT 3
- Bug in OGPebble 3.11.1 HOT 3
- Accel 'tap' event not very sensitive HOT 4
- Number conversion to string - Menus HOT 2
- App crashed when move from a Window to Menu HOT 17
- [Bug] Menu Screen Dotted Line HOT 3
- [Bug] Scrolling issue on Aplite HOT 6
- Circle.radius accessor is undefined HOT 1
- Modifications while Voice window is the top window cause a crash HOT 1
- Cloud Pebble Unable to Upload Images (PNG)
- Settings.config callback crashes when passed option containing encoded percent sign HOT 2
- Pebble.js compilation fails for Pebble 2 / Diorid HOT 2
- Application crash on pebble HOT 10
- Porting Pebble.js to Canvas (rocky.js)
- Wakeup not discarding itself or cancelling
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pebblejs.