Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Updated ColorUtils documentation and deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAreAllTheseTaken committed Dec 5, 2019
1 parent 9f06fdb commit 0363866
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
package io.github.tomaso2468.rpgonline;

/**
* An interface allowing a state to except a float scaling value.
* An interface allowing a state to scale based on a scaling value.
*
* @author Tomaso2468
*
*/
public interface BaseScaleState {
/**
* Scale the state to the specified scaling (1 == 100%).
*
* @param game The game.
* @param base The scaling for the state.
*/
public void scale(Game game, float base);
Expand Down
16 changes: 15 additions & 1 deletion RPGOnline2/src/io/github/tomaso2468/rpgonline/ColorUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
*
* @see io.github.tomaso2468.rpgonline.post.ColorEffectsShader
*
* @author Tomas, Ruo Feidu, Tanner Hellend
* @author Tomaso2468, Ruo Feidu, Tanner Hellend
*/
public final class ColorUtils {
/**
Expand Down Expand Up @@ -534,6 +534,7 @@ public static Color shiftHue(Color col, float shift) {
*
* @author Tomas
*/
@Deprecated
public static class SunColorGenerator {
/**
* Sun color red channel.
Expand Down Expand Up @@ -604,6 +605,19 @@ public SunColorGenerator(Color sunlight, Color moonlight, Color sundown1, Color
nightSky);
}

/**
* Initi
* @param sunlight
* @param moonlight
* @param sundown1
* @param sundown2
* @param night
* @param sunlightSky
* @param sundown1Sky
* @param sundown2Sky
* @param moonlightSky
* @param nightSky
*/
private void init(Color sunlight, Color moonlight, Color sundown1, Color sundown2, Color night,
Color sunlightSky, Color sundown1Sky, Color sundown2Sky, Color moonlightSky, Color nightSky) {
double[] x = { 0, 4.5, 5, 5.5, 6.5, 17, 18.5, 19, 20, 24, };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* @author Tomaso2468
*
*/
@Deprecated
public abstract class MoonLayer implements SkyLayer {
/**
* A sun color generator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* @author Tomaso2468
*
*/
@Deprecated
public abstract class SunLayer implements SkyLayer {
/**
* A sun color generator.
Expand Down

0 comments on commit 0363866

Please sign in to comment.