Skip to content

Commit

Permalink
feat(examples): add scenegraph-image example
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 26, 2019
1 parent f0f689c commit c08f94f
Show file tree
Hide file tree
Showing 7 changed files with 412 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/scenegraph-image/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.cache
out
node_modules
yarn.lock
*.js
19 changes: 19 additions & 0 deletions examples/scenegraph-image/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# scenegraph-image

[Live demo](http://demo.thi.ng/umbrella/scenegraph-image/)

Similar to the other [scenegraph](../scenegraph/) example, only here
using the node hierarchy & matrix transformations to displace geometry
using image data from another node in the graph.

Please refer to the [example build
instructions](https://github.com/thi-ng/umbrella/wiki/Example-build-instructions)
on the wiki.

## Authors

- Karsten Schmidt

## License

© 2018 Karsten Schmidt // Apache Software License 2.0
Binary file added examples/scenegraph-image/assets/logo-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions examples/scenegraph-image/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>scenegraph-image</title>
<link
href="https://unpkg.com/tachyons@4/css/tachyons.min.css"
rel="stylesheet"
/>
<style></style>
</head>
<body class="ma0 pa0 bg-black white">
<div id="app"></div>
<script type="text/javascript" src="./src/index.ts"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions examples/scenegraph-image/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "scenegraph-image",
"version": "0.0.1",
"repository": "https://github.com/thi-ng/umbrella",
"author": "Karsten Schmidt <k+npm@thi.ng>",
"license": "Apache-2.0",
"scripts": {
"clean": "rm -rf .cache build out",
"build": "yarn clean && parcel build index.html -d out --public-url ./ --no-source-maps --no-cache --detailed-report --experimental-scope-hoisting",
"build:webpack": "../../node_modules/.bin/webpack --mode production",
"start": "parcel index.html -p 8080 --open"
},
"devDependencies": {
"parcel-bundler": "^1.12.3",
"terser": "^3.17.0",
"typescript": "^3.4.1"
},
"dependencies": {
"@thi.ng/api": "latest",
"@thi.ng/geom": "latest",
"@thi.ng/hdom": "latest",
"@thi.ng/pixel": "latest"
},
"browserslist": [
"last 3 Chrome versions"
],
"browser": {
"process": false
}
}
Loading

0 comments on commit c08f94f

Please sign in to comment.