[Makie.jl] 3D voxelized visualization of a cubical matrix

And another tip to make your code look more Julian:

colorvec = replace(points3d, 0 => (:black,0.01), 1 => (:yellow,0.7)) |> vec

You don’t need to loop manually, just use the high-level replace

1 Like