blob: 9e8f9fe1139eb1d7327b7c09e85c3a6a3c2ad30f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using Tk
using ImageView
using Color
using FractalExplorer
iterations = 45
imgsize = (640, 480)
imgc, imgslice = view([ HSV(0, 0, 0) for x=1:imgsize[1], y=1:imgsize[2] ])
FractalExplorer.render(imgc, iterations)
#If we are not in a REPL
if (!isinteractive())
# Create a condition object
cv = Condition()
# Get the main window (A Tk toplevel object)
win = toplevel(imgc)
# Notify the condition object when the window closes
bind(win, "<Destroy>", e->notify(cv))
# Wait for the notification before proceeding ...
wait(cv)
end
|