-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote sprite depth examples from experimental to main (#2434)
* Fix sprite depth examples to use new-style clock property instead of updating time locally * Fix annoying indent on list at top of comments * Convert sprite_depth_cosine.py and depth_of_field.py to use new-style views style * Use local assignments where appropriate * Move examples * Fix run strings at top of file to reflect new locations * Make the background clear color a Color instance defined at the top of the file * Use WINDOW_TITLE, WINDOW_WIDTH, and WINDOW_HEIGHT constants * Add sprite_deph_cosine and depth_of_field to arcade.examples * Add a screenshots and .rst files for each * Add depth_of_field.py to the examples gallery * Add a screenshot for the page and gallery * Add an example .rst file for it * Add entries in the examples page * Fix issue @alejcas pointed out * Put example tiles in appropriate sections based on feedback * Fix comments and naming conventions for example components per GitHub review * Centralize and document near/far defaults in cameras * Linting
- Loading branch information
Showing
11 changed files
with
164 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:orphan: | ||
|
||
.. _depth_of_field: | ||
|
||
Depth of Field Blur | ||
=================== | ||
|
||
.. image:: images/depth_of_field.png | ||
:width: 600px | ||
:align: center | ||
:alt: Screenshot of a time-dependent depth of field blur effect. | ||
|
||
.. literalinclude:: ../../arcade/examples/depth_of_field.py | ||
:caption: depth_of_field.py | ||
:linenos: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.