image thumbnail

Julia

by

 

Become a cyber explorer and use Julia to navigate the Fractal world!

[width,height,xwidth,xc,yc,N,funcstr,...
%get_gui_data
% Gets the GUI parameters from julia.m
%
% LAST UPDATED by Andrew French 8/03/2011

function [width,height,xwidth,xc,yc,N,funcstr,...
    map_function,map_functions,map_creation_rule,map_creation_rules,C,NaN_colour,...
    cmap,cmaps,max_pixels,delete_composites]=get_gui_data(handles)

%Output image width and height in pixels
width=str2num(get(handles.EDITwidth,'string'));
height=str2num(get(handles.EDITheight,'string'));

%Argand diagram real-axis width and origin
xwidth=str2num(get(handles.EDITxwidth,'string'));
xc=str2num(get(handles.EDITxc,'string'));
yc=str2num(get(handles.EDITyc,'string'));

%Number of iterations
N=str2num(get(handles.EDITiter,'string'));

%Convergence radius
C=str2num(get(handles.EDITc,'string'));

%Colour of pixels that don't exceed convergence criterion
NaN_colour=str2num(get(handles.EDITnancolor,'string'));

%String defining julia function
funcstr=get(handles.EDITjuliafunction,'string');

%Menu cell arrays of colourmaps, julia map functions and map creation rules
cmaps=get(handles.POPUPMENUcolormap,'string');
map_functions=get(handles.POPUPMENUmapfunction,'string');
map_creation_rules=get(handles.POPUPMENUmapcreationrule,'string');

%Current string of colourmaps, julia map functions and map creation rules
cmap=cmaps{get(handles.POPUPMENUcolormap,'value')};
map_function=map_functions{get(handles.POPUPMENUmapfunction,'value')};
map_creation_rule=map_creation_rules{get(handles.POPUPMENUmapcreationrule,'value')};

%Define maximum number of pixel in the X or Y dimensions. If an image has a
%dimension greater than this, several Julia maps will be formed and then
%stitched together. If this is not done then large images (> 2000 x 2000)
%may not be possible to form due to the large amount of memory required.
max_pixels=str2num(get(handles.EDITmaxpixels,'string'));

%Binary flag which defines whether composite images are deleted
delete_composites=get(handles.CHECKBOXdeletecomposites,'value');

%End of code

Contact us