-
• #2
setColor
takes values between 0 and 1, so I think everything is just clipped to maximum red :) -
• #3
Indeed,
my mind was simply too "embedded"...the following works as expected:
Bangle.setLCDMode(); // use normal display mode g.clear(); const Width = g.getWidth(); const Height = g.getHeight(); for (let x = 0; x < Width; x++) { let Color = x/Width; g.setColor(Color,0,0); g.drawLine(x,0, x,Height-1); }
Thank you very much for your help!
What am I doing wrong here?
In the emulator, the screen is filled with a constant red color - and not the gradient I would expect.
So where is the mistake?
Thanks in advance for any help!
Kind regards,
Andreas Rozek