Julia-arrows(Vec3f)

using CairoMakie

ps = [Point3f(x, y, z) for x in -4:2:6 for y in -4:2:6 for z in -4:2:6]

ns = map(p -> 0.1 * Vec3f(p[2], p[3], p[1]), ps)

arrows(

    ps, ns, fxaa=true, # turn on anti-aliasing

    linecolor = :blue, arrowcolor = :green,

    linewidth = 0.1, arrowsize = Vec3f(0.2, 0.3, 0.4),

    align = :center, axis=(type=Axis3,)

)


你可能感兴趣的:(Julia-arrows(Vec3f))