Replies: 7 comments 4 replies
-
The alphaBlend function will return a colour that is a blend between any two colours. The ratio of colours is given by alpha. There is an example in the library: Here is an example that fades out an image stored in LittleFS. |
Beta Was this translation helpful? Give feedback.
-
It worked like a charm ! I am actually shocked how fast it processes on a
ESP32.
…On Wed, Sep 27, 2023 at 12:24 AM SaKiEQ ***@***.***> wrote:
Your a super star ! Thank very much, will try in the morning.
I have been thinking all evening that it could be rather simple.
The base image is essentially grey scale (white background with black
letters at day-time), the at night white is replaced by red.
So in my thinking I just had to ditch the green and the blue, leaving the
red behind.
Right now I have 2 images for each state, ditching the red one, while
replacing it an array of pixels, will keep the memory footprint about the
same. Only at the expense of updating / recomputing the array during the
fade transition.
Never done this before, but fascinating.
—
Reply to this email directly, view it on GitHub
<#2863 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIO2YOHORGYN3UT64YZDTP3X4NBZLANCNFSM6AAAAAA5IB6GPQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Sarah Kimberly Euschen
Production Designer
Westbay Lagoon
Doha, Qatar
https://themagicalworldofsakie.wordpress.com
|
Beta Was this translation helpful? Give feedback.
-
and here is the result... The display is running at 8bit ,since there is really no graphics going on that require more. The ESP32 drives the 240x320 touch display, handles a GPS Neo-7M, MPU6050, RTC, Magnetometer, runs an SQLite database, Wifi, Bluetooth, MQTT services in the background, while refreshing the display at around 200ms, so approx 5fps. So overall impressive that it works so well. vcompress_1.mov |
Beta Was this translation helpful? Give feedback.
-
Trying to run the alphaBlend_test sketch and getting compile errors below. I'm using a RP2040 and ILI9341 that is working fine with other TFT_eSPI projects. Any ideas please?
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay getting back to you.
I installed the latest TFT_eSPI (2.5.34) from the Arduino Library Manager, and now I can’t even get example sketches running. I do note that it now complains about “TOUCH_CS pin not defined”, but it proceeds to compile – just white screen.
Do I need to change a setting or config?
From: Bodmer ***@***.***>
Sent: Thursday, February 15, 2024 1:22 PM
To: Bodmer/TFT_eSPI ***@***.***>
Cc: dslocum ***@***.***>; Comment ***@***.***>
Subject: Re: [Bodmer/TFT_eSPI] Fading Image (Discussion #2863)
Download and install the latest master library on Github. Let me know if it works.
Let me kinow which version of the RP2040 board package you are using.
—
Reply to this email directly, view it on GitHub <#2863 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEAJ2QOZQ6EIL7TDUI5AJBLYTZG4VAVCNFSM6AAAAAA5IB6GPSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DIOBTHAZTO> .
You are receiving this because you commented.Message ID: < ***@***.***> ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you sir. This is a hell of a nice library. Very complete and solid.
I’ll be sure to check out that link soon. Greatly appreciate your efforts and assistance.
From: Bodmer ***@***.***>
Sent: Thursday, February 22, 2024 4:24 PM
To: Bodmer/TFT_eSPI ***@***.***>
Cc: dslocum ***@***.***>; Comment ***@***.***>
Subject: Re: [Bodmer/TFT_eSPI] Fading Image (Discussion #2863)
Yes, that is a Gotcha. Normally Arduino libraries do not need configuration within the library but TFT_eSPI does. There are some tips here that may be of interest:
https://github.com/Bodmer/TFT_eSPI#tips
—
Reply to this email directly, view it on GitHub <#2863 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEAJ2QKTRCBNR55DA72TPHTYU6ZQTAVCNFSM6AAAAAA5IB6GPSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DKNRRHAZTG> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AEAJ2QPXSGQBDPXSXXDFVTDYU6ZQTA5CNFSM6AAAAAA5IB6GPSWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAQKSKS.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Hi again.
I realize this is not your product and probably unfair asking you, but I’m trying to get LVGL to work. I already have your library working nicely, but I need some of the controls that LVGL offers. It seems it is “supposed” to integrate with your library, but after hours – no DAYS – of trying, I can’t get a good compile of even the included “LVGL_Arduino” demo. Tried my best to follow the many convoluted configuration examples, but without success.
Any help of pointers would be most welcome.
Doug
From: Bodmer ***@***.***>
Sent: Thursday, February 22, 2024 4:24 PM
To: Bodmer/TFT_eSPI ***@***.***>
Cc: dslocum ***@***.***>; Comment ***@***.***>
Subject: Re: [Bodmer/TFT_eSPI] Fading Image (Discussion #2863)
Yes, that is a Gotcha. Normally Arduino libraries do not need configuration within the library but TFT_eSPI does. There are some tips here that may be of interest:
https://github.com/Bodmer/TFT_eSPI#tips
—
Reply to this email directly, view it on GitHub <#2863 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEAJ2QKTRCBNR55DA72TPHTYU6ZQTAVCNFSM6AAAAAA5IB6GPSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DKNRRHAZTG> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AEAJ2QPXSGQBDPXSXXDFVTDYU6ZQTA5CNFSM6AAAAAA5IB6GPSWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAQKSKS.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Howdy,
has anybody ever done a image fade, from to another, or from image to a color ?
I am running on a ESP32, with 240x320 color display, so there is some processing power,
but it is also doing a lot of other things. I might be a low on memory, so soaring all the in-between
frames seems too much of a punishment.
I have a compass dial, as a grey scale image, that I want to fade in color depending on ambient light.
All other screen elements worked fine, I just haven't talked the image portion yet.
The image starts off a greyscale, the end would be all the white parts would be gradually changed to red.
Would some form of XOR function on pixel level be performant enough, or is there a 'cheaper' way ?
Any pointers, hints or examples ?
Thx
Beta Was this translation helpful? Give feedback.
All reactions