Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA:

More graphics commands in LUA ( graphical "gauge toolkit") 23 Mär 2017 13:50 #1

  • Sepp62
  • Sepp62s Avatar Autor
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Beiträge: 289
  • Dank erhalten: 134
After implementing some LUA apps, I found that some more grahical commands would be useful. The main purpose is, to have tools for painting cool "gauges", i.e. for temperature, fuel, etc.

1. A generic "Fill"-function would help to paint i.e. polygon figures (painted/framed with the line-function)

2. Definition of a background canvas
The background canvas will be initialized once at program start. It usually will contain a scale i.e. for a fuel gauge. The background canvas will not be overwritten by graphical "draw"-commands issued from the normal telemetry update function.

3. Graphical objects
An array of paint commands (i.e. lines, rect, fill, etc.) which can be rotated around an origin point and then drawn to the canvas (i.e. the needle of a gauge).

4. For DC/DS-16
A simple image-function to load a small monochrome image from the sd card (i.e. the background of a gauge)

Though the DC/DS14/16 systems lack of memory, such a function set would increase functionality AND help to save memory. The function set would help to build cool "dashboards" which we know from Graupner and JR-systems.

Best regards
Bernd

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Seite:
  • 1
Ladezeit der Seite: 0.158 Sekunden
Powered by Kunena Forum