TINKER PiEDESIGN IN INDIA
Intermediate

AR Air DrawingDraw glowing lines in the air with your fingertip; open your hand to wipe the picture.

You write a short TinkerPie Python program by following the Code guide in the workspace, then press Run. The sample program and step-by-step guide are always there to help.

What you will learn

  • Fingertip tracking
  • Drawing with points
  • Pen up / pen down logic

What you need

  • A laptop, tablet or phone with a camera (Virtual Cube)

Steps

  1. Type the program from the Code guide, then press Run.
  2. Point with one finger and move it to draw.
  3. Lift a second finger to stop drawing; open your whole hand to clear.

How it works

The hand AI gives the position of your index fingertip (tip_x, tip_y from 0 to 1). Paint remembers the points and joins them into lines. lift() starts a new line.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
Coordinates
tip_x and tip_y go from 0 to 1 across the picture.
Object state
paint keeps its points between pictures.

Expected output

A glowing cyan line following your fingertip while only the index finger is up. An open hand clears the drawing.

Challenges

  • Change paint.color to "orange".
  • Make thumbs up change the colour.
  • Make the pen thicker with paint.size.

More AR/VR projects

Intermediate15 minAR / VR, Gesture Recognition

AR Magic Hands

Make stars appear on your hands, and hearts when you show a thumbs up.

  • Stickers on hands
  • Gestures that change AR
  • Counting hands
Hardware: Laptop, tablet or phone cameraAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera
Intermediate20 minAR / VR

Spinning Shape Gallery

Make a row of colourful shapes and spin them for ever with a loop.

  • Lists of objects
  • for loops with range()
  • Animation with small steps
Hardware: Any device; a phone VR viewer for headset modeAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera
Intermediate20 minAR / VR

Night Forest Walk

Grow a random forest under the stars and walk through it in VR.

  • Random positions
  • Loops that build worlds
  • Exploring a scene in VR
Hardware: Any device; a phone VR viewer for headset modeAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera