Include alpha blending mode

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent 42659cda91
commit c049e41a5e
  1. BIN
      CProjectTemplate
  2. 7
      main.cpp

Binary file not shown.

@ -12,16 +12,17 @@ public:
public:
bool OnUserCreate() override
{
SetPixelMode(olc::Pixel::ALPHA);
// Called once at the start, so create things here
for (int x = 0; x < ScreenWidth(); x++)
for (int y = 0; y < ScreenHeight(); y++)
Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255));
return true;
}
bool OnUserUpdate(float fElapsedTime) override
{
// called once per frame
for (int x = 0; x < ScreenWidth(); x++)
for (int y = 0; y < ScreenHeight(); y++)
Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255));
return true;
}
};

Loading…
Cancel
Save