Skip to content

Commit 1e17e83

Browse files
committed
milestone: added chaos. Smoothened transition. MAde random flow field
1 parent 8a59217 commit 1e17e83

35 files changed

+5960
-24
lines changed

.eslintrc.cjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:react/jsx-runtime',
8+
'plugin:react-hooks/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12+
settings: { react: { version: '18.2' } },
13+
plugins: ['react-refresh'],
14+
rules: {
15+
'react/jsx-no-target-blank': 'off',
16+
'react-refresh/only-export-components': [
17+
'warn',
18+
{ allowConstantExport: true },
19+
],
20+
},
21+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

images/ChenAttractor.png

861 KB
Loading

images/LorenzAttractor.png

1.05 MB
Loading

index.html

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Fractal Generator</title>
7-
<link rel="stylesheet" href="style.css">
8-
</head>
9-
<body>
10-
<!-- <button id="randomize">Randomize!</button> -->
11-
<div id="options">
12-
<button id="randomize">Randomize!</button>
13-
<div class="subOption">
14-
<label for="checkAuto">Autoplay?</label>
15-
<input id='checkAuto' class="checkbox" type="checkbox" value="jello">
16-
</div>
17-
<div class="subOption">
18-
<label for="checkRotate">Rotate?</label>
19-
<input id="checkRotate" class="checkbox" type="checkbox" checked>
20-
</div>
21-
</div>
22-
<canvas id="canvas1"></canvas>
23-
<script src="main.js"></script>
24-
</body>
25-
</html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<style>body{
8+
position: absolute;
9+
10+
}
11+
12+
13+
</style>
14+
<title>Vite + React</title>
15+
</head>
16+
<body>
17+
18+
19+
20+
<div id="root"></div>
21+
22+
23+
<script src="src/scripts/FlowField.js"></script>
24+
<script src="src/scripts/FlowField_Proj.js"></script>
25+
<script src="src/scripts/ChaosAttractor.js"></script>
26+
<script src="src/scripts/Fractals.js"></script>
27+
<script type="module" src="/src/main.jsx"></script>
28+
</body>
29+
</html>

0 commit comments

Comments
 (0)