More graphics commands in LUA ( graphical "gauge toolkit")

  • Sepp62
  • Sepp62's Avatar Offline Autor
  • Elite Mitglied
  • Elite Mitglied
  • Beiträge: 294
  • Dank erhalten: 154

More graphics commands in LUA ( graphical "gauge toolkit") wurde erstellt von Sepp62

Posted 23 März 2017 13:50 #1
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
von Sepp62

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.974 Sekunden