mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 14:30:23 +00:00
ColorUtil.Channel getChannel() -> from()
This commit is contained in:
1 parent
68875cc17b
commit
c491ac5b24
2 files changed
+7
-7
No files matched your search
+1
-1
@@ -31,7 +31,7 @@ public class ImageSampler implements NoiseSampler {
|
||||
|
||||
@Override
|
||||
public double noise(long seed, double x, double y) {
|
||||
return channel.getChannel(colorPicker.apply(image, (int) (x * frequency), (int) (y * frequency))) / 255D * 2 - 1;
|
||||
return channel.from(colorPicker.apply(image, (int) (x * frequency), (int) (y * frequency))) / 255D * 2 - 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user