HP Forums
FW 10077 and RECT_P (issue) - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: FW 10077 and RECT_P (issue) (/thread-6128.html)



FW 10077 and RECT_P (issue) - komame - 04-24-2016 11:18 AM

Hi,

I noticed a strange issue in the RECT_P (FW 10077).

Try this code:
Code:
EXPORT RECT_P_TEST_ALPHA()
BEGIN
  local c = #FF0000;
  RECT_P(G0,0);

  TEXTOUT_P("TRANSPARENCY 0",40,0,4,#FFFFFF);
  RECT_P(40,0,200,19,{c,0}); // should be opaque

  TEXTOUT_P("TRANSPARENCY 50",40,40,4,#FFFFFF);
  RECT_P(40,40,200,59,{c,50});

  TEXTOUT_P("TRANSPARENCY 100",40,80,4,#FFFFFF);
  RECT_P(40,80,200,99,{c,100});

  TEXTOUT_P("TRANSPARENCY 150",40,120,4,#FFFFFF);
  RECT_P(40,120,200,139,{c,150});

  TEXTOUT_P("TRANSPARENCY 200",40,160,4,#FFFFFF);
  RECT_P(40,160,200,179,{c,200});

  TEXTOUT_P("TRANSPARENCY 255",40,200,4,#FFFFFF);
  RECT_P(40,200,200,219,{c,255}); // should be transparent

  WAIT();
END;

The middle transparency values are displayed properly, but the first text shouldn't be visible because of black ractange (transparency = 0) covers the text and the last one should be visible (255 = full transparency fo rectangle), but it did'nt displays this way.

Edit:
I think also there is a inconsistency with alpha parameter for BLIT and RECT, because in BLIT for apha = 0 means full transparency but for RECT alpha = 0 means full opaque.


RE: FW 10077 and RECT_P (issue) - cyrille de brébisson - 04-25-2016 05:32 AM

hello,

Thanks, will place this in the list.

Cyrille


RE: FW 10077 and RECT_P (issue) - Carlos295pz - 11-08-2017 12:15 AM

Very happy with the alpha theme has finally been corrected