Created
March 30, 2023 04:37
-
-
Save ashwanirathee/be209e72c278961c08124be74fcce96d to your computer and use it in GitHub Desktop.
Makie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GLMakie | |
scene = Scene() | |
cam3d!(scene) | |
c = cameracontrols(scene) | |
c.eyeposition[] = (0,5,0) | |
c.lookat[] = Vec3f(0,0,0) | |
c.upvector[] = (1, 1, 1) | |
update_cam!(scene) | |
mark = GLMakie.Rect3f(Vec3f(0), Vec3f(1)); | |
positions = Observable(vec([GLMakie.Point3f0(x, y, z) for x in 0:1:2, y in 0:1:2, z in 0:1:2])) | |
meshscatter!(scene, positions, marker=mark, markersize=1f0, color=rand(RGBf, 27), interpolate=false) | |
scatter!(scene, [Point3f(0), Point3f(1,0,0), Point3f(0,1,0), Point3f(0,0,1)], color = [:black, :red, :green, :blue]) | |
scene |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment