You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
I'm trying to generate a sphere at a fixed position, whose color is changing in time (color at time t converted to a number specified by a function f(t), which is converted to a color by "RdBu" cmap)
Unfortunately, I wasn't able to find good examples to learn how to do this.
Is there any simple way to do this?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
using GLVisualize, Colors, GeometryTypes
w =glscreen()
time =bounce(linspace(0, 1, 100))
color =map(time) do t
RGBA{Float32}(t, 1-t, 0, 1)
end
s =Sphere(Point3f0(0), 1f0)
mesh =GLNormalMesh(s)
_view(visualize(mesh, color = color))
@asyncrenderloop(w)
Sorry the API is still awfull.. I promise to soon release Makie.jl with a much better API & documentation!
Hi,
I'm trying to generate a sphere at a fixed position, whose color is changing in time (color at time t converted to a number specified by a function f(t), which is converted to a color by "RdBu" cmap)
Unfortunately, I wasn't able to find good examples to learn how to do this.
Is there any simple way to do this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: