jjLAYERWARPHORIZON class no handles JJ2+

Properties of the warp horizon effect of a layer, see jjLAYER::warpHorizon

The values are shared with the other texture styles of the same layer, changing one here changes the corresponding property of the others too.

Functions

jjPALCOLOR getFadeColor() const C++
Returns the color the texture fades into near the horizon, only its red, green and blue are used
void setFadeColor(jjPALCOLOR color) C++
Sets the color the texture fades into near the horizon, only its red, green and blue are used

Properties

bool fade C++
Whether the texture fades into the fade color towards the horizon, true by default
float fadePositionX
The horizontal position of the vanishing point as a fraction of the view
float fadePositionY
The vertical position of the horizon as a fraction of the view
bool stars C++
Whether small stars are shown along the horizon, false by default

Property documentation

float jjLAYERWARPHORIZON::fadePositionX

The horizontal position of the vanishing point as a fraction of the view

0.5 (the default) is the middle. With SURFACE::INNERLAYER it's a fraction of the layer instead.

float jjLAYERWARPHORIZON::fadePositionY

The vertical position of the horizon as a fraction of the view

0.5 (the default) is the middle. With SURFACE::INNERLAYER it's a fraction of the layer instead.