MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fadeToSkyColor

Method fadeToSkyColor

source/game/StarParallax.cpp:88–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void 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
95DataStream& operator>>(DataStream& ds, ParallaxLayer& parallaxLayer) {
96 ds.read(parallaxLayer.textures);

Callers 1

finalizeMethod · 0.80

Calls 3

toStringFunction · 0.85
toHexMethod · 0.80
sliceMethod · 0.45

Tested by

no test coverage detected