| 86 | } |
| 87 | |
| 88 | void ParallaxLayer::fadeToSkyColor(Color skyColor) { |
| 89 | if (fadePercent > 0) { |
| 90 | String fade = "fade=" + skyColor.toHex().slice(0, 6) + "=" + toString(fadePercent); |
| 91 | addImageDirectives(fade); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | DataStream& operator>>(DataStream& ds, ParallaxLayer& parallaxLayer) { |
| 96 | ds.read(parallaxLayer.textures); |