mirror of
https://github.com/Noratrieb/mandelbrotGUI.git
synced 2026-01-15 07:45:04 +01:00
Added the mandelbrot calculator
This commit is contained in:
parent
2234919b69
commit
64dc682257
7 changed files with 360 additions and 6 deletions
|
|
@ -1,24 +0,0 @@
|
|||
package sample;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.scene.image.Image;
|
||||
import javafx.scene.image.ImageView;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.InputStream;
|
||||
|
||||
public class Controller {
|
||||
|
||||
public ImageView setPreview;
|
||||
|
||||
int currentFrame;
|
||||
|
||||
public void showImage(ActionEvent actionEvent) throws FileNotFoundException {
|
||||
|
||||
InputStream stream = new FileInputStream("C:\\Users\\nilsh\\IdeaProjects\\testStuff\\sequence/Sequence" + currentFrame + ".png");
|
||||
Image image = new Image(stream);
|
||||
setPreview.setImage(image);
|
||||
currentFrame++;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue