mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Transforming PaletteEntry#paint into a full method and adding more colors to BasicPalette (#725)
* Transforming PaletteEntry#paint into a full method * Fixing some errors that went unoticed * Update packages/flame/CHANGELOG.md Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net> * Update packages/flame/CHANGELOG.md Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net> * followup * format Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
This commit is contained in:
@ -13,7 +13,7 @@ void main() {
|
||||
|
||||
class MyGame extends Game {
|
||||
static const int squareSpeed = 400;
|
||||
static final squarePaint = BasicPalette.white.paint;
|
||||
static final squarePaint = BasicPalette.white.paint();
|
||||
late Rect squarePos;
|
||||
int squareDirection = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user