<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to APP_Face</title><link>https://sourceforge.net/p/pirobot/wiki/APP_Face/</link><description>Recent changes to APP_Face</description><atom:link href="https://sourceforge.net/p/pirobot/wiki/APP_Face/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 25 Apr 2024 22:24:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pirobot/wiki/APP_Face/feed" rel="self" type="application/rss+xml"/><item><title>APP_Face modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/APP_Face/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -13,4 +13,42 @@
 The **name** of the App to switch to when the lower part of the face is touched.

 ###menuToShow
-The **APP_MENU.cMenu instance** which is used for the underlying APP_MENU-App
+The **APP_MENU.cMenu instance** which is used for the underlying APP_MENU-App.
+
+##App-class
+###def drawClockLines(self, screen)
+Draws the lines for the clock on the eyes when the screen is touched.
+
+`screen` is the pygame surface to draw on.
+
+###def drawPupilLines(self, screen)
+Draws the lines on the pupils when the screen is touched.
+
+`screen` is the pygame surface to draw on.
+
+###def setPupilsToTime(self)
+Sets the pupil position according to the actual time when the screen is touched.
+
+###def drawMouth(self, screen, which)
+Draws the mouth geometry on the lower part of the display.
+It has several mouths to draw, determined by `which`.
+
+`screen` is the pygame surface to draw on.
+`which` is the name of the mouth to draw.
+Values are: **smile, smile2, o, neutral**
+
+###def setRandomPupilPosition(self)
+Sets the position of the pupils to a random angle.
+Also selects randomly a new mouth to draw.
+
+###def onMouseUp(self)
+Switches to the `underlyingApp` when the lower part of the display is touched.
+
+###def onMouseDown(self)
+Shows the clock.
+
+###def onSwitchToApp(self)
+Sets the `APP_MENU.CURRENT_MENU` to `menuToShow`
+
+###def update(self, screen, deltatime)
+Calls all the drawing functions and also draws the pupils.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 25 Apr 2024 22:24:17 -0000</pubDate><guid>https://sourceforge.net63e772dec8f0094843ddcdeaf815c92dff9af83b</guid></item><item><title>APP_Face modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/APP_Face/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="app_face"&gt;APP_Face&lt;/h1&gt;
&lt;p&gt;This App just draws some geometry which looks like a face.&lt;/p&gt;
&lt;p&gt;When the upper part is touched, the eyes turn into a clock.&lt;br/&gt;
The pupil then moves to the corresponding place.&lt;br/&gt;
The left eye shows the hours and has 12 hour indicator lines on it.&lt;br/&gt;
The right eye shows the minutes and has 60 minute indicator lines on it.&lt;/p&gt;
&lt;p&gt;When the lower part is touched, it switches to APP_MENU by default.&lt;/p&gt;
&lt;h2 id="globals"&gt;Globals&lt;/h2&gt;
&lt;h3 id="underlyingapp"&gt;underlyingApp&lt;/h3&gt;
&lt;p&gt;The &lt;strong&gt;name&lt;/strong&gt; of the App to switch to when the lower part of the face is touched.&lt;/p&gt;
&lt;h3 id="menutoshow"&gt;menuToShow&lt;/h3&gt;
&lt;p&gt;The &lt;strong&gt;APP_MENU.cMenu instance&lt;/strong&gt; which is used for the underlying APP_MENU-App&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 25 Apr 2024 21:44:18 -0000</pubDate><guid>https://sourceforge.net21560bbd528505d0ee911ea8b900491f157679a2</guid></item></channel></rss>