changeBackgroundImage() {
    if (!this.backgroundImages) return;

    if (this.currentImageIndex === this.backgroundImages.length - 1) {
      this.currentImageIndex = 0;
    } else {
      this.currentImageIndex++;
    }

    // Render images
    let nextImage = this.backgroundImages[this.currentImageIndex];
    RenderingModule.setBackgroundImage(nextImage);
    // console.log(
    //   this.backgroundImages[this.currentImageIndex],
    //   this.currentImageIndex
    //   );
  }
/**
   * Changes to and renders specified background image
   */
Changes to and renders specified background image
Changes to and renders specified background image
changeBackgroundImage() {
    if (!this.backgroundImages) return;
    if (this.currentImageIndex === this.backgroundImages.length - 1) {
      this.currentImageIndex = 0;
    } else {
      this.currentImageIndex++;
    }
    let nextImage = this.backgroundImages[this.currentImageIndex];
    RenderingModule.setBackgroundImage(nextImage);
  }
changeBackgroundImage ( ) { if ( ! this . backgroundImages ) return ; if ( this . currentImageIndex === this . backgroundImages . length - 1 ) { this . currentImageIndex = 0 ; } else { this . currentImageIndex ++ ; } let nextImage = this . backgroundImages [ this . currentImageIndex ] ; RenderingModule . setBackgroundImage ( nextImage ) ; }
Changes to and renders specified background image
Changes to and renders specified background image
// Render images // console.log( //   this.backgroundImages[this.currentImageIndex], //   this.currentImageIndex //   );