-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from TiborUdvari/fix/ar-mode
Refactor / p5xr consolidation / Fix AR mode
- Loading branch information
Showing
8 changed files
with
217 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function preload() { | ||
createARCanvas(); | ||
} | ||
|
||
function setup() { | ||
describe("A cube waiting to be seen"); | ||
} | ||
|
||
function draw() { | ||
push(); | ||
translate(0, 0, -0.4); | ||
box(0.1, 0.1, 0.1); | ||
pop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset='utf-8'> | ||
<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'> | ||
<meta name='mobile-web-app-capable' content='yes'> | ||
<meta name='apple-mobile-web-app-capable' content='yes'> | ||
|
||
<title>AR EXAMPLE #1 : Hello Cube</title> | ||
<script src='../../../node_modules/p5/lib/p5.js'></script> | ||
<script src='../../../dist/p5xr.min.js'></script> | ||
</head> | ||
<body> | ||
<header></header> | ||
<script src="example.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.