Forum > Graphics

Sutcliffe Fractal: Found a nice animated JavaScript version

<< < (2/2)

lainz:
Try using bgrabitmap. It has CanvasBGRA that's the same as canvas but with antialias.

TRon:

--- Quote from: Boleeman on February 10, 2024, 12:13:57 pm ---Thanks TRon for all your help.

--- End quote ---
Thank /you/ for taking the effort to experiment and share

I had to think a bit about the remark I made in the source-code. It is not about the creation of the branch (that is necessary) but the drawing of the root branch that seem redundant. For some reason the original code does draw the root branch directly (and thus seem to draw the root branch twice. That is, as far as my understanding of js goes). Drawing or not drawing the root branch directly after creation does not have a (visual) effect/difference (for as far as I was able to verify).

BTW: in case you wish to use BGRABitmap then you can simply adjust the helper to be a helper of class TBGRACanvas (or whatever the canvas is named in/for BGRABItmap. Lainz seem to mention CanvasBGRA). The only thing you would have to do yourself is add support for alphablending/antialiasing inside the actual sutcliffe helper code (if you would like to use live special blending effects or in case it is required to use special code for antialiasing that is).

Boleeman:
Just recently stumbled across a JavaScript the animates a Sutcliffe fractal by:

Changing its color (colour morphing)
Changing its size  (shape morphing)
Rotating

Run the index.html file in the dist folder after you decompress the files.

Kinda nice to watch, so I thought I would share it.


Might be nice to implement these animation features in the Lazarus Sutcliffe Fractal version.

Navigation

[0] Message Index

[*] Previous page

Go to full version