use of spacegraph.space2d.container.Splitting in project narchy by automenta.
the class ExeCharts method metaGoalPlot.
public static Surface metaGoalPlot(NAR nar) {
int s = nar.causes.size();
FloatRange gain = new FloatRange(20f, 0f, 20f);
BitmapMatrixView bmp = new BitmapMatrixView((i) -> Util.tanhFast(gain.floatValue() * nar.causes.get(i).value()), // Util.tanhFast(nar.causes.get(i).value()),
s, Math.max(1, (int) Math.ceil(Math.sqrt(s))), Draw::colorBipolar) {
DurService on;
{
on = DurService.on(nar, this::update);
}
@Override
public void stop() {
on.off();
on = null;
super.stop();
}
};
return new Splitting(bmp, new AutoSurface<>(gain), 0.1f);
}
Aggregations