Skip to content

Releases: jeffpar/mandelbot

Circular Views

Choose a tag to compare

@jeffpar jeffpar released this 01 May 16:44

A new Mandelbot property, shape, can be set to select either a rectangular or circular view.

The site now includes a Circular View demo.

If you're setting the property on a page, then the property must be either 'rect' or 'circle'; the Jekyll include file "mandelbot.html" will ensure that the View canvas is properly styled for the selected shape, and it will pass the appropriate Mandelbot.SHAPE constant to the Mandelbot constructor function.

If you're calling the Mandelbot constructor directly, the shape parameter should be set to one of the Mandelbot.SHAPE constants (RECT or CIRCLE); if omitted, it will default to RECT.

Developer Pages

Choose a tag to compare

@jeffpar jeffpar released this 01 May 16:02

Individual pages can now set the developer property, thereby loading the uncompiled version of mandelbot.js. The property can still be set for the entire site as well; this happens automatically if using _developer.yml when starting Jekyll.

The site now includes an Uncompiled Mandelbot demo.

Compatibility Update

Choose a tag to compare

@jeffpar jeffpar released this 27 Apr 21:40

It turns out that the MouseEvent buttons property is not supported in all browsers (eg, Safari), so my original test for the left button (event.buttons & 0x1) was not sufficient.

I now rely on my own internal colStart and rowStart properties, which are "set" after a mousedown event and "clear" after a mouseup event.

Also, unlike iOS devices, Android devices don't return any position data on the touchend event, so the selection code must now rely exclusively on the last known position from either the preceding touchstart or touchmove event.

Initial Release

Choose a tag to compare

@jeffpar jeffpar released this 26 Apr 21:43

Behold the Mandelbots!