Ramp / Curved Bargraph - Help needed #1607
Replies: 3 comments 3 replies
-
A way to do it:
|
Beta Was this translation helpful? Give feedback.
-
Hey @ht93 ! Thank you for the idea, im new to the sprites, I also have some concerns about my RAM usage (I Have Canbus and Wifi running without PS-RAM). If I have to mask out the Filling area, I could spend the time and try to fill it up with Lines? it is also a tedious job. :( |
Beta Was this translation helpful? Give feedback.
-
The vertical lines approach would be the most memory efficient. For example an array of start x,y and length. I do not know how you created the guage, if you created that as an image then you could also create an image of the area to be updated and plot in a 1bpp sprite, the sketch can then scan the sprite and put the array data for the lines in a file or send the values to the serial port in an array compatible text format. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
Im trying to make a custom Gauge - This time I Need a ramped Bar graph.
I Got my pretty Drawing on the Screen but I don´t know how to start with the progress bar.

I want to make something simmilar to this:

my first toughts where to usw vertical lines to build the graph.
Make 2. Arrays one with the length of the lines and one with the x/y coordinates. Than Map the Array to my value and draw with the TFT functions.
I know this will take ages to line up all the Lines and a lot of trial and error.
Is there a smarter solution for my usecase?
Beta Was this translation helpful? Give feedback.
All reactions