Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.makelangelo.makeart;
import com.marginallyclever.makelangelo.turtle.Turtle;
import java.io.Serial;
public class FlipTurtleAction extends TurtleModifierAction {
@Serial
private static final long serialVersionUID = 3429861670595048893L;
private final double scaleX,scaleY;
public FlipTurtleAction(double x,double y,String name) {
super(name);
scaleX=x;
scaleY=y;
}
@Override
public Turtle run(Turtle turtle) {
Turtle out = new Turtle(turtle);
out.scale(scaleX, scaleY);
return out;
}
}
cfb67a76cThis file is pinned to the selected release. Download the original to open it in your design tool.