Making Sense of Touch and Sensors with p5.js
摘要
Moving from Processing to p5.js enables not only a wider reach by being able to put your sketches on the web and make them accessible to a potentially huge audience. It also means that your sketches can run on mobile devices such as tablets and phones. This is more than being able to carry your creative work around; tablets and phones have built-in sensors and interaction capabilities that you would not easily find on a desktop computer. In this chapter, we will focus on multi-touch input and accessing sensors that provide us with data about acceleration and rotation. And, of course, we will use this in a creative way.