mandelbrot exercise v.3

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
splasher
Prole
Posts: 21
Joined: Mon Nov 19, 2012 3:10 pm

mandelbrot exercise v.3

Post by splasher »

18/01/2013 changes in version3
--------------------------------

TAPs defined as Xcenter,Ycenter,Radius
(no more with x1,x2,y1,y2)

zoom in,out don't change Xcenter,Ycenter
(not necessary true when reach min or max limits)

Window zoom defined by zoomRadius
zoomRadius is defined pressing 'q' at moving mouse position (big cross)
respect the kliked mouse center position (the little cross)

'w' draw mandelbrot defined in window circle

'm' draw mandelbrot centered at little cross

MAXITER no more related to colorTable lenght

MAXITER can be change from 100 to 8000 (Esc i XXX cr )


use Escape sequence to define parameters
for example for change MAXITER we type: Esc i XXX cr

this means:
1 - Esc: press Escape Key
2 - press modifier key , in this case the key 'i'
3 - XXX: mean pressing digit key 0..9 to form the number
4 - cr : the Return key

parameter that can be changed:

1)t TAP index (some TAPs stored in the program )(Esc t XXX cr)
2)s image size (10 types hardcoded) (Esc s XXX cr)
3)z zoom factor x0.1 resolution (for in,out) (Esc z XXX cr)
4)i MAXITER value (Esc i XXX cr)


note:
TAP is my personal mnemonic name to define the parameters needed
to rebuild the mandelbrot X-Y points checked,
not the image look
because the image look depend of
maximum iterations(MAXITER) to reach the EscapePoint(fixed at 2) ,
and depend also of type of colorTable.


how to navigate:

when start appear x default the usual basic figure.
image size is at minimum to draw quickly.
klik the point to explore.

use 'i' to prepare zoom in
or 'o' to prepare zoom in
or 'q' to define zoom window
or 'c' to recenter the current zone

when ok,

press 'm' to build the new zoom/panned mandelbrot zone
or 'w' to build the windowed mandelbrot zone

when you find a good picture
change to bigger size (Esc s XXXx cr)
(size 10 is maximum hardcode as 2000x2000, that can be change in prog)

it appear a gray square
(note that can be bigger that LOVE window ,
but can shift image whith arrow key or return centered with home key)

rebuild the mandelbrot figure with 'm' key
note that can take a long time for big image.
building image can always stopped with 'x' key.

-------------------------------

when image is build

is time to save it,
press 's' key to save image.

it is saved in default LOVE location.

3 file are saved:
1) a PNG colored image file.
2) a PNG base image file (here each point a,r,g,b have then escape number of this point)
3) the TAP info into a text file

the name of file is IMG_xxx.png where xxx is derived from os.time()
-------------------------------

utility keys
'k' print TAP values.

-------------------------------

image sizes:
1 100x100 to preview quickly
2 200x200 to preview quickly but a bit bigger
3 300x200
4 400x300
5 800x600
6 1000x800
7 1200x1000
8 1600x1200
9 2000x1600
10 2000x2000

-------------------------------
Attachments
IMG_1358545809.png
IMG_1358545809.png (3.58 MiB) Viewed 2212 times
mandelbrot_v3.love
(114.54 KiB) Downloaded 170 times
User avatar
Djent
Prole
Posts: 27
Joined: Sun Jan 20, 2013 3:22 pm
Location: Rhode Island

Re: mandelbrot exercise v.3

Post by Djent »

My OpenGL version isn't supported :(
splasher
Prole
Posts: 21
Joined: Mon Nov 19, 2012 3:10 pm

Re: mandelbrot exercise v.3

Post by splasher »

can you try this version (v4)?
here i don't use newCanvas for store image infos on picture.

this version also can change colors and have a building picture from center to quick wiew around center point.
Attachments
images.zip
(7.07 MiB) Downloaded 135 times
mandelbrot_v4.love
(135.33 KiB) Downloaded 127 times
Post Reply

Who is online

Users browsing this forum: Ross and 1 guest