https://github.com/brainsik/bae
Chaotic Attractor Explorer
https://github.com/brainsik/bae
Last synced: about 2 months ago
JSON representation
Chaotic Attractor Explorer
- Host: GitHub
- URL: https://github.com/brainsik/bae
- Owner: brainsik
- License: mit
- Created: 2023-08-14T19:08:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T23:35:29.000Z (over 1 year ago)
- Last Synced: 2025-03-26T14:12:20.303Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BAE - brainsik attractor explorer
This is the project I'm using to learn Go. As such, it's focus is trying and learning the language more than being usable by anyone else.
Here's [some images](https://hachyderm.io/@brainsik/110766510259586543) I [posted to Mastodon](https://hachyderm.io/@brainsik/110799062325634606):
[](https://hachyderm.io/@brainsik/110766510259586543)
[](https://hachyderm.io/@brainsik/110766510259586543)
[](https://hachyderm.io/@brainsik/110799062325634606)
## Plane Mapping
* ComplexPoint — A point in the complex plane.
* ImagePoint — A point in the raster image.The image plane has its origin (0, 0) in the top left corner. The complex plane has it's origin (0+0i) in the center. Increasing `x` and `r` (real) both go to the right. However, increasing `y` and `i` (imaginary) move opposite directions: `x` goes down and `i` goes up.
A "view" of a plane is a rectangle defined by its min and max points. Since `y` and `i` have their min/max points flipped, the view of the image plane is defined by (top-left, bottom-right) while the view of the complex plane is defined by (bottom-left, top-right).
| x | y | <-> | r | i |
|:--:|:--:|:--:|:--:|:--:|
| 0 | 0 | | -r_max | +i_max |
| 0 | y_max | | -r_max | -i_max |
| x_max | 0 | | +r_max | +i_max |
| x_max | y_max | | +r_max | -i_max |
| x_max/2 | y_max/2 | | 0 | 0 |## Notes
* [Computer Color is Broken](https://www.youtube.com/watch?v=LKnqECcg6Gw)