mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-17 19:05:07 +00:00
cleanup
This commit is contained in:
1 parent
0b8b56a74b
commit
3aef354b3a
16 files changed
+325
-269
No files matched your search
@@ -58,7 +58,8 @@ public class EMTRandomHelper {
|
||||
float y = prevY + (rnd.nextInt((int) height) - (height / 2));
|
||||
float z = prevZ + (rnd.nextInt((int) height) - (height / 2));
|
||||
|
||||
points.add(new Point(x, y, z));
|
||||
byte color = (byte) ((198 / (length / dist)) * x);
|
||||
points.add(new Point(x, y, z, (byte)(255 - color), (byte)(255 - color), (byte)255));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,12 +68,24 @@ public class EMTRandomHelper {
|
||||
public float x = 0;
|
||||
public float y = 0;
|
||||
public float z = 0;
|
||||
public byte r = 0;
|
||||
public byte g = 0;
|
||||
public byte b = 0;
|
||||
|
||||
public Point(float x, float y, float z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
public Point(float x, float y, float z, byte r, byte g, byte b) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.r = r;
|
||||
this.g = g;
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
public Point(double x, double y, double z) {
|
||||
this.x = (float) x;
|
||||
|
||||
Reference in new issue
Block a user