Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SceneGame::DrawTime( sf::RenderWindow& window )
- {
- int px = ( time / 5 );
- sf::Color mix = timeGradient.GetPixel( 0, px );
- sf::Shape shape = sf::Shape::Rectangle( 0, 0, Game::WindowSize.x + 2, Game::WindowSize.y - 64 + 1, mix );
- shape.SetBlendMode( sf::Blend::Alpha );
- window.Draw( shape );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement