CodingTrain / CodingTrain/Suggestion-Box
Series about p5.js on mobile devices
- Dominant language
- No language data
- Stars
- 570
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
I've seen there are a ton of methods in the p5 reference about the rotation, acceleration and other properties of a mobile device.
*I think it would be very inspiring to see a couple of examples* what to do with this, because, at least for me, I use my phone more than my laptop and having that high precision accelerometer unused is just a shame.
This could be a 10-min video about how to use this (just like 10 Print), or a longer series with many examples. For better viewability you could use the iPad you've been using as a soundboard in the past.
I encourage everyone to add other ideas, here are some I came up with:
## A Level for hanging pictures
Maybe good for a starter: The screen shows the angle of the device, so if you put the edge on a table it will say 0°, feel free to use radians ;)
## Pendulum
An ellipse connected to a line, hanging off the top/center of the screen, which always hangs downwards, even if the device is tilted. (If the device is moved sideways, the pendulum will accelerate and start swinging.)
## Marble on a Plate
Click the screen and a marble (ellipse) will appear. Depending on the rotation of the device it will roll off in a certain direction
### Marble in a Maze
create a small maze with [CC#10](https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_10_Maze_DFS_p5.js) and place the marble at the start, try to get to the end (without touching the borders)
### [Pong](https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_67_Pong_p5.js) vs. Computer
Sideways rotation of device --> position of slider
## Make something happen when you shake the device
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.