An individual streak descriptor used by CPStarStreakShader.
- Value parameters:
Character to use to draw stars in this streak.
Set of initial color for fading from. Colors will be randomly chosen for each star.
Percentage of stars visible at the same time. For example, the value of
0.04means 4%, and if the camera frame size is 100x50 characters then 4% ratio will result in 200 stars showing at any given time.
Tuple defining the X and Y-axis increment on each frame. This tuples defines both the speed and the direction stars in this streak will move with.
Number of frames that it takes for entire star lifecycle in this streak.
Z-index at which to draw the stars in this streak.
- See also:
See CPShaderExample class for the example of using shaders.
See org.cosplay.games.snake.CPSnakeTitleScene game scene for example of using this shader.