Touch Tracer Line Drawing Demonstration
=======================================

.. |pic26| image:: /images/examples/demo__touchtracer__main__py.png
   :width: 50%
   :align: middle

|pic26|

This demonstrates tracking each touch registered
to a device. You should see a basic background
image. When you press and hold the mouse, you
should see cross-hairs with the coordinates
written next to them. As you drag, it leaves a
trail. Additional information, like pressure, will
be shown if they are in your device's
touch.profile.

This program specifies an icon, the file
`icon.png`_, in its App subclass. It also uses the
particle.png file as the source for drawing the
trails which are white on transparent. The file
`touchtracer.kv`_ describes the application.

The file `android.txt`_ is used to package the
application for use with the Kivy Launcher Android
application. For Android devices, you can
copy/paste this directory into
/sdcard/kivy/touchtracer on your Android device.



.. _`main.py`:

File **demo/touchtracer/main.py**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. include:: ../../../examples/demo/touchtracer/main.py
    :code:

.. _`icon.png`:

Image **demo/touchtracer/icon.png**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. image:: ../../../examples/demo/touchtracer/icon.png
     :align:  center

.. _`touchtracer.kv`:

File **demo/touchtracer/touchtracer.kv**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. highlight:: kv
    :linenothreshold: 3

.. include:: ../../../examples/demo/touchtracer/touchtracer.kv
    :code:

.. _`android.txt`:

File **demo/touchtracer/android.txt**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. include:: ../../../examples/demo/touchtracer/android.txt
    :code:
