Skip to content

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed Jan 24, 2022
1 parent f5d0194 commit f1e1797
Show file tree
Hide file tree
Showing 6 changed files with 11,116 additions and 1,228 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
node_modules
docs
example/build/*
17 changes: 17 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>PEX - Examples</title>
<style>
body {
margin: 0;
overscroll-behavior: none;
}
</style>
</head>
<body>
<script src="build/main.js"></script>
</body>
</html>
10 changes: 4 additions & 6 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
const createGUI = require('../')

const load = require('pex-io/load')
const { load } = require('pex-io')
const createContext = require('pex-context')
const createCamera = require('pex-cam/perspective')
const createOrbiter = require('pex-cam/orbiter')
const mat4 = require('pex-math/mat4')
const quat = require('pex-math/quat')
const { perspective: createCamera, orbiter: createOrbiter } = require('pex-cam')
const { mat4, quat } = require('pex-math')
const createTorus = require('primitive-torus')
const createCube = require('primitive-cube')
const isBrowser = require('is-browser')
Expand Down Expand Up @@ -34,7 +32,7 @@ const ExampleState = {
time: 0,
size: [1, 0.2],
rotation: [0, 0, 0],
bgColor: [0.92, 0.2, 0.2, 1.0],
bgColor: [0.2, 0.2, 0.2, 1.0],
currentGeometry: 0,
geometries: []
}
Expand Down
Loading

0 comments on commit f1e1797

Please sign in to comment.