Package com.petrolpark.util
Class ColorHelper
java.lang.Object
com.petrolpark.util.ColorHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final intcopyAlpha(int rgb, int a) static final net.minecraft.world.item.DyeColorgetColor(net.minecraft.world.entity.LivingEntity entity) static final booleanisFullyTransparent(int argb) static final doublelinearToSrgb(double c) static final intopaque(int argb) static final doublesrgbToLinear(double c) static final net.minecraft.world.phys.Vec3toOKLabVec(int argb) static final inttoRGB(net.minecraft.world.phys.Vec3 OKLabVec)
-
Constructor Details
-
ColorHelper
public ColorHelper()
-
-
Method Details
-
isFullyTransparent
public static final boolean isFullyTransparent(int argb) -
opaque
public static final int opaque(int argb) -
copyAlpha
public static final int copyAlpha(int rgb, int a) -
toOKLabVec
public static final net.minecraft.world.phys.Vec3 toOKLabVec(int argb) -
srgbToLinear
public static final double srgbToLinear(double c) -
toRGB
public static final int toRGB(net.minecraft.world.phys.Vec3 OKLabVec) -
linearToSrgb
public static final double linearToSrgb(double c) -
getColor
@Nullable public static final net.minecraft.world.item.DyeColor getColor(net.minecraft.world.entity.LivingEntity entity)
-