kopia lustrzana https://github.com/jameshball/osci-render
Add unused edgeStretch effect
rodzic
dbd55e96ea
commit
b955937dbc
|
@ -23,4 +23,14 @@ public class EventFactory {
|
|||
long tmp = Math.round(value);
|
||||
return (double) tmp / factor;
|
||||
}
|
||||
|
||||
public static Effect edgeStretch(double value) {
|
||||
return (count, v) -> {
|
||||
if (count % 2 == 0) {
|
||||
return v.translate(new Vector2(value, 0));
|
||||
} else {
|
||||
return v.translate(new Vector2(-value, 0));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,12 +5,10 @@ import sh.ball.audio.AudioPlayer;
|
|||
import sh.ball.audio.effect.Effect;
|
||||
import sh.ball.audio.FrameProducer;
|
||||
|
||||
import java.awt.event.ActionListener;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.util.EventListener;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.ResourceBundle;
|
||||
|
@ -23,8 +21,6 @@ import javafx.fxml.Initializable;
|
|||
import javafx.stage.FileChooser;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
import org.xml.sax.SAXException;
|
||||
|
|
Ładowanie…
Reference in New Issue