mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 00:59:29 -07:00
remove loop delay from gifs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// display sun and moon data
|
||||
|
||||
/* globals WeatherDisplay, utils, STATUS, UNITS, draw, navigation, SunCalc, luxon */
|
||||
/* globals WeatherDisplay, utils, STATUS, draw, SunCalc, luxon */
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
class Almanac extends WeatherDisplay {
|
||||
@@ -18,6 +18,8 @@ class Almanac extends WeatherDisplay {
|
||||
utils.image.load('images/2/First-Quarter.gif'),
|
||||
];
|
||||
|
||||
this.timing.totalScreens = 2;
|
||||
|
||||
this.backgroundImage = utils.image.load('images/BackGround3_1.png');
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,6 @@ class CurrentWeather extends WeatherDisplay {
|
||||
// get main icon
|
||||
this.gifs.push(await utils.image.superGifAsync({
|
||||
src: Icon,
|
||||
loop_delay: 100,
|
||||
auto_play: true,
|
||||
canvas: this.canvas,
|
||||
x: 140,
|
||||
|
||||
@@ -158,7 +158,6 @@ class ExtendedForecast extends WeatherDisplay {
|
||||
// draw the icon
|
||||
this.gifs.push(await utils.image.superGifAsync({
|
||||
src: Day.icon,
|
||||
loop_delay: 100,
|
||||
auto_play: true,
|
||||
canvas: this.canvas,
|
||||
x: 70 + Index*195,
|
||||
|
||||
@@ -369,7 +369,6 @@ class RegionalForecast extends WeatherDisplay {
|
||||
this.gifs.push(await utils.image.superGifAsync({
|
||||
src: icon,
|
||||
max_width: 42,
|
||||
loop_delay: 100,
|
||||
auto_play: true,
|
||||
canvas: this.canvas,
|
||||
x: period.x,
|
||||
|
||||
@@ -128,7 +128,6 @@ class TravelForecast extends WeatherDisplay {
|
||||
|
||||
this.longCanvasGifs.push(await utils.image.superGifAsync({
|
||||
src: city.icon,
|
||||
loop_delay: 100,
|
||||
auto_play: true,
|
||||
canvas: this.longCanvas,
|
||||
x: 330,
|
||||
|
||||
Reference in New Issue
Block a user