Skip to content
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

Finish #1845 : Move Background classes to experimental #1890

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion arcade/examples/background_blending.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from __future__ import annotations

import arcade
import arcade.background as background
import arcade.experimental.background as background

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
Expand Down
2 changes: 1 addition & 1 deletion arcade/examples/background_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from __future__ import annotations

import arcade
import arcade.background as background
import arcade.experimental.background as background

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
Expand Down
2 changes: 1 addition & 1 deletion arcade/examples/background_parallax.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from __future__ import annotations

import arcade
import arcade.background as background
import arcade.experimental.background as background


SCREEN_TITLE = "Background Group Example"
Expand Down
2 changes: 1 addition & 1 deletion arcade/examples/background_scrolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from __future__ import annotations

import arcade
import arcade.background as background
import arcade.experimental.background as background

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
Expand Down
2 changes: 1 addition & 1 deletion arcade/examples/background_stationary.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from __future__ import annotations

import arcade
import arcade.background as background
import arcade.experimental.background as background

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
Expand Down
16 changes: 16 additions & 0 deletions arcade/experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
from .shadertoy import Shadertoy, ShadertoyBuffer, ShadertoyBase
from .crt_filter import CRTFilter
from .bloom_filter import BloomFilter
from .background import (
Background,
BackgroundGroup,
ParallaxGroup,
BackgroundTexture,
texture_from_file,
background_from_file
)


__all__ = [
"VideoPlayer",
Expand All @@ -18,8 +27,15 @@
"ShadertoyBase",
"CRTFilter",
"BloomFilter",
"Background",
"BackgroundGroup",
"ParallaxGroup",
"BackgroundTexture",
"texture_from_file",
"background_from_file"
]


# Keep cv2 an optional dependency
try:
from .video_cv2 import CV2PlayerView, VideoPlayerCV2 # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from arcade import get_window
from arcade.resources import resolve

from arcade.background.background_texture import BackgroundTexture
from arcade.background.background import Background
from arcade.background.groups import BackgroundGroup, ParallaxGroup
from arcade.experimental.background.background_texture import BackgroundTexture
from arcade.experimental.background.background import Background
from arcade.experimental.background.groups import BackgroundGroup, ParallaxGroup

__all__ = [
"Background",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from arcade.window_commands import get_window
import arcade.gl as gl

from arcade.background import BackgroundTexture
from arcade.experimental.background import BackgroundTexture


class Background:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional, Union, List, Tuple

import arcade.gl as gl
from arcade.background import Background
from arcade.experimental.background import Background


class BackgroundGroup:
Expand Down
5 changes: 5 additions & 0 deletions doc/example_code/how_to_examples/background_parallax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
Parallax
========

.. warning:: This example is experimental!

The features it uses may change rapidly or be replaced in
future arcade releases!

.. image:: background_parallax.png
:width: 600px
:align: center
Expand Down
Loading