Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/8097 get camera function#8105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ombalgude wants to merge2,036 commits intoprocessing:main
base:main
Choose a base branch
Loading
fromombalgude:feature/8097-get-camera-function
Open
Changes from1 commit
Commits
Show all changes
2036 commits
Select commitHold shift + click to select a range
e282432
Automatically remove DOM event listener on sketch removal
limzykennethJun 29, 2025
f7150c2
Switch deprecated interface to new supported one
limzykennethJun 29, 2025
df4c546
Refactor fn.noise() to use early return guard for cleaner structure
LalitNarayanYadavJul 1, 2025
604c2dd
chipping away at DOD approach.
lukeplowdenJul 1, 2025
63375bb
Merge pull request #7827 from processing/updating-contributor-docs-fo…
perminder-17Jul 4, 2025
4f81bdb
Skip adding degenerate faces in textToModel
davepagurekJul 4, 2025
8950817
nested ifs
lukeplowdenJul 5, 2025
0cd9448
Bridge p5.js noise with GLSL noise in p5.strands
LalitNarayanYadavJul 5, 2025
fd13238
Add noiseGLSL.glsl with MIT-licensed 2D noise for p5.strands
LalitNarayanYadavJul 5, 2025
f6369e7
if/else semi working
lukeplowdenJul 7, 2025
3333411
Merge pull request #7951 from processing/fix/textToModel-warnings
perminder-17Jul 7, 2025
aa4de7f
Wrap source string in brackets
nking07049925Jul 7, 2025
547bc8b
Add unit test for anonymous function modify hook
nking07049925Jul 7, 2025
848e619
Await all lifecycle hook functions in parallel
limzykennethJul 8, 2025
27ebbe3
Update src/webgl/shaders/functions/noiseGLSL.glsl
perminder-17Jul 8, 2025
f3ab0ce
Merge pull request #7921 from LalitNarayanYadav/patch-8
perminder-17Jul 8, 2025
e8cd05c
fixing as per suggestions.
perminder-17Jul 8, 2025
06cf619
docs: clarify combineColors and getPointSize documentation per mainta…
Abhayaj247Jul 9, 2025
dcc31b7
Add comment with an explanation
nking07049925Jul 9, 2025
98fc10c
Fix p5.strands uniform calls, add instance mode construct
davepagurekJul 9, 2025
e4ad5ee
Merge pull request #7956 from nking07049925/7955_strands_AnonymousFun…
davepagurekJul 9, 2025
a355416
change if/elseif/else api to be chainable and functional (return assi…
lukeplowdenJul 9, 2025
1d01ca8
docs: remove getPointSize documentation as it is not present in publi…
Abhayaj247Jul 10, 2025
f300fcf
Enhance strands noise() to support noise(x, y) and add fractal octaves
LalitNarayanYadavJul 10, 2025
b46f73e
Add 4-octave fractal noise implementation to noiseGLSL.glsl
LalitNarayanYadavJul 10, 2025
46842d0
Clean up examples a bit
davepagurekJul 10, 2025
746a481
Merge pull request #7961 from processing/fix/strands-uniforms-instance
davepagurekJul 10, 2025
e73b524
Add documentation for remaining public shader hooks in ShaderGenerato…
Abhayaj247Jul 11, 2025
ac85b7e
Add specific flags to disable individual FES components
limzykennethJul 13, 2025
cbb3328
replace fn with direct downloadFile import to fix issue where fn was …
Jul 15, 2025
3e1e149
binary ops and contructors prototyped
lukeplowdenJul 16, 2025
f718717
simplify type system
lukeplowdenJul 16, 2025
24f0c46
SSA
lukeplowdenJul 16, 2025
53355a7
Merge pull request #7964 from LalitNarayanYadav/patch-9
davepagurekJul 16, 2025
be02c79
Adding table
perminder-17Jul 16, 2025
5d56030
Merge pull request #7902 from perminder-17/code-docs
perminder-17Jul 16, 2025
6b54ecd
Address maintainer feedback: update shader hook docs and examples for…
Abhayaj247Jul 17, 2025
e2fc4b3
Merge pull request #7967 from limzykenneth/fes-granular
ksen0Jul 17, 2025
6c56f2f
Add minified ESM build output
nickswalkerJul 17, 2025
6d4540c
Merge pull request #7973 from nickswalker/minify-esm-build
ksen0Jul 18, 2025
3c29209
Fix mediaElement.copy
pearminiJul 20, 2025
50a4d64
Add unit test
pearminiJul 20, 2025
3d5c2cf
Change name to customActions
limzykennethJul 21, 2025
1f296c1
Use prefix _ convention to prevent unintended global exposure of cust…
limzykennethJul 21, 2025
8b3871a
Add documentation for custom actions and event signal
limzykennethJul 21, 2025
0851285
Return type checking for hooks with native types reimplemented (i.e. …
lukeplowdenJul 23, 2025
9b84f6f
declarations moved to backend, hook arguments fixed
lukeplowdenJul 23, 2025
8509231
rename file
lukeplowdenJul 24, 2025
47eda1a
update api imports for new filename
lukeplowdenJul 24, 2025
1088b4d
move extractTypeInfo and rename to extractNodeTypeInfo
lukeplowdenJul 24, 2025
87e8a99
rename files for clarity
lukeplowdenJul 24, 2025
e32fd47
builtin function overloads type checking
lukeplowdenJul 24, 2025
11a1610
function calls partially reimplemented. Still needs more error checking.
lukeplowdenJul 24, 2025
e8f03d6
update function calls to conform parameters when raw numbers are handed
lukeplowdenJul 25, 2025
1ddd9a2
adding struct types
lukeplowdenJul 25, 2025
f3155e6
adding struct types
lukeplowdenJul 25, 2025
babedfd
Merge branch 'strands-refactor' of github.com:lukeplowden/p5.js into …
lukeplowdenJul 25, 2025
afff707
struct types working
lukeplowdenJul 26, 2025
2e70e0e
comment old line. Should revisit structs if needs optimisation.
lukeplowdenJul 26, 2025
6d5913a
fix wrong ID in binary op node
lukeplowdenJul 26, 2025
2745bda
fix bug with binary op, and make strandsNode return node if arg is al…
lukeplowdenJul 26, 2025
b858de8
Merge pull request #7971 from acgillette/saveObj_failing_download_fix
davepagurekJul 27, 2025
3e43484
Documentation fix for swapped parameters in splinePoint and bezierPoint
shawdmJul 27, 2025
f2206fb
Merge pull request #7997 from shawdm/dev-2.0-curves-docs-fix
davepagurekJul 27, 2025
22b9a71
Update docs to match main branch
ksen0Jul 28, 2025
b3d6e87
Merge pull request #8000 from processing/docs-match-main
ksen0Jul 28, 2025
e5d4efa
2.0.4-rc.0
ksen0Jul 28, 2025
06c2c6c
Merge branch 'processing:dev-2.0' into dev-2.0
perminder-17Jul 28, 2025
cf31b71
Create auto-close-issues.yml
perminder-17Jul 28, 2025
09ce776
Update p5.Geometry.js
perminder-17Jul 28, 2025
3317bd1
Merge pull request #5 from perminder-17/perminder-17-patch-1
perminder-17Jul 28, 2025
3ca7e6c
Update README.txt
perminder-17Jul 28, 2025
bb2b666
Merge pull request #6 from perminder-17/perminder-17-patch-2
perminder-17Jul 28, 2025
11bfaa5
Revert "Update README.txt"
perminder-17Jul 28, 2025
1bace1c
Merge pull request #7 from perminder-17/revert-6-perminder-17-patch-2
perminder-17Jul 28, 2025
a9fd0d4
Revert "Update p5.Geometry.js"
perminder-17Jul 28, 2025
23e1836
Merge pull request #8 from perminder-17/revert-5-perminder-17-patch-1
perminder-17Jul 28, 2025
4133fae
fix function call bugs
lukeplowdenJul 29, 2025
a258088
Reset millis() after setup
davepagurekJul 29, 2025
0988670
fixing-docs
perminder-17Jul 29, 2025
ca9d475
Merge pull request #8006 from perminder-17/mousejs-fixing
davepagurekJul 29, 2025
b3ce3ec
remove dag sort, use basic block instructions instead. Also start wor…
lukeplowdenJul 30, 2025
9ebf77e
syntax/ remove unneccessary
lukeplowdenJun 24, 2025
faae3aa
blocking out new modular strands structure
lukeplowdenJun 27, 2025
f6783d2
chipping away at DOD approach.
lukeplowdenJul 1, 2025
06faa2c
nested ifs
lukeplowdenJul 5, 2025
5d32089
if/else semi working
lukeplowdenJul 7, 2025
95fa410
change if/elseif/else api to be chainable and functional (return assi…
lukeplowdenJul 9, 2025
627b7a3
binary ops and contructors prototyped
lukeplowdenJul 16, 2025
7899f0d
simplify type system
lukeplowdenJul 16, 2025
b731c15
SSA
lukeplowdenJul 16, 2025
7166f35
Return type checking for hooks with native types reimplemented (i.e. …
lukeplowdenJul 23, 2025
e4e54ac
declarations moved to backend, hook arguments fixed
lukeplowdenJul 23, 2025
51e8ddd
rename file
lukeplowdenJul 24, 2025
79c2f8d
update api imports for new filename
lukeplowdenJul 24, 2025
18dc1d3
move extractTypeInfo and rename to extractNodeTypeInfo
lukeplowdenJul 24, 2025
eb5f1bf
rename files for clarity
lukeplowdenJul 24, 2025
446d3ec
builtin function overloads type checking
lukeplowdenJul 24, 2025
83b4cf4
function calls partially reimplemented. Still needs more error checking.
lukeplowdenJul 24, 2025
a743c68
update function calls to conform parameters when raw numbers are handed
lukeplowdenJul 25, 2025
295c140
adding struct types
lukeplowdenJul 25, 2025
7cd3d42
adding struct types
lukeplowdenJul 25, 2025
f7b1339
struct types working
lukeplowdenJul 26, 2025
ba4be8b
comment old line. Should revisit structs if needs optimisation.
lukeplowdenJul 26, 2025
4fe4aaf
fix wrong ID in binary op node
lukeplowdenJul 26, 2025
0908e43
fix bug with binary op, and make strandsNode return node if arg is al…
lukeplowdenJul 26, 2025
5ce9451
fix function call bugs
lukeplowdenJul 29, 2025
54851ba
remove dag sort, use basic block instructions instead. Also start wor…
lukeplowdenJul 30, 2025
2b681b8
Merge branch 'strands-refactor' of github.com:lukeplowden/p5.js into …
lukeplowdenJul 30, 2025
ebaaa08
change example
lukeplowdenJul 30, 2025
dd1b2a2
Merge pull request #7980 from pearmini/fix-mediaElement-copy
ksen0Jul 31, 2025
8ae76b9
2.0.4-rc.1
ksen0Jul 31, 2025
87811da
Merge pull request #8005 from processing/millis
davepagurekJul 31, 2025
d6380c5
2.0.4-rc.2
ksen0Jul 31, 2025
c9fde09
Fix: Corrected code block in textureMode() in dev2.0
harishbitAug 1, 2025
5ef51ca
Merge pull request #8015 from abuharish02/textturemode-dev2
davepagurekAug 1, 2025
136f459
Add note about undefined custom actions to contributor docs
limzykennethAug 1, 2025
3d11637
Update src/strands/ir_builders.js
lukeplowdenAug 5, 2025
24ba4a0
Add shortcut methods for modifying base shaders and documentation
NalinDalalAug 5, 2025
347900f
remove CFG sorting, make merge block use default behaviour, change ty…
lukeplowdenAug 5, 2025
1ddd5f8
remove old file and imports
lukeplowdenAug 5, 2025
085d1b8
Merge branch 'strands-refactor' of github.com:lukeplowden/p5.js into …
lukeplowdenAug 5, 2025
1e033ca
for pr 8020
NalinDalalAug 5, 2025
bfe2867
2.0.4
ksen0Aug 5, 2025
d5b64c7
Merge branch 'processing:dev-2.0' into dev-2.0
NalinDalalAug 6, 2025
bf6b5a7
updated docs for clear instructions and documentation
NalinDalalAug 6, 2025
f652ca1
Remove unnecessary import of p5 from material.js to avoid circular de…
NalinDalalAug 6, 2025
5e726cc
Merge branch 'loopOptimization' of https://github.com/awood0727/p5.js…
awood0727Aug 1, 2025
1146190
Update ShaderGenerator docs and examples
Abhayaj247Aug 7, 2025
20ce8c7
Merge pull request #8024 from awood0727/dev-2.0
ksen0Aug 7, 2025
d041b1c
Merge branch 'processing:dev-2.0' into dev-2.0
NalinDalalAug 8, 2025
d2d1ead
Update docs: use create*Shader examples, remove misleading modify com…
NalinDalalAug 8, 2025
0d5477a
imported p5 into material to avoid build errors
NalinDalalAug 8, 2025
6cfe0fe
start from scratch
NalinDalalAug 8, 2025
74ae50c
updated yml file to resolve the pr auto-close issue
NalinDalalAug 8, 2025
36c4c2d
Address maintainer feedback: Update ShaderGenerator docs and examples
Abhayaj247Aug 8, 2025
6e1311d
Fix shouldDiscard example
Abhayaj247Aug 8, 2025
58d8e5d
Fix getPixelInputs description and getFinalColor example
Abhayaj247Aug 8, 2025
483edcb
Fix getPixelInputs description and getColor description
Abhayaj247Aug 8, 2025
203254b
regex update to listen for more flexible words
NalinDalalAug 9, 2025
29fbe52
Address Maintainer feedbacks: Update ShaderGenerator docs and examples
Abhayaj247Aug 9, 2025
2114b85
Update README.md
perminder-17Aug 11, 2025
5229bc2
Merge pull request #8029 from perminder-17/readme-updating
ksen0Aug 12, 2025
24fb3eb
fixing typo and rephrasing docs of splineProperty.
perminder-17Aug 16, 2025
1f49e14
delete testing files
perminder-17Aug 16, 2025
49d31eb
typo
perminder-17Aug 16, 2025
5be62ef
fixes
perminder-17Aug 17, 2025
39e92ac
fixes
perminder-17Aug 17, 2025
24b2ca8
fixing the link from curve() to spline()
perminder-17Aug 17, 2025
a4981a0
fixing spline() examples.
perminder-17Aug 17, 2025
c8a5a71
fixing splinePoint() and splineTangent()
perminder-17Aug 17, 2025
34ddffe
adding little detail about splineProperty(ends)
perminder-17Aug 17, 2025
9099bac
adding an example sketch for splineProperty 'ends'
perminder-17Aug 17, 2025
ba0c64a
some minor fixes
perminder-17Aug 17, 2025
ec7a3aa
fixing docs
perminder-17Aug 17, 2025
c085c12
fixes
perminder-17Aug 17, 2025
79d2fe2
Fix noise() getting overridden; add tests
davepagurekAug 18, 2025
e54b0e2
Skip shader noise test for now
davepagurekAug 18, 2025
be56924
Address maintainer feedback by refining references, param annotations…
Abhayaj247Aug 19, 2025
17992d7
updated .modify() links
Abhayaj247Aug 19, 2025
39f1fb0
Fixed syntax error at disableFriendleErrors
Iron-56Aug 19, 2025
c2fb61f
Merge pull request #8038 from Iron-56/Renderer-syntax-error-fix
davepagurekAug 19, 2025
ff81847
Address maintainer feedback by updating fill color, adjusting sphere …
Abhayaj247Aug 20, 2025
ed61111
Merge pull request #8036 from processing/fix/noise
ksen0Aug 21, 2025
cd19498
curve()---->spline()
perminder-17Aug 22, 2025
7da91e3
Removing control/anchor point usage.
perminder-17Aug 23, 2025
177e9b5
updating anchor/control points wordings in curve.js
perminder-17Aug 23, 2025
de27aa2
fix: removing unnecessary points.
perminder-17Aug 23, 2025
6be95e5
Updating more docs.
perminder-17Aug 24, 2025
22be152
adding some examples.
perminder-17Aug 24, 2025
a8d97dd
fixing lint tests
perminder-17Aug 24, 2025
88ebc9c
minor fixes
perminder-17Aug 24, 2025
3b8f573
some minor fixes.
perminder-17Aug 25, 2025
cf449f4
some minor fixes.
perminder-17Aug 25, 2025
64aaf95
2.0.5-rc.0
ksen0Aug 25, 2025
484a636
fix: suggestion.
perminder-17Aug 27, 2025
ff9c657
fix:suggestion.
perminder-17Aug 27, 2025
241998a
Removing TODO.
perminder-17Aug 27, 2025
e9eaf99
Merge pull request #8031 from perminder-17/splineDocs
perminder-17Aug 27, 2025
4e08d08
Include current HSB/HSL maxes in functions retrieving values
limzykennethAug 29, 2025
c2afbe7
Fix most of the eslint warnings currently generated
limzykennethAug 29, 2025
86bf86a
chore(ci): replace inline issue-closing script with reusable Action
NalinDalalAug 29, 2025
4cd09f1
2.0.5
ksen0Sep 1, 2025
bf63f55
Update .github/workflows/auto-close-issues.yml
ksen0Sep 1, 2025
b2b561a
Merge pull request #8025 from NalinDalal/dev-2.0
ksen0Sep 1, 2025
f933495
Fix unit test referencing undefined variable
limzykennethSep 2, 2025
2f68572
minor-fixing in shape docs
perminder-17Sep 4, 2025
611d70f
Merge pull request #8066 from perminder-17/splineDocs-minior-fix
perminder-17Sep 4, 2025
c1229d5
changes
Sep 4, 2025
cbe9c5e
change example
Sep 4, 2025
190f979
Update src/type/textCore.js
Nitin2332Sep 4, 2025
49c3911
Update src/type/textCore.js
Nitin2332Sep 4, 2025
b0790ba
Update auto-close-issues.yml
ksen0Sep 4, 2025
f998af3
Merge pull request #8069 from processing/ksen0-patch-2
ksen0Sep 4, 2025
3efe5cb
rearrange
Sep 5, 2025
ca016c3
Merge pull request #8067 from Nitin2332/fix/textwidth-spaces
perminder-17Sep 5, 2025
2b9c7f5
adding examples in curve.js
perminder-17Sep 5, 2025
70d661f
adding examples in custom-shapes
perminder-17Sep 5, 2025
9438029
Merge pull request #7940 from Abhayaj247/update-strands-docs
perminder-17Sep 5, 2025
0fbfa53
Merge branch 'dev-2.0' into eslint-fixes
limzykennethSep 9, 2025
be953ca
Merge pull request #8063 from limzykenneth/eslint-fixes
limzykennethSep 9, 2025
848a4e4
Merge branch 'dev-2.0' into events-api
limzykennethSep 9, 2025
3f16918
Perform recommended robust check for custom actions being functions
limzykennethSep 9, 2025
5787faf
Merge pull request #7947 from limzykenneth/events-api
limzykennethSep 9, 2025
a4fbdaa
Merge pull request #8070 from perminder-17/spline-work-2.0
perminder-17Sep 10, 2025
f806006
bug fixes, swizzle reads working, swizzle writes WIP
lukeplowdenSep 11, 2025
fdd141e
fixing-issue
perminder-17Sep 12, 2025
05ad75c
removing unnecessary changes
perminder-17Sep 12, 2025
62f6524
removing unnecessary changes.
perminder-17Sep 12, 2025
fb5c245
Update settings.json
perminder-17Sep 12, 2025
b0b3ee8
Update settings.json
perminder-17Sep 12, 2025
33059bc
fixing (suggestion)
perminder-17Sep 13, 2025
86ba30d
fixing indentation
perminder-17Sep 13, 2025
4e82bf3
reference-fix-2.0
Nitin2332Sep 13, 2025
752a7fe
Merge pull request #8083 from perminder-17/fontBounds-NaN
davepagurekSep 14, 2025
fc8ca8a
Merge pull request #8086 from Nitin2332/reference-fix-2.0
perminder-17Sep 14, 2025
d2c17af
fix textures, struct bugs, and add swizzle assign.
lukeplowdenSep 15, 2025
d5c7fe8
remove old shadergenerator file
lukeplowdenSep 15, 2025
100304f
remove dev console.log
lukeplowdenSep 15, 2025
6d115df
Simplify saturation function colorMode assignment
ksen0Sep 16, 2025
10a2d43
Merge pull request #8062 from limzykenneth/fix-hsbl-maxes
ksen0Sep 16, 2025
2b863e6
add instance mode changes, fix bug where struct properties returned i…
lukeplowdenSep 16, 2025
6462345
mark atan as p5 function, prevent bug where using atan outside strand…
lukeplowdenSep 16, 2025
37abf7f
add back documentation
lukeplowdenSep 16, 2025
f3afffc
add todo for internal parser options
lukeplowdenSep 16, 2025
b31cd28
Only copy array when necessary
davepagurekSep 16, 2025
4e145ca
Cache bound global functions
davepagurekSep 16, 2025
73b7601
Optimize more matrix and vector things
davepagurekSep 16, 2025
d0ed1ec
Optimize some more cases
davepagurekSep 16, 2025
8625db9
Cache types and bound functions
davepagurekSep 16, 2025
6b4c3b2
Factor out common setter
davepagurekSep 16, 2025
d4d968a
Merge branch 'dev-2.0' into strands-refactor
davepagurekSep 17, 2025
bf92d1c
Fix issue with strands being immediately active
davepagurekSep 17, 2025
a269bd7
Add back alias for previous uniformVector2 syntax
davepagurekSep 17, 2025
4a11290
Fix: allow single-arg atan() outside strands; add visual test
Abhayaj247Sep 17, 2025
795954a
Optimize further when FES is disabled
davepagurekSep 17, 2025
f88689e
Disable FES function decoration when FES is disabled
limzykennethSep 17, 2025
1a86985
Merge pull request #8094 from processing/global-function-perf
davepagurekSep 17, 2025
b5021f5
Fix atan unit tests: handle single-arg and two-arg cases, remove visu…
Abhayaj247Sep 17, 2025
18eb43c
add comments for clarity on swizzling and onrebind
lukeplowdenSep 18, 2025
bae0545
Merge branch 'strands-refactor' of github.com:lukeplowden/p5.js into …
lukeplowdenSep 18, 2025
e81920f
Parse hookTypes into a strands codegen type
davepagurekSep 18, 2025
b2e4e34
Update atan unit tests to comply with maintainer feedback
Abhayaj247Sep 18, 2025
f03d3b5
Merge pull request #8096 from Abhayaj247/fix/atan-strands
davepagurekSep 18, 2025
f43770c
Merge branch 'dev-2.0' into strands-refactor
davepagurekSep 18, 2025
ecc8061
Merge atan test file into trigonometry tests and get it working
davepagurekSep 18, 2025
d2cda2a
Merge pull request #8009 from lukeplowden/strands-refactor
davepagurekSep 18, 2025
4036e3a
Update createCamera docs since it no longer sets the active camera
davepagurekSep 19, 2025
53c12c3
Merge pull request #8100 from processing/update-createcamera-docs
ksen0Sep 19, 2025
e122564
feat(webgl) : Add activeCamera() and deprecate setCamera()
ombalgudeSep 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Switch deprecated interface to new supported one
  • Loading branch information
@limzykenneth
limzykenneth committedJun 29, 2025
commitf7150c2958f3bf780cc911a1bed0c3c33afc97f2
16 changes: 9 additions & 7 deletionssrc/events/acceleration.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -463,9 +463,7 @@ function acceleration(p5, fn, lifecycles){
* </code>
* </div>
*/

fn.setMoveThreshold = function (val) {
// p5._validateParameters('setMoveThreshold', arguments);
move_threshold = val;
};

Expand DownExpand Up@@ -505,9 +503,7 @@ function acceleration(p5, fn, lifecycles){
* </code>
* </div>
*/

fn.setShakeThreshold = function (val) {
// p5._validateParameters('setShakeThreshold', arguments);
shake_threshold = val;
};

Expand DownExpand Up@@ -647,11 +643,17 @@ function acceleration(p5, fn, lifecycles){
};

fn._handleMotion = function () {
if (window.orientation === 90 || window.orientation === -90) {
if (
screen.orientation.type === 'landscape-primary' ||
screen.orientation.type === 'landscape-secondary'
) {
this.deviceOrientation = 'landscape';
} else if (window.orientation === 0) {
} else if (
screen.orientation.type === 'portrait-primary' ||
screen.orientation.type === 'portrait-secondary'
) {
this.deviceOrientation = 'portrait';
} elseif (window.orientation === undefined){
} else {
this.deviceOrientation = 'undefined';
}

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp