Skip to content

Commit

Permalink
Updates for tinkerbell publication
Browse files Browse the repository at this point in the history
  • Loading branch information
richmit committed Sep 5, 2024
1 parent 2df38af commit 0b2af47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Some examples of what can be done with *MRaster*:
- [[https://www.mitchr.me/SS/mandelbrotWave/index.html][Mandelbrot Wave]]
- [[https://www.mitchr.me/SS/swirl/index.html][Peter de Jong Fractal]]
- [[https://www.mitchr.me/SS/sic/index.html][Symmetric Fractals]]
- [[https://www.mitchr.me/SS/tinkerbell/index.html][Tinkerbell]]
- [[https://www.mitchr.me/SS/ChaosGame/index.html][Chaos Game]]
- [[https://www.mitchr.me/SS/AGasket/index.html][Apollonian Gasket]]
- [[https://www.mitchr.me/SS/atorus/index.html][Attracting Torus]]
Expand Down
6 changes: 3 additions & 3 deletions examples/tinkerbell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ int main(void) {
double c = params[j][2];
double d = params[j][3];

/* Draw the atractor on a 16-bit, greyscale canvas -- the grey level will be an integer represeting the hit count for that pixel. This is a good example
of how an image can have pixel values that are generic "data" as well as color information. */
/* Draw the Attractor on a 16-bit, greyscale canvas such that the level is the hit count for that pixel.
Thus we are using an "image" as a way to store field data instead of color information. */
double x = params[j][4];
double y = params[j][5];
uint64_t maxII = 0;
Expand All @@ -94,7 +94,7 @@ int main(void) {
if(theRamCanvas.getPxColor(x, y).getC0() > maxII) {
maxII = theRamCanvas.getPxColor(x, y).getC0();
if(maxII > 16384) { // 1/4 of max possible intensity
std::cout << "ITER(" << j << "): " << itr << " MAXS: " << maxII << " EXIT: Maximum image intensity reached" << std::endl;
std::cout << "ITER(" << j << "): " << itr << " MAXS: " << maxII << " EXIT: Maximum intensity reached" << std::endl;
break;
}
}
Expand Down

0 comments on commit 0b2af47

Please sign in to comment.