Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
drag and drop with glvisualize and fileio
function handle_drop(w, files)
if !isempty(files)
qfiles = map(FileIO.query, files)
readable_files = filter(x-> !FileIO.unknown(x), qfiles)
visualized_files = map(visualize, map(FileIO.load, readable_files))
files_square = reshape(visualized_files, close_to_square(length(visualized_files))) # turn it into a matrix -> grid
view(visualize(files_square), w, method=:perspective)
end
nothing
end
const_lift(handle_drop, window, window.inputs[:droppedfiles])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment