Skip to content

Commit

Permalink
Stop re-creating BasicSprite's initial color each time (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushfoo committed Apr 9, 2024
1 parent 71de1f8 commit 1a35005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arcade/sprite/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import arcade
from arcade.types import Point, Color, RGBA255, RGBOrA255, PointList
from arcade.color import BLACK
from arcade.color import BLACK, WHITE
from arcade.hitbox import HitBox
from arcade.texture import Texture

Expand Down Expand Up @@ -60,7 +60,7 @@ def __init__(
self._height = texture.height * scale
self._scale = scale, scale
self._visible = bool(visible)
self._color: Color = Color(255, 255, 255, 255)
self._color: Color = WHITE
self.sprite_lists: List["SpriteList"] = []

# Core properties we don't use, but spritelist expects it
Expand Down

0 comments on commit 1a35005

Please sign in to comment.