Skip to content

Commit 61e3bae

Browse files
committed
zoom in not out
1 parent 80b4155 commit 61e3bae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sequences/Phonebook.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ function drawwedges!(ax,AIA)
3232
if gcd(jj,k) == 1
3333
push!(angles,(jj-0.5)*2*pi/(k-1))
3434
push!(angletext, "$jj/$k $ii")
35-
push!(wedges,((jj-1)*2*pi/(k-1),(jj)*2*pi/(k-1),2^(ii-1),2^ii))
35+
push!(wedges,((jj-1)*2*pi/(k-1),(jj)*2*pi/(k-1),2.0^(-ii+1),2.0^-ii))
3636
end
3737
end
38-
r = (2^ii+2^(ii-1))/2
38+
r = (2.0^-ii+2.0^(-ii+1))/2
3939
centers = [(r*cos(theta),r*sin(theta)) for theta in angles]
4040
for wedge in wedges
4141
wedge!(ax,wedge...)
@@ -59,7 +59,7 @@ function phonebook!(gl,AIA)
5959
if event.type === MouseEventTypes.leftdown
6060
ang = atan(event.data[2],event.data[1])
6161
rad = sqrt(sum([x*x for x in event.data]))
62-
idx = Int(ceil(log2(rad)))
62+
idx = -1*Int(floor(log2(rad)))
6363
if idx > 0
6464
k = denominator(AIA[],idx)
6565
num = Int(mod1(ceil(ang*(k-1)/(2*pi)),k-1))

0 commit comments

Comments
 (0)