final images = [ loadParallaxImage( 'stars.jpg', repeat: ImageRepeat.repeat, alignment: Alignment.center, fill: LayerFill.width, ), loadParallaxImage( 'planets.jpg', repeat: ImageRepeat.repeatY, alignment: Alignment.bottomLeft, fill: LayerFill.none, ), loadParallaxImage( 'dust.jpg', repeat: ImageRepeat.repeatX, alignment: Alignment.topRight, fill: LayerFill.height, ), ]; final layers = images.map( (image) => ParallaxLayer( await image, velocityMultiplier: images.indexOf(image) * 2.0, ) ); final parallaxComponent = ParallaxComponent.fromParallax( Parallax( await Future.wait(layers), baseVelocity: Vector2(50, 0), ), );