Platforms to show: All Mac Windows Linux Cross-Platform

MandelbrotSetMBS(Threaded as Integer, width as Integer, height as Integer, fx as Double = 4.0, fy as Double = 4.0, dx as Double = -2.0, dy as Double = -2.0, dest as picture = nil) as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Graphics & Pictures MBS Picture Plugin 10.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the mandelbrot picture.
Example
Backdrop = MandelbrotSetMBS(0,300,300)

Threaded parameter specifies how many threads you want to use:
A negative value disables threading, zero will use one thread for each CPU core and a positive number specifies the thread count.

Width & Height specifiy the output image size.
fx and fy are the scale values and dx/dy specify the the position of the mandelbrot image.

You can pass destination picture. If dest is not nil and size matches, the plugin reuses the picture object which increases performance as no new picture is created.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.
If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window.

Some examples using this global method:

Blog Entries

The items on this page are in the following plugins: MBS Picture Plugin.


The biggest plugin in space...