Better Duplicate Op Support (json/hjson) + 1 more op (#7355)
* Better support for duplicate ops * 'Mathf.curve' op
This commit is contained in:
@@ -124,6 +124,10 @@ public abstract class DrawPart{
|
||||
return p -> get(p) / (1f - amount);
|
||||
}
|
||||
|
||||
default PartProgress compress(float start, float end){
|
||||
return p -> Mathf.curve(get(p), start, end);
|
||||
}
|
||||
|
||||
default PartProgress blend(PartProgress other, float amount){
|
||||
return p -> Mathf.lerp(get(p), other.get(p), amount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user