Skip to content

Stop re-creating BasicSprite's default color #2059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading