Mandelbrot Set Explorer 2.0

Mandelbrot Set Explorer 2.0

by twins_paradox

๐Ÿ‘ 28,756 โค๏ธ 751 โญ 604 ๐Ÿ”„ 24
Created: Nov 3, 2013 Last modified: Nov 29, 2017 Shared: Nov 10, 2013

Description

The buttons and text readouts are all done with sprites. Every pixel on the rendered drawing is the result of a repeated calculation -- the number of times it is repeated (its Dwell value) determines the color of the pixel. Information about the Mandelbrot Set can be found on the Web. Good examples: http://en.wikipedia.org/wiki/Mandelbrot_set http://www.math.utah.edu/~pa/math/mandelbrot/ I save each pixel's Dwell value into memory. I found that one huge array became extremely slow to use. Instead, I use 8 smaller arrays. Thanks to several Scratchers for the RGB (millions of colors) information. Thanks to jpginn and Project: http://scratch.mit.edu/projects/10753622/ for the idea of rendering by rectangles. Here's a web page that describes this: http://www.mrob.com/pub/muency/marianisilveralgorithm.html Thanks to the Scratchers of other Mandelbrot projects for inspiration.

Instructions

-------> Use Turbo Mode! <------- (Hold down Shift key while clicking Green Flag) โ˜…โ˜…โ˜…โ˜…โ˜… Version 3.3D now available โ˜…โ˜…โ˜…โ˜…โ˜… https://scratch.mit.edu/projects/181341231/ Version 2.0 ! Draws the Mandelbrot Set. You can Zoom in and out. There are seven drawing modes to choose from. Change the [Set Zoom], [Max Dwell] and [Draw Mode] settings, move (drag or arrow keys) the Magnifying Glass to where you would like to Zoom, and then click the triangular button to start drawing the Mandelbrot Set. DON'T ZOOM INTO THE BLACK AREA - ALL YOU WILL SEE IS BLACKNESS! Click the square "Stop" button at any time during drawing to stop drawing. (You do not have to wait for the drawing to complete before zooming in again) The magnifying Glass can be dragged, or the 'Z' key can be pressed to move it to the Mouse Pointer. Also, the Right, Left, Up & Down arrow keys can be used to move the magnifying Glass one pixel in those directions. After the scene is rendered, you can redraw it in another drawing mode without having to re-render it by ONLY changing the [Draw Mode] and clicking the green arrow. This takes just a few seconds to redraw the scene. TIPS: โ˜… Set [Max Dwell] to higher values when zooming in deeper and deeper. A Higher Dwell increases the resolution of areas near the Black area borders. โ˜… Pressing the 'M' key toggles (Hides/Shows) the Magnifying Glass. โ˜… Pressing the 'S' key stops the drawing -- this is the same clicking the square "Stop" button. โ˜… Pressing the 'C' key toggles (Hides/Shows) the Coordinates (r, i) and the Zoom amount. --- NEW FEATURES! --- โ˜… Press the 'E' key to enter coordinates and zoom. Good example: r: -0.153481792 i: 1.030177024 zoom: 41667 (use Max Dwell of 600 and Draw Mode: Grad 3) This took 91 seconds on my laptop. โ˜… Faster! Rendering takes place in successively smaller and smaller rectangles. This is done because, if every pixel of an entire rectangle border has the same Dwell value, then every pixel in the entire rectangle inside can be set to that Dwell value -- WITHOUT HAVING TO CALCULATE EACH ONE. This is a major time saver -- especially when there are large areas of the Black Mandelbrot Set in the scene. When this project is rendering, and finds a rectangle that has all the same Dwell border, it displays a colored circle in the rectangle. Another time improvement over version 1.0 is better coding of the Dwell-calculation-iteration Block. โ˜… The Coordinates that show (after pressing the 'C' key) now show the coordinates when the Magnifying Glass is moved around. โ˜… More vivid colors than in version 1.0 โ˜… You can re-draw the rendered scene using a different Draw Mode by ONLY changing the Draw Mode and then pressing the Green Arrow. This takes just a few seconds. The scene doesn't need to be re-rendered. When a scene is rendered, the calculated Dwells for each pixel are now stored in memory. This makes it possible to re-draw the scene with a different Draw mode without having to recalculate each pixel's Dwell value (as in version 1.0) Having the pixel's Dwell values stored in memory makes it possible to draw the scene using a pen_size of 2, but a resolution of 1. This is done by starting the drawing at the top right and drawing down, one pixel at a time, and then starting the next column one pixel over to the right. This results in a much better looking drawing than how it was done in version 1.0 using a pen_size of 1. โ˜… Seven great Draw Modes (color gradients): Grad 1 Grad 2 Grad 3 Grad 4 (best used on deep dives) Metal Stripes X-ray โ˜… Added "50x" and "out 50x" to the Set Zoom choices. โ˜… Holding down the Max Dwell '+' or '-' buttons for more than 3 seconds makes the Dwell change at a faster rate. This lets you to go to higher values faster. โ˜… Fixed what is shown in the Zoomed box. The zoomed value is no longer truncated. When it gets very big, it shows billions and trillions -- 'b' and 't' following the value.

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Beat up coiny

by Paata256times

Project thumbnail
View Project

miroqqwyๅˆใƒ—ใƒฉใƒƒใƒˆใƒ•ใ‚ฉใƒผใƒžใƒผใ€€

by miroqqwy

Project thumbnail
View Project

Beat Up Spiffy Pictures Extreme remix-2

by 888Jimbo

Project thumbnail
View Project

-ใƒˆใƒชใƒ—ใƒซใƒˆใƒฉใƒ–ใƒซ-ใ€Šใพใ‚ˆๆง˜ใฎfnfใ€‹

by google537

Project thumbnail
View Project

Geometry (Egg) Dash Unlimited v4.0 #games #trending

by Bailydadogy

Project thumbnail
View Project

(AY) Destroy the "Project could not save"! (2) remix

by Thito2025

Project thumbnail
View Project

ๅˆไปฃใƒžใƒชใ‚ชใ‚ซใƒผใƒˆ ใƒใƒผใƒˆใ™ใŽใ‚‹ใƒใƒผใƒˆ

by yukku

Project thumbnail
View Project

Beat Up Evil Squidward 2 The rise of memes

by TAG987654321

Project thumbnail
View Project

Skywars

by IMPeriwinkle420

Project thumbnail
View Project

Beat Up Scratch Cat remix

by puredoom

Project thumbnail
View Project

ใ‚ชใƒณใƒฉใ‚คใƒณ3D้š ใ‚Œใ‚“ใผ๏ผŸremixใ€€้ฌผ็•œ((

by yuumeinahito

Project thumbnail
View Project

Geometry Dash Freedom Dive (abandoned)

by education888

Project thumbnail
View Project

Realistic Lens Flare

by SpinningCube

Project thumbnail
View Project

FNF - (Boyfriend sings Rush-E!?!?)

by NickDNA2006

Project thumbnail
View Project

hide and seek

by LGRRN

Project thumbnail
View Project

Windows 11 #OS (WIP)

by scratch-user-18473

Project thumbnail
View Project

Viacom Destroys the 1971 PBS Logo the 2nd Time (FIXED)

by Josue-Fanboy21

Project thumbnail
View Project

Add a Button to Beat up Scratch Cat

by 1superscratchcat

Project thumbnail
View Project

Beat Up PBS P-head

by oceanboy06

Project thumbnail
View Project

Minecraft Clicker!โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ #games

by UltraCoolGames

Project thumbnail
View Project

Add yourself as a button in Beat Up Scratch Cat! remix

by hyd3ns33k

Project thumbnail
View Project

osu aim training

by 3dith7

Project thumbnail
View Project

Endless Scrolling

by A_very_real_human

Project thumbnail
View Project

Add a button to beat up Pico! [Remix 24]

by Ckalix