Platform
Resources
Pricing
Sign in
Get started
Andrew Wooldridge
📜JavaScript developer. 🐲RPG fan. 📚Storyteller and 🕹game developer. 👨Father and Husband.
Workspace
Fork
Published
Three Elements
By
Andrew Wooldridge
Edited
Feb 20, 2021
Fork of
three-elements example from home page
Three Elements
3D Pixel Art with three-elements
three-elements: Experiments with interactivity
three-elements: Dynamic Object Changes
three-elements: Click the dodecahedron to win!
three-elements example from home page
Hello, three-elements + popmotion
Hello, three-elements
Insert cell
Insert cell
Insert cell
Insert cell
{
let
mesh
=
scene
.
querySelector
(
"three-mesh"
)
;
//let clicked = false;
mesh
.
addEventListener
(
"click"
,
(
)
=>
{
console
.
log
(
"hi"
)
mutable
clicked
=
Math
.
floor
(
Math
.
random
(
)
*
10000
)
;
}
)
yield
clicked
}
Insert cell
import
(
'https://unpkg.com/three-elements@0.3.0/dist/index.esm.js?module'
)
Insert cell
mutable
clicked
=
Math
.
floor
(
Math
.
random
(
)
*
10000
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
scene
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
clicked
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML