Skip to Main Content
Making Things See
book

Making Things See

by Greg Borenstein
January 2012
Beginner to intermediate content levelBeginner to intermediate
440 pages
17h 11m
English
Make: Community
Content preview from Making Things See

Project 6: Invisible Pencil

This application is going to take the tracking interface we created in the last section and turn it into a drawing program. We’ll still track the closest point that the Kinect can see, but now instead of simply displaying it as a circle on top of the depth image, we’ll use that point to draw a line.

To draw a line in Processing, you need two points. Processing’s line function takes four values: the x- and y-coordinates of the first point followed the x- and y-coordinates of the second point. It draws a line on the screen that connects these two points that you give it. To transform our closest point tracking code into drawing code, we’ll need to draw a line on each frame instead of a circle. And we’ll want our line to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Make: Volume 79

Make: Volume 79

Mike Senese
Making Things Smart

Making Things Smart

Gordon F. Williams

Publisher Resources

ISBN: 9781449321918Errata