-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4ebfb34
Showing
224 changed files
with
55,662 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="lib" path="lib"> | ||
<attributes> | ||
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="../"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType"> | ||
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/> | ||
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/Fractal Explorer"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="4"/> | ||
</listAttribute> | ||
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> | ||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Fractal Explorer"/> | ||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Fractal Explorer/build.xml}"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> | ||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType"> | ||
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/> | ||
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/Fractal Explorer"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="4"/> | ||
</listAttribute> | ||
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> | ||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Fractal Explorer"/> | ||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Fractal Explorer/javadoc.xml}"/> | ||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> | ||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>Fractal Explorer</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> | ||
<triggers>full,incremental,</triggers> | ||
<arguments> | ||
<dictionary> | ||
<key>LaunchConfigHandle</key> | ||
<value><project>/.externalToolBuilders/Javadoc.launch</value> | ||
</dictionary> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> | ||
<triggers>full,incremental,</triggers> | ||
<arguments> | ||
<dictionary> | ||
<key>LaunchConfigHandle</key> | ||
<value><project>/.externalToolBuilders/Build.launch</value> | ||
</dictionary> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding//src/mc21g14/fractal/misc/FractalExplorer.java=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
org.eclipse.jdt.core.compiler.doc.comment.support=enabled | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning | ||
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled | ||
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled | ||
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled | ||
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled | ||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public | ||
org.eclipse.jdt.core.compiler.source=1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Fractal Explorer | ||
================ | ||
|
||
A java, gpu accelerated fractal explorer. | ||
|
||
# Usage | ||
|
||
## Fractal Window | ||
|
||
* You can zoom into and investigate any fractal that is visible on your screen either with your | ||
mouse or with keyboard shortcuts | ||
* To save a fractal for later, click either of the favourite buttons to add it to your favourites. | ||
To load it left click on it, to delete it right click. Any changes you make will be saved for | ||
when you next use the program. | ||
* You can export your current fractals as an image, click the Export button. You will be prompted | ||
to pick a size and a file to save too. Current settings will be used, if you have enough RAM | ||
allocated to Java, nearly any size should work. | ||
* To show/hide the settings dialog, simply click the Settings button. Alternatively, click the X | ||
in the top right of the settings dialog. | ||
|
||
### Keyboard | ||
|
||
| Shortcut | Description | | ||
|-----------|--------------------------------------------------------------------------------------| | ||
| Home/Esc | Return to start of the fractal, useful if you are too deep and you want out | | ||
| W/I/Up | Move the camera up to reveal the parts of the fractal that are above | | ||
| S/K/Down | Move the camera down to reveal the parts of the fractal that are below | | ||
| A/J/Left | Move the camera left to reveal the parts of the fractal that are left | | ||
| D/L/Right | Move the camera right to reveal the parts of the fractal that are right | | ||
| + | Zoom in to the fractal | | ||
| - | Zoom out of the fractal | | ||
|
||
### Mouse | ||
|
||
You can drag the mouse to select a region of the fractal to zoom into, and use the scroll-wheel to | ||
zoom in and out of the fractal. If you click on the fractal the selected point and julia set will | ||
then update the selected point. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project default="create_run_jar" name="Create Runnable Jar for Project Fractal Explorer"> | ||
<!--this file was created by Eclipse Runnable JAR Export Wizard--> | ||
<!--ANT 1.7 is required --> | ||
<target name="create_run_jar"> | ||
<jar destfile="FractalExplorer.jar" filesetmanifest="mergewithoutmain" duplicate="preserve"> | ||
<manifest> | ||
<attribute name="Main-Class" value="Launcher"/> | ||
<attribute name="Class-Path" value="."/> | ||
</manifest> | ||
<fileset dir="bin"/> | ||
<fileset dir="src"/> | ||
<fileset dir="lib"/> | ||
<fileset dir="." includes="javadoc/*" /> | ||
<fileset dir="." includes="fractal.png" /> | ||
<fileset dir="." includes="fractal.html" /> | ||
<fileset dir="." includes="*.md" /> | ||
</jar> | ||
</target> | ||
</project> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Fractal</title> | ||
<style> | ||
html, body, canvas { | ||
height: 100%; | ||
width: 100%; | ||
padding: 0; | ||
margin: 0; | ||
overflow: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<canvas>Your browser doesn't support HTML5 and is unable to view this fractal.</canvas> | ||
<script> | ||
var draw = function(ctx, start, stop, top, bottom, iterations, threshold) { | ||
// Fill canvas with a red background so everything is painted | ||
ctx.fillStyle = "rgb(255, 255, 255)"; | ||
ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height); | ||
|
||
// We need to iterate over every single pixel | ||
for(var x = 0; x < ctx.canvas.width; x++) { | ||
for(var y = 0; y < ctx.canvas.height; y++) { | ||
// Calculate our base complex which we will add each time | ||
var baser = start + (stop - start) * x / ctx.canvas.width; | ||
var basei = top + (bottom - top) * y / ctx.canvas.height; | ||
|
||
var pastr = baser; | ||
var pasti = basei; | ||
|
||
for(var i = 0; i < iterations; i++) { | ||
// Calculate the current complex by squaring and adding the base complex | ||
var currentr = baser + pastr * pastr - pasti * pasti; | ||
var currenti = basei + 2.0 * pastr * pasti; | ||
var currentm = Math.sqrt(currentr * currentr + currenti * currenti); | ||
|
||
if(currentm > threshold) { | ||
var pastm = Math.sqrt(pastr * pastr + pasti * pasti); | ||
|
||
// Smooth(er) colouring, lets iterate again! | ||
for(var j = 0; j <= iterations; j++) { | ||
var k = 1.0 * j / iterations; | ||
if(pastm + (currentm - pastm) * k > threshold) { | ||
var value = Math.round(255 * (i + k) / iterations); | ||
ctx.fillStyle = "rgb(255, " + value + ", " + value + ")"; | ||
ctx.fillRect(x, y, 1, 1); | ||
break; | ||
} | ||
} | ||
break; | ||
} | ||
|
||
pastr = currentr; | ||
pasti = currenti; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// JavaScript boilerplate | ||
var ctx = document.getElementsByTagName("canvas")[0].getContext("2d"); | ||
ctx.canvas.width = window.innerWidth; | ||
ctx.canvas.height = window.innerHeight; | ||
|
||
// Time how long it takes | ||
var time = new Date().getTime(); | ||
draw(ctx, -2.5, 1, 1.6, -1.6, 50, 2); | ||
time = new Date().getTime() - time; | ||
console.log("Took " + time + "ms to render"); | ||
</script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project default="javadoc"> | ||
<target name="javadoc"> | ||
<javadoc access="public" author="true" classpath="." destdir="javadoc" doctitle="Fractal Explorer" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="mc21g14.fractal.colorable,mc21g14.fractal.misc,mc21g14.colorpicker,mc21g14.fractal.calculable" source="1.7" sourcefiles="src/Launcher.java" sourcepath="src" splitindex="true" use="true" version="false" encoding="utf-8"> | ||
<arg value="-notimestamp" /> | ||
</javadoc> | ||
</target> | ||
</project> |
Oops, something went wrong.