lovyan03/LovyanGFX

"fillGradientRect" not reacting on y-koordinate using "VLINEAR"

Closed this issue · 5 comments

Carefully written Issues are more likely to be given priority.
丁寧に記述された報告は優先して対応される可能性が高くなります。

Environment ( 実行環境 )

  • MCU or Board name: [ESP-WROOM-32|]
  • Panel Driver IC: [RGB-Display]
  • Bus type:
  • LovyanGFX version: [v1.1.16]
  • FrameWork version: [ArduinoESP32]
  • Build Environment: [PlatformIO]
  • Operating System: [Windows]

Problem Description ( 問題の内容 )

using fillGradientRect the Y-coordinate looks always to be 0.

Thats my code.
tft.fillGradientRect( 300, 199, 150, 300, heatMapGradient, lgfx::VLINEAR );

instead of the "199" it is a "0" used. -> The grafic is always on top of the display.
Using lgfx::RADIAL instead of lgfx::VLINEAR the grafic is moving as expected

Expected Behavior ( 期待される動作 )

Actual Behavior ( 実際の動作 )

Steps to reproduce ( 再現のための前提条件 )

  1. step1
  2. ...

// If possible, attach a picture of your setup/wiring here.

Code to reproduce this issue ( 再現させるためのコード )

Please submit complete source code that can reproduce your problem.
あなたの問題を再現できる完全なソースコードを提示してください。

// the code should be wrapped in the ```cpp tag so that it will be displayed better.
#include "esp_log.h"

void app_main()
{

}

// If your code is longer than 30 lines, GIST is preferred.

I want to say: whatever y-coordinate I am using (199 in my example), the grafic is not on the expected place. It always stays on the top of the display. Looks like the function is ignoring the value and always using a "0".

hi, thanks for spotting that 👍

a fix has been pushed

TY for quick fixing this.
Working now as expected 👍

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.