Skip to content

Commit

Permalink
basic
Browse files Browse the repository at this point in the history
  • Loading branch information
Walkersifolia committed Sep 1, 2023
1 parent fb4ff8f commit 4763d01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.jvmargs=-Xmx4G
org.gradle.parallel=true

# Fabric Properties
Expand All @@ -11,7 +11,7 @@ loader_version=0.14.21
# Mod Properties
mod_version=1.0.0
maven_group=com.example
archives_base_name=modid
archives_base_name=bluewire

# Dependencies
fabric_version=0.85.0+1.20.1
8 changes: 4 additions & 4 deletions src/main/java/com/example/mixin/ExampleMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class ExampleMixin {
static {
for (int i = 0; i <= 15; ++i) {
float f = (float) i / 15.0F;
float g = f * 0.6F + (f > 0.0F ? 0.4F : 0.3F);
float h = MathHelper.clamp(f * f * 0.7F - 0.5F, 0.0F, 1.0F);
float j = MathHelper.clamp(f * f * 0.6F - 0.7F, 0.0F, 1.0F);
COLORS[i] = new Vec3d((double) j, (double) h, (double) g);
float r = MathHelper.clamp(f * f * 0.5F - 0.7F, 0.0F, 1.0F);
float g = MathHelper.clamp(f * f * 0.8F - 0.3F, 0.0F, 1.0F);
float b = f * 0.6F + (f > 0.0F ? 0.4F : 0.3F);
COLORS[i] = new Vec3d((double) r, (double) g, (double) b);
}
}

Expand Down

0 comments on commit 4763d01

Please sign in to comment.