Stay organized with collections
Save and categorize content based on your preferences.
Adjusts some attributes of the parent group- or part-based element according to
arithmetic expressions that includes gyroscopic sensor data sources, such
as ACCELEROMETER_ANGLE_X.
The Gyro element has the following optional attributes:
x, y
A pair of arithmetic expressions that, when evaluated, specify the amount of
horizontal or vertical movement that the gyroscopic effect applies to the parent
element.
scaleX, scaleY
A pair of arithmetic expressions that, when evaluated, specify the amount of
horizontal or vertical size scaling that the gyroscopic effect applies to the
parent element.
angle
An arithmetic expression that, when evaluated, indicates a number of degrees,
clockwise, that the element should be rotated about its pivot point based on
gyroscopic sensors.
alpha
An arithmetic expression that, when evaluated, indicates the level of
transparency that this element should have based on gyroscopic sensors. A value
of 0 indicates that the element should be completely transparent. A value of
255 indicates that the element should be completely opaque.
Recommended for you
Note: link text is displayed when JavaScript is off
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-01 UTC."]]