-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
First, @rohitvarkey I can't express how great this package is for my work. Hopefully some cool demos will come out of this. Thanks again!
Here I am expecting the text to be in the foreground, but instead it is in the background. The widgets seem unaffected.
import ThreeJS
main(window) = begin
push!(window.assets,("ThreeJS","threejs"))
push!(window.assets,"widgets")
w = Input(1.0)
h = Input(1.0)
d = Input(1.0)
hbox(
lift(w, h, d) do w, h, d
ThreeJS.outerdiv() <<
(ThreeJS.initscene() <<
[
ThreeJS.mesh(0.0, 0.0, 0.0) <<
[
ThreeJS.sphere(w), ThreeJS.material(Dict(:kind=>"phong",:color=>"red"))
],
ThreeJS.pointlight(10.0, 10.0, 10.0),
ThreeJS.camera(0.0, 0.0, 10.0)
]
)
end,
vbox(
hbox("width",slider(1.0:5.0) >>> w),
hbox("height",slider(1.0:5.0) >>> h),
hbox("depth",slider(1.0:5.0) >>> d),
)
) |> pad(2em)
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
