remove loop delay from gifs
This commit is contained in:
parent
24855fd959
commit
26606757ce
6 changed files with 3 additions and 217 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue