Package io.github.humbleui.skija
Class Color4f
- java.lang.Object
-
- io.github.humbleui.skija.Color4f
-
public class Color4f extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)float[]flatten()static float[]flattenArray(Color4f[] colors)floatgetA()floatgetB()floatgetG()floatgetR()inthashCode()Color4fmakeLerp(Color4f other, float weight)inttoColor()java.lang.StringtoString()Color4fwithA(float _a)Color4fwithB(float _b)Color4fwithG(float _g)Color4fwithR(float _r)
-
-
-
Method Detail
-
toColor
public int toColor()
-
flatten
public float[] flatten()
-
flattenArray
public static float[] flattenArray(Color4f[] colors)
-
getR
public float getR()
-
getG
public float getG()
-
getB
public float getB()
-
getA
public float getA()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withR
public Color4f withR(float _r)
- Returns:
this.
-
withG
public Color4f withG(float _g)
- Returns:
this.
-
withB
public Color4f withB(float _b)
- Returns:
this.
-
withA
public Color4f withA(float _a)
- Returns:
this.
-
-