Skip to content

Commit

Permalink
Avoid 'inexact error'
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Feb 26, 2024
1 parent f833a41 commit aad0fea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/brain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function cursor(motion, x, y)
center = spherical_to_cartesian(-2, pi * y / height + pi/2, pi * x / width)
up = spherical_to_cartesian(1, pi * y / height + pi, pi * x / width)
elseif GLFW.GetMouseButton(window, GLFW.MOUSE_BUTTON_2)
isolevel = round(Int, 255 * y / height)
if y >= 0
isolevel = round(Int, 255 * y / height)
end
end
display()
end
Expand Down

0 comments on commit aad0fea

Please sign in to comment.