Merge pull request #2358 from nxdefiant/gallery

gallery: Do not invert image colors
master
Gordon Williams 2022-12-06 09:26:18 +00:00 committed by GitHub
commit 26522b3bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -1,2 +1,3 @@
0.01: New app! 0.01: New app!
0.02: Submitted to app loader 0.02: Submitted to app loader
0.03: Do not invert colors

View File

@ -35,7 +35,7 @@ function drawImage(fileName) {
Bangle.setLCDBrightness(1); // Full brightness Bangle.setLCDBrightness(1); // Full brightness
image = eval(storage.read(fileName)); // Sadly, the only reasonable way to do this image = eval(storage.read(fileName)); // Sadly, the only reasonable way to do this
g.clear().reset().drawImage(image, 88, 88, { rotate: angle }); g.clear().reset().setBgColor(0).setColor("#fff").drawImage(image, 88, 88, { rotate: angle });
} }
setWatch(info => { setWatch(info => {
@ -44,9 +44,9 @@ setWatch(info => {
else angle = 0; else angle = 0;
Bangle.buzz(); Bangle.buzz();
g.clear().reset().drawImage(image, 88, 88, { rotate: angle }) g.clear().reset().setBgColor(0).setColor("#fff").drawImage(image, 88, 88, { rotate: angle })
} }
}, BTN1, { repeat: true }); }, BTN1, { repeat: true });
// We don't load the widgets because there is no reasonable way to unload them // We don't load the widgets because there is no reasonable way to unload them
drawMenu(); drawMenu();

View File

@ -1,7 +1,7 @@
{ {
"id": "gallery", "id": "gallery",
"name": "Gallery", "name": "Gallery",
"version": "0.02", "version": "0.03",
"description": "A gallery that lets you view images uploaded with the IDE (see README)", "description": "A gallery that lets you view images uploaded with the IDE (see README)",
"readme": "README.md", "readme": "README.md",
"icon": "icon.png", "icon": "icon.png",