bro
No files matched your search
@@ -1,10 +0,0 @@
|
||||
# python -m pygame.docs
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
PKG_DIR = Path(__file__).absolute().parent / "generated"
|
||||
|
||||
|
||||
# for test suite to confirm pygame-ce built with local docs
|
||||
def has_local_docs():
|
||||
return PKG_DIR.exists()
|
||||
@@ -1,17 +1,37 @@
|
||||
import platform
|
||||
# python -m pygame.docs
|
||||
|
||||
# use relative import here and not absolute, so that `python -m docs` works at
|
||||
# development time
|
||||
from .serve import main as serve
|
||||
from .static import main as static
|
||||
import os
|
||||
import webbrowser
|
||||
from urllib.parse import quote, urlunparse
|
||||
|
||||
|
||||
def main():
|
||||
if platform.system() == "Linux":
|
||||
serve()
|
||||
def _iterpath(path):
|
||||
path, last = os.path.split(path)
|
||||
if last:
|
||||
yield from _iterpath(path)
|
||||
yield last
|
||||
|
||||
|
||||
# for test suite to confirm pygame built with local docs
|
||||
def has_local_docs():
|
||||
pkg_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
main_page = os.path.join(pkg_dir, "generated", "index.html")
|
||||
return os.path.exists(main_page)
|
||||
|
||||
|
||||
def open_docs():
|
||||
pkg_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
main_page = os.path.join(pkg_dir, "generated", "index.html")
|
||||
if os.path.exists(main_page):
|
||||
url_path = quote("/".join(_iterpath(main_page)))
|
||||
drive, rest = os.path.splitdrive(__file__)
|
||||
if drive:
|
||||
url_path = f"{drive}/{url_path}"
|
||||
url = urlunparse(("file", "", url_path, "", "", ""))
|
||||
else:
|
||||
static()
|
||||
url = "https://www.pygame.org/docs/"
|
||||
webbrowser.open(url)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
open_docs()
|
||||
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 124 KiB |
|
Before Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 42 B |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 52 B |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
@@ -12,14 +12,12 @@ pygame C API
|
||||
c_api/display.rst
|
||||
c_api/event.rst
|
||||
c_api/freetype.rst
|
||||
c_api/joystick.rst
|
||||
c_api/mixer.rst
|
||||
c_api/rect.rst
|
||||
c_api/rwobject.rst
|
||||
c_api/surface.rst
|
||||
c_api/surflock.rst
|
||||
c_api/version.rst
|
||||
c_api/window.rst
|
||||
|
||||
|
||||
src_c/include/ contains header files for applications
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Pygame-ce Front Page
|
||||
====================
|
||||
Pygame Front Page
|
||||
=================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
@@ -7,8 +7,9 @@ Pygame-ce Front Page
|
||||
:hidden:
|
||||
|
||||
ref/*
|
||||
tutorials/en/*
|
||||
tutorials/es/*
|
||||
tut/*
|
||||
tut/en/**/*
|
||||
tut/ko/**/*
|
||||
c_api
|
||||
filepaths
|
||||
logos
|
||||
@@ -16,10 +17,9 @@ Pygame-ce Front Page
|
||||
Quick start
|
||||
-----------
|
||||
|
||||
Welcome to pygame-ce! Once you've got pygame-ce installed
|
||||
(:code:`pip install pygame-ce` or :code:`pip3 install pygame-ce` for most
|
||||
people), the next question is how to get a game loop running. Pygame-ce,
|
||||
unlike some other libraries, gives you full control of program
|
||||
Welcome to pygame! Once you've got pygame installed (:code:`pip install pygame` or
|
||||
:code:`pip3 install pygame` for most people), the next question is how to get a game
|
||||
loop running. Pygame, unlike some other libraries, gives you full control of program
|
||||
execution. That freedom means it is easy to mess up in your initial steps.
|
||||
|
||||
Here is a good example of a basic setup (opens the window, updates the screen, and handles events)--
|
||||
@@ -32,39 +32,9 @@ Here is a slightly more fleshed out example, which shows you how to move somethi
|
||||
.. literalinclude:: ref/code_examples/base_script_example.py
|
||||
|
||||
For more in depth reference, check out the :ref:`tutorials-reference-label`
|
||||
section below, or reference the API documentation by module.
|
||||
|
||||
Experimental modules
|
||||
--------------------
|
||||
|
||||
Experimental modules are work in progress, this is why you should refrain from relying on any features
|
||||
provided by these modules, as they are subject to change or removal without prior notice.
|
||||
If you want to test these experimental modules, you might want to understand how you import
|
||||
them, this is how you can do it:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from pygame import experimental_module
|
||||
# Or for specific modules like _sdl2.controller
|
||||
from pygame._sdl2 import controller
|
||||
# Or
|
||||
import pygame.experimental_module
|
||||
|
||||
Don't forget to report us any problem with the experimental features on `github`_ so we can easily
|
||||
turn them to stable API in the future ^^.
|
||||
|
||||
**Below is currently the list of experimental modules :**
|
||||
|
||||
:doc:`ref/geometry`
|
||||
Pygame module for the Circle, Line, and Polygon objects.
|
||||
|
||||
:doc:`ref/sdl2_controller`
|
||||
Pygame module to work with controllers.
|
||||
|
||||
:doc:`ref/sdl2_video`
|
||||
Pygame module for porting new SDL video systems.
|
||||
|
||||
.. _github: https://github.com/pygame-community/pygame-ce
|
||||
section below, check out a video tutorial (`I'm a fan of this one
|
||||
<https://www.youtube.com/watch?v=AY9MnQ4x3zk>`_), or reference the API
|
||||
documentation by module.
|
||||
|
||||
Documents
|
||||
---------
|
||||
@@ -72,6 +42,10 @@ Documents
|
||||
`Readme`_
|
||||
Basic information about pygame: what it is, who is involved, and where to find it.
|
||||
|
||||
`Install`_
|
||||
Steps needed to compile pygame on several platforms.
|
||||
Also help on finding and installing prebuilt binaries for your system.
|
||||
|
||||
:doc:`filepaths`
|
||||
How pygame handles file system paths.
|
||||
|
||||
@@ -89,65 +63,52 @@ Documents
|
||||
Tutorials
|
||||
---------
|
||||
|
||||
| `Master Python by making 5 games [the new ultimate introduction to pygame] <https://www.youtube.com/watch?v=8OMghdHP-zs>`_
|
||||
| YouTube video by Clear Code.
|
||||
:doc:`Introduction to Pygame <tut/PygameIntro>`
|
||||
An introduction to the basics of pygame.
|
||||
This is written for users of Python and appeared in volume two of the Py magazine.
|
||||
|
||||
| `Pygame in 18 Minutes <https://www.youtube.com/watch?v=blLLtdv4tvo>`_
|
||||
| YouTube video by DaFluffyPotato.
|
||||
|
||||
| `Introduction to Pygame-ce, 2D game programming <https://github.com/adamsralf/pygame_book/blob/main/00%20pygamece.pdf>`_
|
||||
| Book by Ralf Adams.
|
||||
|
||||
:doc:`Newbie Guide <tutorials/en/newbie-guide>`
|
||||
A list of thirteen helpful tips for people to get comfortable using pygame.
|
||||
|
||||
:doc:`Import and Initialize <tutorials/en/import-init>`
|
||||
:doc:`Import and Initialize <tut/ImportInit>`
|
||||
The beginning steps on importing and initializing pygame.
|
||||
The pygame package is made of several modules.
|
||||
Some modules are not included on all platforms.
|
||||
|
||||
:doc:`How do I move an Image? <tutorials/en/move-it>`
|
||||
:doc:`How do I move an Image? <tut/MoveIt>`
|
||||
A basic tutorial that covers the concepts behind 2D computer animation.
|
||||
Information about drawing and clearing objects to make them appear animated.
|
||||
|
||||
:doc:`Chimp Tutorial, Line by Line <tutorials/en/chimp-explanation>`
|
||||
:doc:`Chimp Tutorial, Line by Line <tut/ChimpLineByLine>`
|
||||
The pygame examples include a simple program with an interactive fist and a chimpanzee.
|
||||
This was inspired by the annoying flash banner of the early 2000s.
|
||||
This tutorial examines every line of code used in the example.
|
||||
|
||||
:doc:`What is Premultiplied Alpha? <tutorials/en/premultiplied-alpha>`
|
||||
An explanation of alpha compositing and the advantages of using premultiplied alpha.
|
||||
|
||||
:doc:`Sprite Module Introduction <tutorials/en/intro-to-sprites>`
|
||||
:doc:`Sprite Module Introduction <tut/SpriteIntro>`
|
||||
Pygame includes a higher level sprite module to help organize games.
|
||||
The sprite module includes several classes that help manage details found in almost all games types.
|
||||
The Sprite classes are a bit more advanced than the regular pygame modules,
|
||||
and need more understanding to be properly used.
|
||||
|
||||
:doc:`Introduction to Pygame <tutorials/en/intro-to-pygame>`
|
||||
An introduction to the basics of pygame.
|
||||
This is written for users of Python and appeared in volume two of the Py magazine.
|
||||
|
||||
:doc:`Surfarray Introduction <tutorials/en/intro-to-surfarray>`
|
||||
:doc:`Surfarray Introduction <tut/SurfarrayIntro>`
|
||||
Pygame used the NumPy python module to allow efficient per pixel effects on images.
|
||||
Using the surface arrays is an advanced feature that allows custom effects and filters.
|
||||
This also examines some of the simple effects from the pygame example, arraydemo.py.
|
||||
|
||||
:doc:`Camera Module Introduction <tutorials/en/intro-to-camera>`
|
||||
:doc:`Camera Module Introduction <tut/CameraIntro>`
|
||||
Pygame, as of 1.9, has a camera module that allows you to capture images,
|
||||
watch live streams, and do some basic computer vision.
|
||||
This tutorial covers those use cases.
|
||||
|
||||
:doc:`Making Games Tutorial <tutorials/en/make-games>`
|
||||
:doc:`Newbie Guide <tut/newbieguide>`
|
||||
A list of thirteen helpful tips for people to get comfortable using pygame.
|
||||
|
||||
:doc:`Making Games Tutorial <tut/MakeGames>`
|
||||
A large tutorial that covers the bigger topics needed to create an entire game.
|
||||
|
||||
:doc:`Display Modes <tutorials/en/display-modes>`
|
||||
:doc:`Display Modes <tut/DisplayModes>`
|
||||
Getting a display surface for the screen.
|
||||
|
||||
:doc:`Tutorial de Pygame - Ejemplo del Chimpancé, Línea Por Línea <tutorials/es/ChimpanceLineaporLinea>`
|
||||
Los ejemplos de pygame incluyen un sencillo programa con un puño interactivo y un chimpancé.
|
||||
Está inspirado en el molesto banner de flash de principios de la década de 2000.
|
||||
Este tutorial examina cada línea de código utilizada en el ejemplo.
|
||||
:doc:`한국어 튜토리얼 (Korean Tutorial) <tut/ko/빨간블록 검은블록/개요>`
|
||||
빨간블록 검은블록
|
||||
|
||||
|
||||
Reference
|
||||
---------
|
||||
@@ -239,18 +200,14 @@ Reference
|
||||
:doc:`ref/transform`
|
||||
Resize and move images.
|
||||
|
||||
:doc:`ref/typing`
|
||||
Provide common typehints
|
||||
|
||||
:doc:`ref/window`
|
||||
Pygame object that handles a window.
|
||||
|
||||
:doc:`pygame C API <c_api>`
|
||||
The C api shared amongst pygame extension modules.
|
||||
|
||||
:ref:`search`
|
||||
Search pygame documents by keyword.
|
||||
|
||||
.. _Readme: https://github.com/pygame-community/pygame-ce#readme
|
||||
.. _Readme: ../wiki/about
|
||||
|
||||
.. _Install: ../wiki/GettingStarted#Pygame%20Installation
|
||||
|
||||
.. _LGPL License: LGPL.txt
|
||||
@@ -1,58 +1,47 @@
|
||||
*************************************************
|
||||
Pygame CE Logos Page
|
||||
Pygame Logos Page
|
||||
*************************************************
|
||||
|
||||
Pygame CE Logos
|
||||
===============
|
||||
Pygame Logos
|
||||
============
|
||||
|
||||
These logos are available for use in your own game projects.
|
||||
Please put them up wherever you see fit.
|
||||
|
||||
The pygame-ce logo and its variants were created by Mega-JC and kadir014 on June 30, 2024.
|
||||
|
||||
.. container:: fullwidth
|
||||
|
||||
.. image:: _static/pygame_ce_logo.webp
|
||||
|
||||
| `pygame_ce_logo.svg <_static/pygame_ce_logo.svg>`_
|
||||
| `pygame_ce_logo.webp <_static/pygame_ce_logo.webp>`_ - 1560 x 800
|
||||
|
||||
.. image:: _static/pygame_ce_lofi.webp
|
||||
|
||||
| `pygame_ce_lofi.svg <_static/pygame_ce_lofi.svg>`_
|
||||
| `pygame_ce_lofi.webp <_static/pygame_ce_lofi.webp>`_ - 1560 x 800
|
||||
|
||||
.. image:: _static/pygame_ce_powered.webp
|
||||
|
||||
| `pygame_ce_powered.svg <_static/pygame_ce_powered.svg>`_
|
||||
| `pygame_ce_powered.webp <_static/pygame_ce_powered.webp>`_ - 1560 x 824
|
||||
|
||||
.. image:: _static/pygame_ce_tiny.webp
|
||||
|
||||
| `pygame_ce_tiny.webp <_static/pygame_ce_tiny.webp>`_ - 214 x 110
|
||||
|
||||
.. image:: _static/pygame_ce_powered_lowres.webp
|
||||
|
||||
| `pygame_ce_powered_lowres.webp <_static/pygame_ce_powered_lowres.webp>`_ - 101 x 53
|
||||
|
||||
|
||||
|
||||
Upstream & legacy logos
|
||||
-----------------------
|
||||
|
||||
The pygame logo was originally created
|
||||
by TheCorruptor on July 29, 2001.
|
||||
|
||||
It was upscaled alongside its "LoFi" and "Powered" variants by Mega-JC on
|
||||
Please put them up wherever you see fit. The logo was created
|
||||
by TheCorruptor on July 29, 2001 and upscaled by Mega_JC on
|
||||
August 29, 2021.
|
||||
|
||||
.. container:: fullwidth
|
||||
|
||||
| `upstream_logos.zip <_static/upstream_logos.zip>`_ - 314 KB
|
||||
.. image:: _static/pygame_logo.png
|
||||
|
||||
| `pygame_logo.svg <_static/pygame_logo.svg>`_
|
||||
| `pygame_logo.png <_static/pygame_logo.png>`_ - 1561 x 438
|
||||
|
||||
.. image:: _static/pygame_lofi.png
|
||||
|
||||
| `pygame_lofi.svg <_static/pygame_lofi.svg>`_
|
||||
| `pygame_lofi.png <_static/pygame_lofi.png>`_ - 1561 x 438
|
||||
|
||||
.. image:: _static/pygame_powered.png
|
||||
|
||||
| `pygame_powered.svg <_static/pygame_powered.svg>`_
|
||||
| `pygame_powered.png <_static/pygame_powered.png>`_ - 1617 x 640
|
||||
|
||||
.. image:: _static/pygame_tiny.png
|
||||
|
||||
| `pygame_tiny.png <_static/pygame_tiny.png>`_ - 214 x 60
|
||||
|
||||
.. image:: _static/pygame_powered_lowres.png
|
||||
|
||||
| `pygame_powered_lowres.png <_static/pygame_powered_lowres.png>`_ - 101 x 40
|
||||
|
||||
|
||||
There is a higher resolution layered photoshop image
|
||||
available `here <https://www.pygame.org/ftp/pygame_ce_logo.psd>`_. *(1.3 MB)*
|
||||
available `here <https://www.pygame.org/ftp/pygame_logo.psd>`_. *(1.3 MB)*
|
||||
|
||||
Legacy logos
|
||||
------------
|
||||
|
||||
.. container:: fullwidth
|
||||
|
||||
| `legacy_logos.zip <_static/legacy_logos.zip>`_ - 50.1 KB
|
||||
`legacy_logos.zip <_static/legacy_logos.zip>`_ - 50.1 KB
|
||||
@@ -10,7 +10,7 @@
|
||||
.. class:: BufferProxy
|
||||
|
||||
| :sl:`pygame object to export a surface buffer through an array protocol`
|
||||
| :sg:`BufferProxy(parent) -> BufferProxy`
|
||||
| :sg:`BufferProxy(<parent>) -> BufferProxy`
|
||||
|
||||
:class:`BufferProxy` is a pygame support type, designed as the return value
|
||||
of the :meth:`Surface.get_buffer` and :meth:`Surface.get_view` methods.
|
||||
@@ -47,8 +47,8 @@
|
||||
|
||||
``"strides"`` : tuple : (optional)
|
||||
Array stride information as a tuple of integers. It is required
|
||||
only of non C-contiguous arrays. The tuple length must match
|
||||
that of ``"shape"``.
|
||||
only of non C-contiguous arrays. The tuple length must match
|
||||
that of ``"shape"``.
|
||||
|
||||
``"parent"`` : object : (optional)
|
||||
The exporting object. It can be used to keep the parent object
|
||||
@@ -57,7 +57,7 @@
|
||||
``"before"`` : callable : (optional)
|
||||
Callback invoked when the :class:`BufferProxy` instance
|
||||
exports the buffer. The callback is given one argument, the
|
||||
``"parent"`` object if given, otherwise ``None``.
|
||||
``"parent"`` object if given, otherwise ``None``.
|
||||
The callback is useful for setting a lock on the parent.
|
||||
|
||||
``"after"`` : callable : (optional)
|
||||
@@ -65,18 +65,18 @@
|
||||
The callback is passed on argument, the ``"parent"`` object if given,
|
||||
otherwise None. The callback is useful for releasing a lock on the
|
||||
parent.
|
||||
|
||||
|
||||
The BufferProxy class supports subclassing, instance variables, and weak
|
||||
references.
|
||||
|
||||
.. versionaddedold:: 1.8.0
|
||||
.. versionextendedold:: 1.9.2
|
||||
.. versionadded:: 1.8.0
|
||||
.. versionextended:: 1.9.2
|
||||
|
||||
.. attribute:: parent
|
||||
|
||||
| :sl:`Return wrapped exporting object.`
|
||||
| :sg:`parent -> Surface`
|
||||
| :sg:`parent -> parent`
|
||||
| :sg:`parent -> <parent>`
|
||||
|
||||
The :class:`Surface` which returned the :class:`BufferProxy` object or
|
||||
the object passed to a :class:`BufferProxy` call.
|
||||
|
||||
@@ -8,12 +8,14 @@
|
||||
|
||||
| :sl:`pygame module for camera use`
|
||||
|
||||
.. note::
|
||||
Use import pygame.camera before using this module.
|
||||
|
||||
Pygame currently supports Linux (V4L2) and Windows (MSMF) cameras natively,
|
||||
with wider platform support available via an integrated OpenCV backend.
|
||||
|
||||
.. versionaddedold:: 2.0.2 Windows native camera support
|
||||
.. versionaddedold:: 2.0.3 New OpenCV backends
|
||||
.. versionchanged:: 2.3.0 Removed deprecated vidcapture backend
|
||||
.. versionadded:: 2.0.2 Windows native camera support
|
||||
.. versionadded:: 2.0.3 New OpenCV backends
|
||||
|
||||
EXPERIMENTAL!: This API may change or disappear in later pygame releases. If
|
||||
you use this, your code will very likely break with the next pygame release.
|
||||
@@ -44,7 +46,7 @@ The Bayer to ``RGB`` function is based on:
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
.. versionaddedold:: 1.9.0
|
||||
New in pygame 1.9.0.
|
||||
|
||||
.. function:: init
|
||||
|
||||
@@ -58,7 +60,7 @@ The Bayer to ``RGB`` function is based on:
|
||||
want into this function. More about backends in
|
||||
:func:`get_backends()`.
|
||||
|
||||
.. versionchangedold:: 2.0.3 Option to explicitly select backend
|
||||
.. versionchanged:: 2.0.3 Option to explicitly select backend
|
||||
|
||||
.. ## pygame.camera.init ##
|
||||
|
||||
@@ -79,28 +81,30 @@ The Bayer to ``RGB`` function is based on:
|
||||
_camera (V4L2) Linux Builtin
|
||||
OpenCV Any Uses `opencv-python` module, can't enumerate cameras
|
||||
OpenCV-Mac Mac Same as OpenCV, but has camera enumeration
|
||||
VideoCapture Windows Uses abandoned `VideoCapture` module, can't enumerate
|
||||
cameras, may be removed in the future
|
||||
|
||||
There are two main differences among backends.
|
||||
|
||||
The _camera backends are built in to pygame itself, and require no third
|
||||
party imports. All the other backends do. For the OpenCV backend,
|
||||
the module will need to be installed on your system.
|
||||
party imports. All the other backends do. For the OpenCV and VideoCapture
|
||||
backends, those modules need to be installed on your system.
|
||||
|
||||
The other big difference is "camera enumeration." Some backends don't have
|
||||
a way to list out camera names, or even the number of cameras on the
|
||||
system. In these cases, :func:`list_cameras()` will return
|
||||
something like ``[0]``. If you know you have multiple cameras on the
|
||||
system, these backend ports will pass through a "camera index number"
|
||||
something like ``[0]``. If you know you have multiple cameras on the
|
||||
system, these backend ports will pass through a "camera index number"
|
||||
through if you use that as the ``device`` parameter.
|
||||
|
||||
.. versionaddedold:: 2.0.3
|
||||
.. versionadded:: 2.0.3
|
||||
|
||||
.. ## pygame.camera.get_backends ##
|
||||
|
||||
.. function:: colorspace
|
||||
|
||||
| :sl:`Surface colorspace conversion`
|
||||
| :sg:`colorspace(surface, format, dest_surface = None, /) -> Surface`
|
||||
| :sg:`colorspace(Surface, format, DestSurface = None) -> Surface`
|
||||
|
||||
Allows for conversion from "RGB" to a destination colorspace of "HSV" or
|
||||
"YUV". The source and destination surfaces must be the same size and pixel
|
||||
@@ -131,8 +135,8 @@ The Bayer to ``RGB`` function is based on:
|
||||
| :sg:`Camera(device, (width, height), format) -> Camera`
|
||||
|
||||
Loads a camera. On Linux, the device is typically something like
|
||||
"/dev/video0". Default width and height are 640 by 480.
|
||||
Format is the desired colorspace of the output.
|
||||
"/dev/video0". Default width and height are 640 by 480.
|
||||
Format is the desired colorspace of the output.
|
||||
This is useful for computer vision purposes. The default is
|
||||
``RGB``. The following are supported:
|
||||
|
||||
@@ -214,14 +218,14 @@ The Bayer to ``RGB`` function is based on:
|
||||
frame when called with a blocking function like :func:`get_image()`.
|
||||
On Windows (MSMF), and the OpenCV backends, :func:`query_image()`
|
||||
should be reliable, though. This is useful to separate the framerate of
|
||||
the game from that of the camera without having to use threading.
|
||||
the game from that of the camera without having to use threading.
|
||||
|
||||
.. ## Camera.query_image ##
|
||||
|
||||
.. method:: get_image
|
||||
|
||||
| :sl:`captures an image as a Surface`
|
||||
| :sg:`get_image(Surface = None, /) -> Surface`
|
||||
| :sg:`get_image(Surface = None) -> Surface`
|
||||
|
||||
Pulls an image off of the buffer as an ``RGB`` Surface. It can optionally
|
||||
reuse an existing Surface to save time. The bit-depth of the surface is
|
||||
|
||||
@@ -5,5 +5,279 @@
|
||||
|
||||
.. currentmodule:: pygame
|
||||
|
||||
.. autopgclass:: Color
|
||||
:members:
|
||||
.. class:: Color
|
||||
|
||||
| :sl:`pygame object for color representations`
|
||||
| :sg:`Color(r, g, b) -> Color`
|
||||
| :sg:`Color(r, g, b, a=255) -> Color`
|
||||
| :sg:`Color(color_value) -> Color`
|
||||
|
||||
The ``Color`` class represents ``RGBA`` color values using a value range of
|
||||
0 to 255 inclusive. It allows basic arithmetic operations — binary
|
||||
operations ``+``, ``-``, ``*``, ``//``, ``%``, and unary operation ``~`` — to
|
||||
create new colors, supports conversions to other color spaces such as ``HSV``
|
||||
or ``HSL`` and lets you adjust single color channels.
|
||||
Alpha defaults to 255 (fully opaque) when not given.
|
||||
The arithmetic operations and ``correct_gamma()`` method preserve subclasses.
|
||||
For the binary operators, the class of the returned color is that of the
|
||||
left hand color object of the operator.
|
||||
|
||||
Color objects support equality comparison with other color objects and 3 or
|
||||
4 element tuples of integers. There was a bug in pygame 1.8.1
|
||||
where the default alpha was 0, not 255 like previously.
|
||||
|
||||
Color objects export the C level array interface. The interface exports a
|
||||
read-only one dimensional unsigned byte array of the same assigned length
|
||||
as the color. The new buffer interface is also exported, with the same
|
||||
characteristics as the array interface.
|
||||
|
||||
The floor division, ``//``, and modulus, ``%``, operators do not raise
|
||||
an exception for division by zero. Instead, if a color, or alpha, channel
|
||||
in the right hand color is 0, then the result is 0. For example: ::
|
||||
|
||||
# These expressions are True
|
||||
Color(255, 255, 255, 255) // Color(0, 64, 64, 64) == Color(0, 3, 3, 3)
|
||||
Color(255, 255, 255, 255) % Color(64, 64, 64, 0) == Color(63, 63, 63, 0)
|
||||
|
||||
Use ``int(color)`` to return the immutable integer value of the color,
|
||||
usable as a ``dict`` key. This integer value differs from the mapped
|
||||
pixel values of :meth:`pygame.Surface.get_at_mapped`,
|
||||
:meth:`pygame.Surface.map_rgb` and :meth:`pygame.Surface.unmap_rgb`.
|
||||
It can be passed as a ``color_value`` argument to :class:`Color`
|
||||
(useful with sets).
|
||||
|
||||
See :doc:`color_list` for samples of the available named colors.
|
||||
|
||||
:param int r: red value in the range of 0 to 255 inclusive
|
||||
:param int g: green value in the range of 0 to 255 inclusive
|
||||
:param int b: blue value in the range of 0 to 255 inclusive
|
||||
:param int a: (optional) alpha value in the range of 0 to 255 inclusive,
|
||||
default is 255
|
||||
:param color_value: color value (see note below for the supported formats)
|
||||
|
||||
.. note::
|
||||
Supported ``color_value`` formats:
|
||||
| - **Color object:** clones the given :class:`Color` object
|
||||
| - **Color name: str:** name of the color to use, e.g. ``'red'``
|
||||
(all the supported name strings can be found in the
|
||||
:doc:`color_list`, with sample swatches)
|
||||
| - **HTML color format str:** ``'#rrggbbaa'`` or ``'#rrggbb'``,
|
||||
where rr, gg, bb, and aa are 2-digit hex numbers in the range
|
||||
of 0 to 0xFF inclusive, the aa (alpha) value defaults to 0xFF
|
||||
if not provided
|
||||
| - **hex number str:** ``'0xrrggbbaa'`` or ``'0xrrggbb'``, where
|
||||
rr, gg, bb, and aa are 2-digit hex numbers in the range of 0x00
|
||||
to 0xFF inclusive, the aa (alpha) value defaults to 0xFF if not
|
||||
provided
|
||||
| - **int:** int value of the color to use, using hex numbers can
|
||||
make this parameter more readable, e.g. ``0xrrggbbaa``, where rr,
|
||||
gg, bb, and aa are 2-digit hex numbers in the range of 0x00 to
|
||||
0xFF inclusive, note that the aa (alpha) value is not optional for
|
||||
the int format and must be provided
|
||||
| - **tuple/list of int color values:** ``(R, G, B, A)`` or
|
||||
``(R, G, B)``, where R, G, B, and A are int values in the range of
|
||||
0 to 255 inclusive, the A (alpha) value defaults to 255 if not
|
||||
provided
|
||||
|
||||
:type color_value: Color or str or int or tuple(int, int, int, [int]) or
|
||||
list(int, int, int, [int])
|
||||
|
||||
:returns: a newly created :class:`Color` object
|
||||
:rtype: Color
|
||||
|
||||
.. versionchanged:: 2.0.0
|
||||
Support for tuples, lists, and :class:`Color` objects when creating
|
||||
:class:`Color` objects.
|
||||
.. versionchanged:: 1.9.2 Color objects export the C level array interface.
|
||||
.. versionchanged:: 1.9.0 Color objects support 4-element tuples of integers.
|
||||
.. versionchanged:: 1.8.1 New implementation of the class.
|
||||
|
||||
.. attribute:: r
|
||||
|
||||
| :sl:`Gets or sets the red value of the Color.`
|
||||
| :sg:`r -> int`
|
||||
|
||||
The red value of the Color.
|
||||
|
||||
.. ## Color.r ##
|
||||
|
||||
.. attribute:: g
|
||||
|
||||
| :sl:`Gets or sets the green value of the Color.`
|
||||
| :sg:`g -> int`
|
||||
|
||||
The green value of the Color.
|
||||
|
||||
.. ## Color.g ##
|
||||
|
||||
.. attribute:: b
|
||||
|
||||
| :sl:`Gets or sets the blue value of the Color.`
|
||||
| :sg:`b -> int`
|
||||
|
||||
The blue value of the Color.
|
||||
|
||||
.. ## Color.b ##
|
||||
|
||||
.. attribute:: a
|
||||
|
||||
| :sl:`Gets or sets the alpha value of the Color.`
|
||||
| :sg:`a -> int`
|
||||
|
||||
The alpha value of the Color.
|
||||
|
||||
.. ## Color.a ##
|
||||
|
||||
.. attribute:: cmy
|
||||
|
||||
| :sl:`Gets or sets the CMY representation of the Color.`
|
||||
| :sg:`cmy -> tuple`
|
||||
|
||||
The ``CMY`` representation of the Color. The ``CMY`` components are in
|
||||
the ranges ``C`` = [0, 1], ``M`` = [0, 1], ``Y`` = [0, 1]. Note that this
|
||||
will not return the absolutely exact ``CMY`` values for the set ``RGB``
|
||||
values in all cases. Due to the ``RGB`` mapping from 0-255 and the
|
||||
``CMY`` mapping from 0-1 rounding errors may cause the ``CMY`` values to
|
||||
differ slightly from what you might expect.
|
||||
|
||||
.. ## Color.cmy ##
|
||||
|
||||
.. attribute:: hsva
|
||||
|
||||
| :sl:`Gets or sets the HSVA representation of the Color.`
|
||||
| :sg:`hsva -> tuple`
|
||||
|
||||
The ``HSVA`` representation of the Color. The ``HSVA`` components are in
|
||||
the ranges ``H`` = [0, 360], ``S`` = [0, 100], ``V`` = [0, 100], A = [0,
|
||||
100]. Note that this will not return the absolutely exact ``HSV`` values
|
||||
for the set ``RGB`` values in all cases. Due to the ``RGB`` mapping from
|
||||
0-255 and the ``HSV`` mapping from 0-100 and 0-360 rounding errors may
|
||||
cause the ``HSV`` values to differ slightly from what you might expect.
|
||||
|
||||
.. ## Color.hsva ##
|
||||
|
||||
.. attribute:: hsla
|
||||
|
||||
| :sl:`Gets or sets the HSLA representation of the Color.`
|
||||
| :sg:`hsla -> tuple`
|
||||
|
||||
The ``HSLA`` representation of the Color. The ``HSLA`` components are in
|
||||
the ranges ``H`` = [0, 360], ``S`` = [0, 100], ``L`` = [0, 100], A = [0,
|
||||
100]. Note that this will not return the absolutely exact ``HSL`` values
|
||||
for the set ``RGB`` values in all cases. Due to the ``RGB`` mapping from
|
||||
0-255 and the ``HSL`` mapping from 0-100 and 0-360 rounding errors may
|
||||
cause the ``HSL`` values to differ slightly from what you might expect.
|
||||
|
||||
.. ## Color.hsla ##
|
||||
|
||||
.. attribute:: i1i2i3
|
||||
|
||||
| :sl:`Gets or sets the I1I2I3 representation of the Color.`
|
||||
| :sg:`i1i2i3 -> tuple`
|
||||
|
||||
The ``I1I2I3`` representation of the Color. The ``I1I2I3`` components are
|
||||
in the ranges ``I1`` = [0, 1], ``I2`` = [-0.5, 0.5], ``I3`` = [-0.5,
|
||||
0.5]. Note that this will not return the absolutely exact ``I1I2I3``
|
||||
values for the set ``RGB`` values in all cases. Due to the ``RGB``
|
||||
mapping from 0-255 and the ``I1I2I3`` mapping from 0-1 rounding errors
|
||||
may cause the ``I1I2I3`` values to differ slightly from what you might
|
||||
expect.
|
||||
|
||||
.. ## Color.i1i2i3 ##
|
||||
|
||||
.. method:: normalize
|
||||
|
||||
| :sl:`Returns the normalized RGBA values of the Color.`
|
||||
| :sg:`normalize() -> tuple`
|
||||
|
||||
Returns the normalized ``RGBA`` values of the Color as floating point
|
||||
values.
|
||||
|
||||
.. ## Color.normalize ##
|
||||
|
||||
.. method:: correct_gamma
|
||||
|
||||
| :sl:`Applies a certain gamma value to the Color.`
|
||||
| :sg:`correct_gamma (gamma) -> Color`
|
||||
|
||||
Applies a certain gamma value to the Color and returns a new Color with
|
||||
the adjusted ``RGBA`` values.
|
||||
|
||||
.. ## Color.correct_gamma ##
|
||||
|
||||
.. method:: set_length
|
||||
|
||||
| :sl:`Set the number of elements in the Color to 1,2,3, or 4.`
|
||||
| :sg:`set_length(len) -> None`
|
||||
|
||||
DEPRECATED: You may unpack the values you need like so,
|
||||
``r, g, b, _ = pygame.Color(100, 100, 100)``
|
||||
If you only want r, g and b
|
||||
Or
|
||||
``r, g, *_ = pygame.Color(100, 100, 100)``
|
||||
if you only want r and g
|
||||
|
||||
The default Color length is 4. Colors can have lengths 1,2,3 or 4. This
|
||||
is useful if you want to unpack to r,g,b and not r,g,b,a. If you want to
|
||||
get the length of a Color do ``len(acolor)``.
|
||||
|
||||
.. deprecated:: 2.1.3
|
||||
.. versionadded:: 1.9.0
|
||||
|
||||
.. ## Color.set_length ##
|
||||
|
||||
.. method:: grayscale
|
||||
|
||||
| :sl:`returns the grayscale of a Color`
|
||||
| :sg:`grayscale() -> Color`
|
||||
|
||||
Returns a Color which represents the grayscaled version of self using the luminosity formula which weights red, green and blue according to their wavelengths..
|
||||
|
||||
.. ## Color.grayscale ##
|
||||
|
||||
.. method:: lerp
|
||||
|
||||
| :sl:`returns a linear interpolation to the given Color.`
|
||||
| :sg:`lerp(Color, float) -> Color`
|
||||
|
||||
Returns a Color which is a linear interpolation between self and the
|
||||
given Color in RGBA space. The second parameter determines how far
|
||||
between self and other the result is going to be.
|
||||
It must be a value between 0 and 1 where 0 means self and 1 means
|
||||
other will be returned.
|
||||
|
||||
.. versionadded:: 2.0.1
|
||||
|
||||
.. ## Color.lerp ##
|
||||
|
||||
.. method:: premul_alpha
|
||||
|
||||
| :sl:`returns a Color where the r,g,b components have been multiplied by the alpha.`
|
||||
| :sg:`premul_alpha() -> Color`
|
||||
|
||||
Returns a new Color where each of the red, green and blue colour
|
||||
channels have been multiplied by the alpha channel of the original
|
||||
color. The alpha channel remains unchanged.
|
||||
|
||||
This is useful when working with the ``BLEND_PREMULTIPLIED`` blending mode
|
||||
flag for :meth:`pygame.Surface.blit()`, which assumes that all surfaces using
|
||||
it are using pre-multiplied alpha colors.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Color.premul_alpha ##
|
||||
|
||||
.. method:: update
|
||||
|
||||
| :sl:`Sets the elements of the color`
|
||||
| :sg:`update(r, g, b) -> None`
|
||||
| :sg:`update(r, g, b, a=255) -> None`
|
||||
| :sg:`update(color_value) -> None`
|
||||
|
||||
Sets the elements of the color. See parameters for :meth:`pygame.Color` for the
|
||||
parameters of this function. If the alpha value was not set it will not change.
|
||||
|
||||
.. versionadded:: 2.0.1
|
||||
|
||||
.. ## Color.update ##
|
||||
.. ## pygame.Color ##
|
||||
@@ -675,7 +675,7 @@ Named Colors
|
||||
|
||||
:doc:`color` lets you specify any of these named colors when creating a new
|
||||
``pygame.Color`` (taken from the
|
||||
`colordict module <https://github.com/pygame-community/pygame-ce/blob/main/src_py/colordict.py>`_).
|
||||
`colordict module <https://github.com/pygame/pygame/blob/main/src_py/colordict.py>`_).
|
||||
|
||||
.. role:: aliceblue
|
||||
.. role:: antiquewhite
|
||||
|
||||
@@ -3,8 +3,248 @@
|
||||
:mod:`pygame.cursors`
|
||||
=====================
|
||||
|
||||
.. autopgmodule:: pygame.cursors
|
||||
:members:
|
||||
.. module:: pygame.cursors
|
||||
:synopsis: pygame module for cursor resources
|
||||
|
||||
| :sl:`pygame module for cursor resources`
|
||||
|
||||
Pygame offers control over the system hardware cursor. Pygame supports
|
||||
black and white cursors (bitmap cursors), as well as system variant cursors and color cursors.
|
||||
You control the cursor with functions inside :mod:`pygame.mouse`.
|
||||
|
||||
This cursors module contains functions for loading and decoding various
|
||||
cursor formats. These allow you to easily store your cursors in external files
|
||||
or directly as encoded python strings.
|
||||
|
||||
The module includes several standard cursors. The :func:`pygame.mouse.set_cursor()`
|
||||
function takes several arguments. All those arguments have been stored in a
|
||||
single tuple you can call like this:
|
||||
|
||||
::
|
||||
|
||||
>>> pygame.mouse.set_cursor(*pygame.cursors.arrow)
|
||||
|
||||
The following variables can be passed to ``pygame.mouse.set_cursor`` function:
|
||||
|
||||
* ``pygame.cursors.arrow``
|
||||
|
||||
* ``pygame.cursors.diamond``
|
||||
|
||||
* ``pygame.cursors.broken_x``
|
||||
|
||||
* ``pygame.cursors.tri_left``
|
||||
|
||||
* ``pygame.cursors.tri_right``
|
||||
|
||||
This module also contains a few cursors as formatted strings. You'll need to
|
||||
pass these to ``pygame.cursors.compile()`` function before you can use them.
|
||||
The example call would look like this:
|
||||
|
||||
::
|
||||
|
||||
>>> cursor = pygame.cursors.compile(pygame.cursors.textmarker_strings)
|
||||
>>> pygame.mouse.set_cursor((8, 16), (0, 0), *cursor)
|
||||
|
||||
The following strings can be converted into cursor bitmaps with
|
||||
``pygame.cursors.compile()`` :
|
||||
|
||||
* ``pygame.cursors.thickarrow_strings``
|
||||
|
||||
* ``pygame.cursors.sizer_x_strings``
|
||||
|
||||
* ``pygame.cursors.sizer_y_strings``
|
||||
|
||||
* ``pygame.cursors.sizer_xy_strings``
|
||||
|
||||
* ``pygame.cursor.textmarker_strings``
|
||||
|
||||
.. function:: compile
|
||||
|
||||
| :sl:`create binary cursor data from simple strings`
|
||||
| :sg:`compile(strings, black='X', white='.', xor='o') -> data, mask`
|
||||
|
||||
A sequence of strings can be used to create binary cursor data for the
|
||||
system cursor. This returns the binary data in the form of two tuples.
|
||||
Those can be passed as the third and fourth arguments respectively of the
|
||||
:func:`pygame.mouse.set_cursor()` function.
|
||||
|
||||
If you are creating your own cursor strings, you can use any value represent
|
||||
the black and white pixels. Some system allow you to set a special toggle
|
||||
color for the system color, this is also called the xor color. If the system
|
||||
does not support xor cursors, that color will simply be black.
|
||||
|
||||
The height must be divisible by 8. The width of the strings must all be equal
|
||||
and be divisible by 8. If these two conditions are not met, ``ValueError`` is
|
||||
raised.
|
||||
An example set of cursor strings looks like this
|
||||
|
||||
::
|
||||
|
||||
thickarrow_strings = ( #sized 24x24
|
||||
"XX ",
|
||||
"XXX ",
|
||||
"XXXX ",
|
||||
"XX.XX ",
|
||||
"XX..XX ",
|
||||
"XX...XX ",
|
||||
"XX....XX ",
|
||||
"XX.....XX ",
|
||||
"XX......XX ",
|
||||
"XX.......XX ",
|
||||
"XX........XX ",
|
||||
"XX........XXX ",
|
||||
"XX......XXXXX ",
|
||||
"XX.XXX..XX ",
|
||||
"XXXX XX..XX ",
|
||||
"XX XX..XX ",
|
||||
" XX..XX ",
|
||||
" XX..XX ",
|
||||
" XX..XX ",
|
||||
" XXXX ",
|
||||
" XX ",
|
||||
" ",
|
||||
" ",
|
||||
" ")
|
||||
|
||||
.. ## pygame.cursors.compile ##
|
||||
|
||||
.. function:: load_xbm
|
||||
|
||||
| :sl:`load cursor data from an XBM file`
|
||||
| :sg:`load_xbm(cursorfile) -> cursor_args`
|
||||
| :sg:`load_xbm(cursorfile, maskfile) -> cursor_args`
|
||||
|
||||
This loads cursors for a simple subset of ``XBM`` files. ``XBM`` files are
|
||||
traditionally used to store cursors on UNIX systems, they are an ASCII
|
||||
format used to represent simple images.
|
||||
|
||||
Sometimes the black and white color values will be split into two separate
|
||||
``XBM`` files. You can pass a second maskfile argument to load the two
|
||||
images into a single cursor.
|
||||
|
||||
The cursorfile and maskfile arguments can either be filenames or file-like
|
||||
object with the readlines method.
|
||||
|
||||
The return value cursor_args can be passed directly to the
|
||||
``pygame.mouse.set_cursor()`` function.
|
||||
|
||||
.. ## pygame.cursors.load_xbm ##
|
||||
|
||||
|
||||
|
||||
.. class:: Cursor
|
||||
|
||||
| :sl:`pygame object representing a cursor`
|
||||
| :sg:`Cursor(size, hotspot, xormasks, andmasks) -> Cursor`
|
||||
| :sg:`Cursor(hotspot, surface) -> Cursor`
|
||||
| :sg:`Cursor(constant) -> Cursor`
|
||||
| :sg:`Cursor(Cursor) -> Cursor`
|
||||
| :sg:`Cursor() -> Cursor`
|
||||
|
||||
In pygame 2, there are 3 types of cursors you can create to give your
|
||||
game that little bit of extra polish. There's **bitmap** type cursors,
|
||||
which existed in pygame 1.x, and are compiled from a string or load from an xbm file.
|
||||
Then there are **system** type cursors, where you choose a preset that will
|
||||
convey the same meaning but look native across different operating systems.
|
||||
Finally you can create a **color** cursor, which displays a pygame surface as the cursor.
|
||||
|
||||
**Creating a system cursor**
|
||||
|
||||
Choose a constant from this list, pass it into ``pygame.cursors.Cursor(constant)``,
|
||||
and you're good to go. Be advised that not all systems support every system
|
||||
cursor, and you may get a substitution instead. For example, on MacOS,
|
||||
WAIT/WAITARROW should show up as an arrow, and SIZENWSE/SIZENESW/SIZEALL
|
||||
should show up as a closed hand. And on Wayland, every SIZE cursor should
|
||||
show up as a hand.
|
||||
|
||||
::
|
||||
|
||||
Pygame Cursor Constant Description
|
||||
--------------------------------------------
|
||||
pygame.SYSTEM_CURSOR_ARROW arrow
|
||||
pygame.SYSTEM_CURSOR_IBEAM i-beam
|
||||
pygame.SYSTEM_CURSOR_WAIT wait
|
||||
pygame.SYSTEM_CURSOR_CROSSHAIR crosshair
|
||||
pygame.SYSTEM_CURSOR_WAITARROW small wait cursor
|
||||
(or wait if not available)
|
||||
pygame.SYSTEM_CURSOR_SIZENWSE double arrow pointing
|
||||
northwest and southeast
|
||||
pygame.SYSTEM_CURSOR_SIZENESW double arrow pointing
|
||||
northeast and southwest
|
||||
pygame.SYSTEM_CURSOR_SIZEWE double arrow pointing
|
||||
west and east
|
||||
pygame.SYSTEM_CURSOR_SIZENS double arrow pointing
|
||||
north and south
|
||||
pygame.SYSTEM_CURSOR_SIZEALL four pointed arrow pointing
|
||||
north, south, east, and west
|
||||
pygame.SYSTEM_CURSOR_NO slashed circle or crossbones
|
||||
pygame.SYSTEM_CURSOR_HAND hand
|
||||
|
||||
**Creating a cursor without passing arguments**
|
||||
|
||||
In addition to the cursor constants available and described above,
|
||||
you can also call ``pygame.cursors.Cursor()``, and your cursor is ready (doing that is the same as
|
||||
calling ``pygame.cursors.Cursor(pygame.SYSTEM_CURSOR_ARROW)``.
|
||||
Doing one of those calls actually creates a system cursor using the default native image.
|
||||
|
||||
**Creating a color cursor**
|
||||
|
||||
To create a color cursor, create a ``Cursor`` from a ``hotspot`` and a ``surface``.
|
||||
``hotspot`` is an (x,y) coordinate that determines where in the cursor the exact point is.
|
||||
The hotspot position must be within the bounds of the ``surface``.
|
||||
|
||||
**Creating a bitmap cursor**
|
||||
|
||||
When the mouse cursor is visible, it will be displayed as a black and white
|
||||
bitmap using the given bitmask arrays. The ``size`` is a sequence containing
|
||||
the cursor width and height. ``hotspot`` is a sequence containing the cursor
|
||||
hotspot position.
|
||||
|
||||
A cursor has a width and height, but a mouse position is represented by a
|
||||
set of point coordinates. So the value passed into the cursor ``hotspot``
|
||||
variable helps pygame to actually determine at what exact point the cursor
|
||||
is at.
|
||||
|
||||
``xormasks`` is a sequence of bytes containing the cursor xor data masks.
|
||||
Lastly ``andmasks``, a sequence of bytes containing the cursor bitmask data.
|
||||
To create these variables, we can make use of the
|
||||
:func:`pygame.cursors.compile()` function.
|
||||
|
||||
Width and height must be a multiple of 8, and the mask arrays must be the
|
||||
correct size for the given width and height. Otherwise an exception is raised.
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`copy the current cursor`
|
||||
| :sg:`copy() -> Cursor`
|
||||
|
||||
Returns a new Cursor object with the same data and hotspot as the original.
|
||||
.. ## pygame.cursors.Cursor.copy ##
|
||||
|
||||
|
||||
.. attribute:: type
|
||||
|
||||
| :sl:`Gets the cursor type`
|
||||
| :sg:`type -> string`
|
||||
|
||||
The type will be ``"system"``, ``"bitmap"``, or ``"color"``.
|
||||
|
||||
.. ## pygame.cursors.Cursor.type ##
|
||||
|
||||
.. attribute:: data
|
||||
|
||||
| :sl:`Gets the cursor data`
|
||||
| :sg:`data -> tuple`
|
||||
|
||||
Returns the data that was used to create this cursor object, wrapped up in a tuple.
|
||||
|
||||
.. ## pygame.cursors.Cursor.data ##
|
||||
|
||||
.. versionadded:: 2.0.1
|
||||
|
||||
.. ## pygame.cursors.Cursor ##
|
||||
|
||||
.. ## pygame.cursors ##
|
||||
|
||||
Example code for creating and settings cursors. (Click the mouse to switch cursor)
|
||||
|
||||
|
||||
@@ -3,5 +3,735 @@
|
||||
:mod:`pygame.display`
|
||||
=====================
|
||||
|
||||
.. autopgmodule:: pygame.display
|
||||
:members:
|
||||
.. module:: pygame.display
|
||||
:synopsis: pygame module to control the display window and screen
|
||||
|
||||
| :sl:`pygame module to control the display window and screen`
|
||||
|
||||
This module offers control over the pygame display. Pygame has a single display
|
||||
Surface that is either contained in a window or runs full screen. Once you
|
||||
create the display you treat it as a regular Surface. Changes are not
|
||||
immediately visible onscreen; you must choose one of the two flipping functions
|
||||
to update the actual display.
|
||||
|
||||
The origin of the display, where x = 0 and y = 0, is the top left of the
|
||||
screen. Both axes increase positively towards the bottom right of the screen.
|
||||
|
||||
The pygame display can actually be initialized in one of several modes. By
|
||||
default, the display is a basic software driven framebuffer. You can request
|
||||
special modules like automatic scaling or OpenGL support. These are
|
||||
controlled by flags passed to ``pygame.display.set_mode()``.
|
||||
|
||||
Pygame can only have a single display active at any time. Creating a new one
|
||||
with ``pygame.display.set_mode()`` will close the previous display. To detect
|
||||
the number and size of attached screens, you can use
|
||||
``pygame.display.get_desktop_sizes`` and then select appropriate window size
|
||||
and display index to pass to ``pygame.display.set_mode()``.
|
||||
|
||||
For backward compatibility ``pygame.display`` allows precise control over
|
||||
the pixel format or display resolutions. This used to be necessary with old
|
||||
graphics cards and CRT screens, but is usually not needed any more. Use the
|
||||
functions ``pygame.display.mode_ok()``, ``pygame.display.list_modes()``, and
|
||||
``pygame.display.Info()`` to query detailed information about the display.
|
||||
|
||||
Once the display Surface is created, the functions from this module affect the
|
||||
single existing display. The Surface becomes invalid if the module is
|
||||
uninitialized. If a new display mode is set, the existing Surface will
|
||||
automatically switch to operate on the new display.
|
||||
|
||||
When the display mode is set, several events are placed on the pygame event
|
||||
queue. ``pygame.QUIT`` is sent when the user has requested the program to
|
||||
shut down. The window will receive ``pygame.ACTIVEEVENT`` events as the display
|
||||
gains and loses input focus. If the display is set with the
|
||||
``pygame.RESIZABLE`` flag, ``pygame.VIDEORESIZE`` events will be sent when the
|
||||
user adjusts the window dimensions. Hardware displays that draw direct to the
|
||||
screen will get ``pygame.VIDEOEXPOSE`` events when portions of the window must
|
||||
be redrawn.
|
||||
|
||||
A new windowevent API was introduced in pygame 2.0.1. Check event module docs
|
||||
for more information on that
|
||||
|
||||
Some display environments have an option for automatically stretching all
|
||||
windows. When this option is enabled, this automatic stretching distorts the
|
||||
appearance of the pygame window. In the pygame examples directory, there is
|
||||
example code (prevent_display_stretching.py) which shows how to disable this
|
||||
automatic stretching of the pygame display on Microsoft Windows (Vista or newer
|
||||
required).
|
||||
|
||||
.. function:: init
|
||||
|
||||
| :sl:`Initialize the display module`
|
||||
| :sg:`init() -> None`
|
||||
|
||||
Initializes the pygame display module. The display module cannot do anything
|
||||
until it is initialized. This is usually handled for you automatically when
|
||||
you call the higher level ``pygame.init()``.
|
||||
|
||||
Pygame will select from one of several internal display backends when it is
|
||||
initialized. The display mode will be chosen depending on the platform and
|
||||
permissions of current user. Before the display module is initialized the
|
||||
environment variable ``SDL_VIDEODRIVER`` can be set to control which backend
|
||||
is used. The systems with multiple choices are listed here.
|
||||
|
||||
::
|
||||
|
||||
Windows : windib, directx
|
||||
Unix : x11, dga, fbcon, directfb, ggi, vgl, svgalib, aalib
|
||||
|
||||
On some platforms it is possible to embed the pygame display into an already
|
||||
existing window. To do this, the environment variable ``SDL_WINDOWID`` must
|
||||
be set to a string containing the window id or handle. The environment
|
||||
variable is checked when the pygame display is initialized. Be aware that
|
||||
there can be many strange side effects when running in an embedded display.
|
||||
|
||||
It is harmless to call this more than once, repeated calls have no effect.
|
||||
|
||||
.. ## pygame.display.init ##
|
||||
|
||||
.. function:: quit
|
||||
|
||||
| :sl:`Uninitialize the display module`
|
||||
| :sg:`quit() -> None`
|
||||
|
||||
This will shut down the entire display module. This means any active
|
||||
displays will be closed. This will also be handled automatically when the
|
||||
program exits.
|
||||
|
||||
It is harmless to call this more than once, repeated calls have no effect.
|
||||
|
||||
.. ## pygame.display.quit ##
|
||||
|
||||
.. function:: get_init
|
||||
|
||||
| :sl:`Returns True if the display module has been initialized`
|
||||
| :sg:`get_init() -> bool`
|
||||
|
||||
Returns True if the :mod:`pygame.display` module is currently initialized.
|
||||
|
||||
.. ## pygame.display.get_init ##
|
||||
|
||||
.. function:: set_mode
|
||||
|
||||
| :sl:`Initialize a window or screen for display`
|
||||
| :sg:`set_mode(size=(0, 0), flags=0, depth=0, display=0, vsync=0) -> Surface`
|
||||
|
||||
This function will create a display Surface. The arguments passed in are
|
||||
requests for a display type. The actual created display will be the best
|
||||
possible match supported by the system.
|
||||
|
||||
Note that calling this function implicitly initializes ``pygame.display``, if
|
||||
it was not initialized before.
|
||||
|
||||
The size argument is a pair of numbers representing the width and
|
||||
height. The flags argument is a collection of additional options. The depth
|
||||
argument represents the number of bits to use for color.
|
||||
|
||||
The Surface that gets returned can be drawn to like a regular Surface but
|
||||
changes will eventually be seen on the monitor.
|
||||
|
||||
If no size is passed or is set to ``(0, 0)`` and pygame uses ``SDL``
|
||||
version 1.2.10 or above, the created Surface will have the same size as the
|
||||
current screen resolution. If only the width or height are set to ``0``, the
|
||||
Surface will have the same width or height as the screen resolution. Using a
|
||||
``SDL`` version prior to 1.2.10 will raise an exception.
|
||||
|
||||
It is usually best to not pass the depth argument. It will default to the
|
||||
best and fastest color depth for the system. If your game requires a
|
||||
specific color format you can control the depth with this argument. Pygame
|
||||
will emulate an unavailable color depth which can be slow.
|
||||
|
||||
When requesting fullscreen display modes, sometimes an exact match for the
|
||||
requested size cannot be made. In these situations pygame will select
|
||||
the closest compatible match. The returned surface will still always match
|
||||
the requested size.
|
||||
|
||||
On high resolution displays(4k, 1080p) and tiny graphics games (640x480)
|
||||
show up very small so that they are unplayable. SCALED scales up the window
|
||||
for you. The game thinks it's a 640x480 window, but really it can be bigger.
|
||||
Mouse events are scaled for you, so your game doesn't need to do it. Note
|
||||
that SCALED is considered an experimental API and may change in future
|
||||
releases.
|
||||
|
||||
The flags argument controls which type of display you want. There are
|
||||
several to choose from, and you can even combine multiple types using the
|
||||
bitwise or operator, (the pipe "|" character). Here are the display
|
||||
flags you will want to choose from:
|
||||
|
||||
::
|
||||
|
||||
pygame.FULLSCREEN create a fullscreen display
|
||||
pygame.DOUBLEBUF only applicable with OPENGL
|
||||
pygame.HWSURFACE (obsolete in pygame 2) hardware accelerated, only in FULLSCREEN
|
||||
pygame.OPENGL create an OpenGL-renderable display
|
||||
pygame.RESIZABLE display window should be resizeable
|
||||
pygame.NOFRAME display window will have no border or controls
|
||||
pygame.SCALED resolution depends on desktop size and scale graphics
|
||||
pygame.SHOWN window is opened in visible mode (default)
|
||||
pygame.HIDDEN window is opened in hidden mode
|
||||
|
||||
|
||||
.. versionadded:: 2.0.0 ``SCALED``, ``SHOWN`` and ``HIDDEN``
|
||||
|
||||
By setting the ``vsync`` parameter to ``1``, it is possible to get a display
|
||||
with vertical sync, but you are not guaranteed to get one. The request only
|
||||
works at all for calls to ``set_mode()`` with the ``pygame.OPENGL`` or
|
||||
``pygame.SCALED`` flags set, and is still not guaranteed even with one of
|
||||
those set. What you get depends on the hardware and driver configuration
|
||||
of the system pygame is running on. Here is an example usage of a call
|
||||
to ``set_mode()`` that may give you a display with vsync:
|
||||
|
||||
::
|
||||
|
||||
flags = pygame.OPENGL | pygame.FULLSCREEN
|
||||
window_surface = pygame.display.set_mode((1920, 1080), flags, vsync=1)
|
||||
|
||||
Vsync behaviour is considered experimental, and may change in future releases.
|
||||
|
||||
.. versionadded:: 2.0.0 ``vsync``
|
||||
|
||||
Basic example:
|
||||
|
||||
::
|
||||
|
||||
# Open a window on the screen
|
||||
screen_width=700
|
||||
screen_height=400
|
||||
screen=pygame.display.set_mode([screen_width, screen_height])
|
||||
|
||||
The display index ``0`` means the default display is used. If no display
|
||||
index argument is provided, the default display can be overridden with an
|
||||
environment variable.
|
||||
|
||||
|
||||
.. versionchanged:: 1.9.5 ``display`` argument added
|
||||
|
||||
.. versionchanged:: 2.1.3
|
||||
pygame now ensures that subsequent calls to this function clears the
|
||||
window to black. On older versions, this was an implementation detail
|
||||
on the major platforms this function was tested with.
|
||||
|
||||
.. ## pygame.display.set_mode ##
|
||||
|
||||
.. function:: get_surface
|
||||
|
||||
| :sl:`Get a reference to the currently set display surface`
|
||||
| :sg:`get_surface() -> Surface`
|
||||
|
||||
Return a reference to the currently set display Surface. If no display mode
|
||||
has been set this will return None.
|
||||
|
||||
.. ## pygame.display.get_surface ##
|
||||
|
||||
.. function:: flip
|
||||
|
||||
| :sl:`Update the full display Surface to the screen`
|
||||
| :sg:`flip() -> None`
|
||||
|
||||
This will update the contents of the entire display. If your display mode is
|
||||
using the flags ``pygame.HWSURFACE`` and ``pygame.DOUBLEBUF`` on pygame 1,
|
||||
this will wait for a vertical retrace and swap the surfaces.
|
||||
|
||||
When using an ``pygame.OPENGL`` display mode this will perform a gl buffer
|
||||
swap.
|
||||
|
||||
.. ## pygame.display.flip ##
|
||||
|
||||
.. function:: update
|
||||
|
||||
| :sl:`Update portions of the screen for software displays`
|
||||
| :sg:`update(rectangle=None) -> None`
|
||||
| :sg:`update(rectangle_list) -> None`
|
||||
|
||||
This function is like an optimized version of ``pygame.display.flip()`` for
|
||||
software displays. It allows only a portion of the screen to be updated,
|
||||
instead of the entire area. If no argument is passed it updates the entire
|
||||
Surface area like ``pygame.display.flip()``.
|
||||
|
||||
Note that calling ``display.update(None)`` means no part of the window is
|
||||
updated. Whereas ``display.update()`` means the whole window is updated.
|
||||
|
||||
You can pass the function a single rectangle, or a sequence of rectangles.
|
||||
It is more efficient to pass many rectangles at once than to call update
|
||||
multiple times with single or a partial list of rectangles. If passing a
|
||||
sequence of rectangles it is safe to include None values in the list, which
|
||||
will be skipped.
|
||||
|
||||
This call cannot be used on ``pygame.OPENGL`` displays and will generate an
|
||||
exception.
|
||||
|
||||
.. ## pygame.display.update ##
|
||||
|
||||
.. function:: get_driver
|
||||
|
||||
| :sl:`Get the name of the pygame display backend`
|
||||
| :sg:`get_driver() -> name`
|
||||
|
||||
Pygame chooses one of many available display backends when it is
|
||||
initialized. This returns the internal name used for the display backend.
|
||||
This can be used to provide limited information about what display
|
||||
capabilities might be accelerated. See the ``SDL_VIDEODRIVER`` flags in
|
||||
``pygame.display.set_mode()`` to see some of the common options.
|
||||
|
||||
.. ## pygame.display.get_driver ##
|
||||
|
||||
.. function:: Info
|
||||
|
||||
| :sl:`Create a video display information object`
|
||||
| :sg:`Info() -> VideoInfo`
|
||||
|
||||
Creates a simple object containing several attributes to describe the
|
||||
current graphics environment. If this is called before
|
||||
``pygame.display.set_mode()`` some platforms can provide information about
|
||||
the default display mode. This can also be called after setting the display
|
||||
mode to verify specific display options were satisfied. The VidInfo object
|
||||
has several attributes:
|
||||
|
||||
::
|
||||
|
||||
hw: 1 if the display is hardware accelerated
|
||||
wm: 1 if windowed display modes can be used
|
||||
video_mem: The megabytes of video memory on the display. This is 0 if
|
||||
unknown
|
||||
bitsize: Number of bits used to store each pixel
|
||||
bytesize: Number of bytes used to store each pixel
|
||||
masks: Four values used to pack RGBA values into pixels
|
||||
shifts: Four values used to pack RGBA values into pixels
|
||||
losses: Four values used to pack RGBA values into pixels
|
||||
blit_hw: 1 if hardware Surface blitting is accelerated
|
||||
blit_hw_CC: 1 if hardware Surface colorkey blitting is accelerated
|
||||
blit_hw_A: 1 if hardware Surface pixel alpha blitting is accelerated
|
||||
blit_sw: 1 if software Surface blitting is accelerated
|
||||
blit_sw_CC: 1 if software Surface colorkey blitting is accelerated
|
||||
blit_sw_A: 1 if software Surface pixel alpha blitting is accelerated
|
||||
current_h, current_w: Height and width of the current video mode, or
|
||||
of the desktop mode if called before the display.set_mode
|
||||
is called. (current_h, current_w are available since
|
||||
SDL 1.2.10, and pygame 1.8.0). They are -1 on error, or if
|
||||
an old SDL is being used.
|
||||
|
||||
.. ## pygame.display.Info ##
|
||||
|
||||
.. function:: get_wm_info
|
||||
|
||||
| :sl:`Get information about the current windowing system`
|
||||
| :sg:`get_wm_info() -> dict`
|
||||
|
||||
Creates a dictionary filled with string keys. The strings and values are
|
||||
arbitrarily created by the system. Some systems may have no information and
|
||||
an empty dictionary will be returned. Most platforms will return a "window"
|
||||
key with the value set to the system id for the current display.
|
||||
|
||||
.. versionadded:: 1.7.1
|
||||
|
||||
.. ## pygame.display.get_wm_info ##
|
||||
|
||||
.. function:: get_desktop_sizes
|
||||
|
||||
| :sl:`Get sizes of active desktops`
|
||||
| :sg:`get_desktop_sizes() -> list`
|
||||
|
||||
This function returns the sizes of the currently configured
|
||||
virtual desktops as a list of (x, y) tuples of integers.
|
||||
|
||||
The length of the list is not the same as the number of attached monitors,
|
||||
as a desktop can be mirrored across multiple monitors. The desktop sizes
|
||||
do not indicate the maximum monitor resolutions supported by the hardware,
|
||||
but the desktop size configured in the operating system.
|
||||
|
||||
In order to fit windows into the desktop as it is currently configured, and
|
||||
to respect the resolution configured by the operating system in fullscreen
|
||||
mode, this function *should* be used to replace many use cases of
|
||||
``pygame.display.list_modes()`` whenever applicable.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. function:: list_modes
|
||||
|
||||
| :sl:`Get list of available fullscreen modes`
|
||||
| :sg:`list_modes(depth=0, flags=pygame.FULLSCREEN, display=0) -> list`
|
||||
|
||||
This function returns a list of possible sizes for a specified color
|
||||
depth. The return value will be an empty list if no display modes are
|
||||
available with the given arguments. A return value of ``-1`` means that
|
||||
any requested size should work (this is likely the case for windowed
|
||||
modes). Mode sizes are sorted from biggest to smallest.
|
||||
|
||||
If depth is ``0``, the current/best color depth for the display is used.
|
||||
The flags defaults to ``pygame.FULLSCREEN``, but you may need to add
|
||||
additional flags for specific fullscreen modes.
|
||||
|
||||
The display index ``0`` means the default display is used.
|
||||
|
||||
Since pygame 2.0, ``pygame.display.get_desktop_sizes()`` has taken over
|
||||
some use cases from ``pygame.display.list_modes()``:
|
||||
|
||||
To find a suitable size for non-fullscreen windows, it is preferable to
|
||||
use ``pygame.display.get_desktop_sizes()`` to get the size of the *current*
|
||||
desktop, and to then choose a smaller window size. This way, the window is
|
||||
guaranteed to fit, even when the monitor is configured to a lower resolution
|
||||
than the maximum supported by the hardware.
|
||||
|
||||
To avoid changing the physical monitor resolution, it is also preferable to
|
||||
use ``pygame.display.get_desktop_sizes()`` to determine the fullscreen
|
||||
resolution. Developers are strongly advised to default to the current
|
||||
physical monitor resolution unless the user explicitly requests a different
|
||||
one (e.g. in an options menu or configuration file).
|
||||
|
||||
.. versionchanged:: 1.9.5 ``display`` argument added
|
||||
|
||||
.. ## pygame.display.list_modes ##
|
||||
|
||||
.. function:: mode_ok
|
||||
|
||||
| :sl:`Pick the best color depth for a display mode`
|
||||
| :sg:`mode_ok(size, flags=0, depth=0, display=0) -> depth`
|
||||
|
||||
This function uses the same arguments as ``pygame.display.set_mode()``. It
|
||||
is used to determine if a requested display mode is available. It will
|
||||
return ``0`` if the display mode cannot be set. Otherwise it will return a
|
||||
pixel depth that best matches the display asked for.
|
||||
|
||||
Usually the depth argument is not passed, but some platforms can support
|
||||
multiple display depths. If passed it will hint to which depth is a better
|
||||
match.
|
||||
|
||||
The function will return ``0`` if the passed display flags cannot be set.
|
||||
|
||||
The display index ``0`` means the default display is used.
|
||||
|
||||
.. versionchanged:: 1.9.5 ``display`` argument added
|
||||
|
||||
.. ## pygame.display.mode_ok ##
|
||||
|
||||
.. function:: gl_get_attribute
|
||||
|
||||
| :sl:`Get the value for an OpenGL flag for the current display`
|
||||
| :sg:`gl_get_attribute(flag) -> value`
|
||||
|
||||
After calling ``pygame.display.set_mode()`` with the ``pygame.OPENGL`` flag,
|
||||
it is a good idea to check the value of any requested OpenGL attributes. See
|
||||
``pygame.display.gl_set_attribute()`` for a list of valid flags.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.display.gl_get_attribute ##
|
||||
|
||||
.. function:: gl_set_attribute
|
||||
|
||||
| :sl:`Request an OpenGL display attribute for the display mode`
|
||||
| :sg:`gl_set_attribute(flag, value) -> None`
|
||||
|
||||
When calling ``pygame.display.set_mode()`` with the ``pygame.OPENGL`` flag,
|
||||
Pygame automatically handles setting the OpenGL attributes like color and
|
||||
double-buffering. OpenGL offers several other attributes you may want control
|
||||
over. Pass one of these attributes as the flag, and its appropriate value.
|
||||
This must be called before ``pygame.display.set_mode()``.
|
||||
|
||||
Many settings are the requested minimum. Creating a window with an OpenGL context
|
||||
will fail if OpenGL cannot provide the requested attribute, but it may for example
|
||||
give you a stencil buffer even if you request none, or it may give you a larger
|
||||
one than requested.
|
||||
|
||||
The ``OPENGL`` flags are:
|
||||
|
||||
::
|
||||
|
||||
GL_ALPHA_SIZE, GL_DEPTH_SIZE, GL_STENCIL_SIZE, GL_ACCUM_RED_SIZE,
|
||||
GL_ACCUM_GREEN_SIZE, GL_ACCUM_BLUE_SIZE, GL_ACCUM_ALPHA_SIZE,
|
||||
GL_MULTISAMPLEBUFFERS, GL_MULTISAMPLESAMPLES, GL_STEREO
|
||||
|
||||
:const:`GL_MULTISAMPLEBUFFERS`
|
||||
|
||||
Whether to enable multisampling anti-aliasing.
|
||||
Defaults to 0 (disabled).
|
||||
|
||||
Set ``GL_MULTISAMPLESAMPLES`` to a value
|
||||
above 0 to control the amount of anti-aliasing.
|
||||
A typical value is 2 or 3.
|
||||
|
||||
:const:`GL_STENCIL_SIZE`
|
||||
|
||||
Minimum bit size of the stencil buffer. Defaults to 0.
|
||||
|
||||
:const:`GL_DEPTH_SIZE`
|
||||
|
||||
Minimum bit size of the depth buffer. Defaults to 16.
|
||||
|
||||
:const:`GL_STEREO`
|
||||
|
||||
1 enables stereo 3D. Defaults to 0.
|
||||
|
||||
:const:`GL_BUFFER_SIZE`
|
||||
|
||||
Minimum bit size of the frame buffer. Defaults to 0.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. versionadded:: 2.0.0 Additional attributes:
|
||||
|
||||
::
|
||||
|
||||
GL_ACCELERATED_VISUAL,
|
||||
GL_CONTEXT_MAJOR_VERSION, GL_CONTEXT_MINOR_VERSION,
|
||||
GL_CONTEXT_FLAGS, GL_CONTEXT_PROFILE_MASK,
|
||||
GL_SHARE_WITH_CURRENT_CONTEXT,
|
||||
GL_CONTEXT_RELEASE_BEHAVIOR,
|
||||
GL_FRAMEBUFFER_SRGB_CAPABLE
|
||||
|
||||
:const:`GL_CONTEXT_PROFILE_MASK`
|
||||
|
||||
Sets the OpenGL profile to one of these values:
|
||||
|
||||
::
|
||||
|
||||
GL_CONTEXT_PROFILE_CORE disable deprecated features
|
||||
GL_CONTEXT_PROFILE_COMPATIBILITY allow deprecated features
|
||||
GL_CONTEXT_PROFILE_ES allow only the ES feature
|
||||
subset of OpenGL
|
||||
|
||||
:const:`GL_ACCELERATED_VISUAL`
|
||||
|
||||
Set to 1 to require hardware acceleration, or 0 to force software render.
|
||||
By default, both are allowed.
|
||||
|
||||
.. ## pygame.display.gl_set_attribute ##
|
||||
|
||||
.. function:: get_active
|
||||
|
||||
| :sl:`Returns True when the display is active on the screen`
|
||||
| :sg:`get_active() -> bool`
|
||||
|
||||
Returns True when the display Surface is considered actively
|
||||
renderable on the screen and may be visible to the user. This is
|
||||
the default state immediately after ``pygame.display.set_mode()``.
|
||||
This method may return True even if the application is fully hidden
|
||||
behind another application window.
|
||||
|
||||
This will return False if the display Surface has been iconified or
|
||||
minimized (either via ``pygame.display.iconify()`` or via an OS
|
||||
specific method such as the minimize-icon available on most
|
||||
desktops).
|
||||
|
||||
The method can also return False for other reasons without the
|
||||
application being explicitly iconified or minimized by the user. A
|
||||
notable example being if the user has multiple virtual desktops and
|
||||
the display Surface is not on the active virtual desktop.
|
||||
|
||||
.. note:: This function returning True is unrelated to whether the
|
||||
application has input focus. Please see
|
||||
``pygame.key.get_focused()`` and ``pygame.mouse.get_focused()``
|
||||
for APIs related to input focus.
|
||||
|
||||
.. ## pygame.display.get_active ##
|
||||
|
||||
.. function:: iconify
|
||||
|
||||
| :sl:`Iconify the display surface`
|
||||
| :sg:`iconify() -> bool`
|
||||
|
||||
Request the window for the display surface be iconified or hidden. Not all
|
||||
systems and displays support an iconified display. The function will return
|
||||
True if successful.
|
||||
|
||||
When the display is iconified ``pygame.display.get_active()`` will return
|
||||
``False``. The event queue should receive an ``ACTIVEEVENT`` event when the
|
||||
window has been iconified. Additionally, the event queue also receives a
|
||||
``WINDOWEVENT_MINIMIZED`` event when the window has been iconified on pygame 2.
|
||||
|
||||
.. ## pygame.display.iconify ##
|
||||
|
||||
.. function:: toggle_fullscreen
|
||||
|
||||
| :sl:`Switch between fullscreen and windowed displays`
|
||||
| :sg:`toggle_fullscreen() -> int`
|
||||
|
||||
Switches the display window between windowed and fullscreen modes.
|
||||
Display driver support is not great when using pygame 1, but with
|
||||
pygame 2 it is the most reliable method to switch to and from fullscreen.
|
||||
|
||||
Supported display drivers in pygame 1:
|
||||
|
||||
* x11 (Linux/Unix)
|
||||
* wayland (Linux/Unix)
|
||||
|
||||
Supported display drivers in pygame 2:
|
||||
|
||||
* windows (Windows)
|
||||
* x11 (Linux/Unix)
|
||||
* wayland (Linux/Unix)
|
||||
* cocoa (OSX/Mac)
|
||||
|
||||
.. Note:: :func:`toggle_fullscreen` doesn't work on Windows
|
||||
unless the window size is in :func:`pygame.display.list_modes()` or
|
||||
the window is created with the flag ``pygame.SCALED``.
|
||||
See `issue #2380 <https://github.com/pygame/pygame/issues/2380>`_.
|
||||
|
||||
.. ## pygame.display.toggle_fullscreen ##
|
||||
|
||||
.. function:: set_gamma
|
||||
|
||||
| :sl:`Change the hardware gamma ramps`
|
||||
| :sg:`set_gamma(red, green=None, blue=None) -> bool`
|
||||
|
||||
DEPRECATED: This functionality will go away in SDL3.
|
||||
|
||||
Set the red, green, and blue gamma values on the display hardware. If the
|
||||
green and blue arguments are not passed, they will both be the same as red.
|
||||
Not all systems and hardware support gamma ramps, if the function succeeds
|
||||
it will return ``True``.
|
||||
|
||||
A gamma value of ``1.0`` creates a linear color table. Lower values will
|
||||
darken the display and higher values will brighten.
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
.. ## pygame.display.set_gamma ##
|
||||
|
||||
.. function:: set_gamma_ramp
|
||||
|
||||
| :sl:`Change the hardware gamma ramps with a custom lookup`
|
||||
| :sg:`set_gamma_ramp(red, green, blue) -> bool`
|
||||
|
||||
DEPRECATED: This functionality will go away in SDL3.
|
||||
|
||||
Set the red, green, and blue gamma ramps with an explicit lookup table. Each
|
||||
argument should be sequence of 256 integers. The integers should range
|
||||
between ``0`` and ``0xffff``. Not all systems and hardware support gamma
|
||||
ramps, if the function succeeds it will return ``True``.
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
.. ## pygame.display.set_gamma_ramp ##
|
||||
|
||||
.. function:: set_icon
|
||||
|
||||
| :sl:`Change the system image for the display window`
|
||||
| :sg:`set_icon(Surface) -> None`
|
||||
|
||||
Sets the runtime icon the system will use to represent the display window.
|
||||
All windows default to a simple pygame logo for the window icon.
|
||||
|
||||
Note that calling this function implicitly initializes ``pygame.display``, if
|
||||
it was not initialized before.
|
||||
|
||||
You can pass any surface, but most systems want a smaller image around
|
||||
32x32. The image can have colorkey transparency which will be passed to the
|
||||
system.
|
||||
|
||||
Some systems do not allow the window icon to change after it has been shown.
|
||||
This function can be called before ``pygame.display.set_mode()`` to create
|
||||
the icon before the display mode is set.
|
||||
|
||||
.. ## pygame.display.set_icon ##
|
||||
|
||||
.. function:: set_caption
|
||||
|
||||
| :sl:`Set the current window caption`
|
||||
| :sg:`set_caption(title, icontitle=None) -> None`
|
||||
|
||||
If the display has a window title, this function will change the name on the
|
||||
window. In pygame 1.x, some systems supported an alternate shorter title to
|
||||
be used for minimized displays, but in pygame 2 ``icontitle`` does nothing.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.display.set_caption ##
|
||||
|
||||
.. function:: get_caption
|
||||
|
||||
| :sl:`Get the current window caption`
|
||||
| :sg:`get_caption() -> (title, icontitle)`
|
||||
|
||||
Returns the title and icontitle for the display window. In pygame 2.x
|
||||
these will always be the same value.
|
||||
|
||||
.. ## pygame.display.get_caption ##
|
||||
|
||||
.. function:: set_palette
|
||||
|
||||
| :sl:`Set the display color palette for indexed displays`
|
||||
| :sg:`set_palette(palette=None) -> None`
|
||||
|
||||
This will change the video display color palette for 8-bit displays. This
|
||||
does not change the palette for the actual display Surface, only the palette
|
||||
that is used to display the Surface. If no palette argument is passed, the
|
||||
system default palette will be restored. The palette is a sequence of
|
||||
``RGB`` triplets.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.display.set_palette ##
|
||||
|
||||
.. function:: get_num_displays
|
||||
|
||||
| :sl:`Return the number of displays`
|
||||
| :sg:`get_num_displays() -> int`
|
||||
|
||||
Returns the number of available displays. This is always 1 if
|
||||
:func:`pygame.get_sdl_version()` returns a major version number below 2.
|
||||
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.display.get_num_displays ##
|
||||
|
||||
.. function:: get_window_size
|
||||
|
||||
| :sl:`Return the size of the window or screen`
|
||||
| :sg:`get_window_size() -> tuple`
|
||||
|
||||
Returns the size of the window initialized with :func:`pygame.display.set_mode()`.
|
||||
This may differ from the size of the display surface if ``SCALED`` is used.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.display.get_window_size ##
|
||||
|
||||
.. function:: get_allow_screensaver
|
||||
|
||||
| :sl:`Return whether the screensaver is allowed to run.`
|
||||
| :sg:`get_allow_screensaver() -> bool`
|
||||
|
||||
Return whether screensaver is allowed to run whilst the app is running.
|
||||
Default is ``False``.
|
||||
By default pygame does not allow the screensaver during game play.
|
||||
|
||||
.. note:: Some platforms do not have a screensaver or support
|
||||
disabling the screensaver. Please see
|
||||
:func:`pygame.display.set_allow_screensaver()` for
|
||||
caveats with screensaver support.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.display.get_allow_screensaver ##
|
||||
|
||||
.. function:: set_allow_screensaver
|
||||
|
||||
| :sl:`Set whether the screensaver may run`
|
||||
| :sg:`set_allow_screensaver(bool) -> None`
|
||||
|
||||
Change whether screensavers should be allowed whilst the app is running.
|
||||
The default value of the argument to the function is True.
|
||||
By default pygame does not allow the screensaver during game play.
|
||||
|
||||
If the screensaver has been disallowed due to this function, it will automatically
|
||||
be allowed to run when :func:`pygame.quit()` is called.
|
||||
|
||||
It is possible to influence the default value via the environment variable
|
||||
``SDL_HINT_VIDEO_ALLOW_SCREENSAVER``, which can be set to either ``0`` (disable)
|
||||
or ``1`` (enable).
|
||||
|
||||
.. note:: Disabling screensaver is subject to platform support.
|
||||
When platform support is absent, this function will
|
||||
silently appear to work even though the screensaver state
|
||||
is unchanged. The lack of feedback is due to SDL not
|
||||
providing any supported method for determining whether
|
||||
it supports changing the screensaver state.
|
||||
``SDL_HINT_VIDEO_ALLOW_SCREENSAVER`` is available in SDL 2.0.2 or later.
|
||||
SDL1.2 does not implement this.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
|
||||
.. ## pygame.display.set_allow_screensaver ##
|
||||
|
||||
.. ## pygame.display ##
|
||||
@@ -3,8 +3,550 @@
|
||||
:mod:`pygame.draw`
|
||||
==================
|
||||
|
||||
.. autopgmodule:: pygame.draw
|
||||
:members:
|
||||
.. module:: pygame.draw
|
||||
:synopsis: pygame module for drawing shapes
|
||||
|
||||
| :sl:`pygame module for drawing shapes`
|
||||
|
||||
Draw several simple shapes to a surface. These functions will work for
|
||||
rendering to any format of surface.
|
||||
|
||||
Most of the functions take a width argument to represent the size of stroke
|
||||
(thickness) around the edge of the shape. If a width of 0 is passed the shape
|
||||
will be filled (solid).
|
||||
|
||||
All the drawing functions respect the clip area for the surface and will be
|
||||
constrained to that area. The functions return a rectangle representing the
|
||||
bounding area of changed pixels. This bounding rectangle is the 'minimum'
|
||||
bounding box that encloses the affected area.
|
||||
|
||||
All the drawing functions accept a color argument that can be one of the
|
||||
following formats:
|
||||
|
||||
- a :mod:`pygame.Color` object
|
||||
- an ``(RGB)`` triplet (tuple/list)
|
||||
- an ``(RGBA)`` quadruplet (tuple/list)
|
||||
- an integer value that has been mapped to the surface's pixel format
|
||||
(see :func:`pygame.Surface.map_rgb` and :func:`pygame.Surface.unmap_rgb`)
|
||||
|
||||
A color's alpha value will be written directly into the surface (if the
|
||||
surface contains pixel alphas), but the draw function will not draw
|
||||
transparently.
|
||||
|
||||
These functions temporarily lock the surface they are operating on. Many
|
||||
sequential drawing calls can be sped up by locking and unlocking the surface
|
||||
object around the draw calls (see :func:`pygame.Surface.lock` and
|
||||
:func:`pygame.Surface.unlock`).
|
||||
|
||||
.. note ::
|
||||
See the :mod:`pygame.gfxdraw` module for alternative draw methods.
|
||||
|
||||
|
||||
.. function:: rect
|
||||
|
||||
| :sl:`draw a rectangle`
|
||||
| :sg:`rect(surface, color, rect) -> Rect`
|
||||
| :sg:`rect(surface, color, rect, width=0, border_radius=0, border_top_left_radius=-1, border_top_right_radius=-1, border_bottom_left_radius=-1, border_bottom_right_radius=-1) -> Rect`
|
||||
|
||||
Draws a rectangle on the given surface.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param Rect rect: rectangle to draw, position and dimensions
|
||||
:param int width: (optional) used for line thickness or to indicate that
|
||||
the rectangle is to be filled (not to be confused with the width value
|
||||
of the ``rect`` parameter)
|
||||
|
||||
| if ``width == 0``, (default) fill the rectangle
|
||||
| if ``width > 0``, used for line thickness
|
||||
| if ``width < 0``, nothing will be drawn
|
||||
|
|
||||
|
||||
.. versionchanged:: 2.1.1
|
||||
Drawing rects with width now draws the width correctly inside the
|
||||
rect's area, rather than using an internal call to draw.lines(),
|
||||
which had half the width spill outside the rect area.
|
||||
|
||||
:param int border_radius: (optional) used for drawing rectangle with rounded corners.
|
||||
The supported range is [0, min(height, width) / 2], with 0 representing a rectangle
|
||||
without rounded corners.
|
||||
:param int border_top_left_radius: (optional) used for setting the value of top left
|
||||
border. If you don't set this value, it will use the border_radius value.
|
||||
:param int border_top_right_radius: (optional) used for setting the value of top right
|
||||
border. If you don't set this value, it will use the border_radius value.
|
||||
:param int border_bottom_left_radius: (optional) used for setting the value of bottom left
|
||||
border. If you don't set this value, it will use the border_radius value.
|
||||
:param int border_bottom_right_radius: (optional) used for setting the value of bottom right
|
||||
border. If you don't set this value, it will use the border_radius value.
|
||||
|
||||
| if ``border_radius < 1`` it will draw rectangle without rounded corners
|
||||
| if any of border radii has the value ``< 0`` it will use value of the border_radius
|
||||
| If sum of radii on the same side of the rectangle is greater than the rect size the radii
|
||||
| will get scaled
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the position of the given ``rect``
|
||||
parameter and its width and height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
.. note::
|
||||
The :func:`pygame.Surface.fill()` method works just as well for drawing
|
||||
filled rectangles and can be hardware accelerated on some platforms.
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
.. versionchanged:: 2.0.0.dev8 Added support for border radius.
|
||||
|
||||
.. ## pygame.draw.rect ##
|
||||
|
||||
.. function:: polygon
|
||||
|
||||
| :sl:`draw a polygon`
|
||||
| :sg:`polygon(surface, color, points) -> Rect`
|
||||
| :sg:`polygon(surface, color, points, width=0) -> Rect`
|
||||
|
||||
Draws a polygon on the given surface.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param points: a sequence of 3 or more (x, y) coordinates that make up the
|
||||
vertices of the polygon, each *coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats,
|
||||
e.g. ``[(x1, y1), (x2, y2), (x3, y3)]``
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param int width: (optional) used for line thickness or to indicate that
|
||||
the polygon is to be filled
|
||||
|
||||
| if width == 0, (default) fill the polygon
|
||||
| if width > 0, used for line thickness
|
||||
| if width < 0, nothing will be drawn
|
||||
|
|
||||
|
||||
.. note::
|
||||
When using ``width`` values ``> 1``, the edge lines will grow
|
||||
outside the original boundary of the polygon. For more details on
|
||||
how the thickness for edge lines grow, refer to the ``width`` notes
|
||||
of the :func:`pygame.draw.line` function.
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the position of the first point in the
|
||||
``points`` parameter (float values will be truncated) and its width and
|
||||
height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
:raises ValueError: if ``len(points) < 3`` (must have at least 3 points)
|
||||
:raises TypeError: if ``points`` is not a sequence or ``points`` does not
|
||||
contain number pairs
|
||||
|
||||
.. note::
|
||||
For an aapolygon, use :func:`aalines()` with ``closed=True``.
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.polygon ##
|
||||
|
||||
.. function:: circle
|
||||
|
||||
| :sl:`draw a circle`
|
||||
| :sg:`circle(surface, color, center, radius) -> Rect`
|
||||
| :sg:`circle(surface, color, center, radius, width=0, draw_top_right=None, draw_top_left=None, draw_bottom_left=None, draw_bottom_right=None) -> Rect`
|
||||
|
||||
Draws a circle on the given surface.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param center: center point of the circle as a sequence of 2 ints/floats,
|
||||
e.g. ``(x, y)``
|
||||
:type center: tuple(int or float, int or float) or
|
||||
list(int or float, int or float) or Vector2(int or float, int or float)
|
||||
:param radius: radius of the circle, measured from the ``center`` parameter,
|
||||
nothing will be drawn if the ``radius`` is less than 1
|
||||
:type radius: int or float
|
||||
:param int width: (optional) used for line thickness or to indicate that
|
||||
the circle is to be filled
|
||||
|
||||
| if ``width == 0``, (default) fill the circle
|
||||
| if ``width > 0``, used for line thickness
|
||||
| if ``width < 0``, nothing will be drawn
|
||||
|
|
||||
|
||||
.. note::
|
||||
When using ``width`` values ``> 1``, the edge lines will only grow
|
||||
inward.
|
||||
:param bool draw_top_right: (optional) if this is set to True then the top right corner
|
||||
of the circle will be drawn
|
||||
:param bool draw_top_left: (optional) if this is set to True then the top left corner
|
||||
of the circle will be drawn
|
||||
:param bool draw_bottom_left: (optional) if this is set to True then the bottom left corner
|
||||
of the circle will be drawn
|
||||
:param bool draw_bottom_right: (optional) if this is set to True then the bottom right corner
|
||||
of the circle will be drawn
|
||||
|
||||
| if any of the draw_circle_part is True then it will draw all circle parts that have the True
|
||||
| value, otherwise it will draw the entire circle.
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the ``center`` parameter value (float
|
||||
values will be truncated) and its width and height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
:raises TypeError: if ``center`` is not a sequence of two numbers
|
||||
:raises TypeError: if ``radius`` is not a number
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
Nothing is drawn when the radius is 0 (a pixel at the ``center`` coordinates
|
||||
used to be drawn when the radius equaled 0).
|
||||
Floats, and Vector2 are accepted for the ``center`` param.
|
||||
The drawing algorithm was improved to look more like a circle.
|
||||
.. versionchanged:: 2.0.0.dev8 Added support for drawing circle quadrants.
|
||||
|
||||
.. ## pygame.draw.circle ##
|
||||
|
||||
.. function:: ellipse
|
||||
|
||||
| :sl:`draw an ellipse`
|
||||
| :sg:`ellipse(surface, color, rect) -> Rect`
|
||||
| :sg:`ellipse(surface, color, rect, width=0) -> Rect`
|
||||
|
||||
Draws an ellipse on the given surface.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param Rect rect: rectangle to indicate the position and dimensions of the
|
||||
ellipse, the ellipse will be centered inside the rectangle and bounded
|
||||
by it
|
||||
:param int width: (optional) used for line thickness or to indicate that
|
||||
the ellipse is to be filled (not to be confused with the width value
|
||||
of the ``rect`` parameter)
|
||||
|
||||
| if ``width == 0``, (default) fill the ellipse
|
||||
| if ``width > 0``, used for line thickness
|
||||
| if ``width < 0``, nothing will be drawn
|
||||
|
|
||||
|
||||
.. note::
|
||||
When using ``width`` values ``> 1``, the edge lines will only grow
|
||||
inward from the original boundary of the ``rect`` parameter.
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the position of the given ``rect``
|
||||
parameter and its width and height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.ellipse ##
|
||||
|
||||
.. function:: arc
|
||||
|
||||
| :sl:`draw an elliptical arc`
|
||||
| :sg:`arc(surface, color, rect, start_angle, stop_angle) -> Rect`
|
||||
| :sg:`arc(surface, color, rect, start_angle, stop_angle, width=1) -> Rect`
|
||||
|
||||
Draws an elliptical arc on the given surface.
|
||||
|
||||
The two angle arguments are given in radians and indicate the start and stop
|
||||
positions of the arc. The arc is drawn in a counterclockwise direction from
|
||||
the ``start_angle`` to the ``stop_angle``.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param Rect rect: rectangle to indicate the position and dimensions of the
|
||||
ellipse which the arc will be based on, the ellipse will be centered
|
||||
inside the rectangle
|
||||
:param float start_angle: start angle of the arc in radians
|
||||
:param float stop_angle: stop angle of the arc in
|
||||
radians
|
||||
|
||||
| if ``start_angle < stop_angle``, the arc is drawn in a
|
||||
counterclockwise direction from the ``start_angle`` to the
|
||||
``stop_angle``
|
||||
| if ``start_angle > stop_angle``, tau (tau == 2 * pi) will be added
|
||||
to the ``stop_angle``, if the resulting stop angle value is greater
|
||||
than the ``start_angle`` the above ``start_angle < stop_angle`` case
|
||||
applies, otherwise nothing will be drawn
|
||||
| if ``start_angle == stop_angle``, nothing will be drawn
|
||||
|
|
||||
|
||||
:param int width: (optional) used for line thickness (not to be confused
|
||||
with the width value of the ``rect`` parameter)
|
||||
|
||||
| if ``width == 0``, nothing will be drawn
|
||||
| if ``width > 0``, (default is 1) used for line thickness
|
||||
| if ``width < 0``, same as ``width == 0``
|
||||
|
||||
.. note::
|
||||
When using ``width`` values ``> 1``, the edge lines will only grow
|
||||
inward from the original boundary of the ``rect`` parameter.
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the position of the given ``rect``
|
||||
parameter and its width and height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.arc ##
|
||||
|
||||
.. function:: line
|
||||
|
||||
| :sl:`draw a straight line`
|
||||
| :sg:`line(surface, color, start_pos, end_pos) -> Rect`
|
||||
| :sg:`line(surface, color, start_pos, end_pos, width=1) -> Rect`
|
||||
|
||||
Draws a straight line on the given surface. There are no endcaps. For thick
|
||||
lines the ends are squared off.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param start_pos: start position of the line, (x, y)
|
||||
:type start_pos: tuple(int or float, int or float) or
|
||||
list(int or float, int or float) or Vector2(int or float, int or float)
|
||||
:param end_pos: end position of the line, (x, y)
|
||||
:type end_pos: tuple(int or float, int or float) or
|
||||
list(int or float, int or float) or Vector2(int or float, int or float)
|
||||
:param int width: (optional) used for line thickness
|
||||
|
||||
| if width >= 1, used for line thickness (default is 1)
|
||||
| if width < 1, nothing will be drawn
|
||||
|
|
||||
|
||||
.. note::
|
||||
When using ``width`` values ``> 1``, lines will grow as follows.
|
||||
|
||||
For odd ``width`` values, the thickness of each line grows with the
|
||||
original line being in the center.
|
||||
|
||||
For even ``width`` values, the thickness of each line grows with the
|
||||
original line being offset from the center (as there is no exact
|
||||
center line drawn). As a result, lines with a slope < 1
|
||||
(horizontal-ish) will have 1 more pixel of thickness below the
|
||||
original line (in the y direction). Lines with a slope >= 1
|
||||
(vertical-ish) will have 1 more pixel of thickness to the right of
|
||||
the original line (in the x direction).
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the ``start_pos`` parameter value (float
|
||||
values will be truncated) and its width and height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
:raises TypeError: if ``start_pos`` or ``end_pos`` is not a sequence of
|
||||
two numbers
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.line ##
|
||||
|
||||
.. function:: lines
|
||||
|
||||
| :sl:`draw multiple contiguous straight line segments`
|
||||
| :sg:`lines(surface, color, closed, points) -> Rect`
|
||||
| :sg:`lines(surface, color, closed, points, width=1) -> Rect`
|
||||
|
||||
Draws a sequence of contiguous straight lines on the given surface. There are
|
||||
no endcaps or miter joints. For thick lines the ends are squared off.
|
||||
Drawing thick lines with sharp corners can have undesired looking results.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param bool closed: if ``True`` an additional line segment is drawn between
|
||||
the first and last points in the ``points`` sequence
|
||||
:param points: a sequence of 2 or more (x, y) coordinates, where each
|
||||
*coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats and adjacent
|
||||
coordinates will be connected by a line segment, e.g. for the
|
||||
points ``[(x1, y1), (x2, y2), (x3, y3)]`` a line segment will be drawn
|
||||
from ``(x1, y1)`` to ``(x2, y2)`` and from ``(x2, y2)`` to ``(x3, y3)``,
|
||||
additionally if the ``closed`` parameter is ``True`` another line segment
|
||||
will be drawn from ``(x3, y3)`` to ``(x1, y1)``
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param int width: (optional) used for line thickness
|
||||
|
||||
| if width >= 1, used for line thickness (default is 1)
|
||||
| if width < 1, nothing will be drawn
|
||||
|
|
||||
|
||||
.. note::
|
||||
When using ``width`` values ``> 1`` refer to the ``width`` notes
|
||||
of :func:`line` for details on how thick lines grow.
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the position of the first point in the
|
||||
``points`` parameter (float values will be truncated) and its width and
|
||||
height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
:raises ValueError: if ``len(points) < 2`` (must have at least 2 points)
|
||||
:raises TypeError: if ``points`` is not a sequence or ``points`` does not
|
||||
contain number pairs
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.lines ##
|
||||
|
||||
.. function:: aaline
|
||||
|
||||
| :sl:`draw a straight antialiased line`
|
||||
| :sg:`aaline(surface, color, start_pos, end_pos) -> Rect`
|
||||
| :sg:`aaline(surface, color, start_pos, end_pos, blend=1) -> Rect`
|
||||
|
||||
Draws a straight antialiased line on the given surface.
|
||||
|
||||
The line has a thickness of one pixel and the endpoints have a height and
|
||||
width of one pixel each.
|
||||
|
||||
The way a line and its endpoints are drawn:
|
||||
If both endpoints are equal, only a single pixel is drawn (after
|
||||
rounding floats to nearest integer).
|
||||
|
||||
Otherwise if the line is not steep (i.e. if the length along the x-axis
|
||||
is greater than the height along the y-axis):
|
||||
|
||||
For each endpoint:
|
||||
|
||||
If ``x``, the endpoint's x-coordinate, is a whole number find
|
||||
which pixels would be covered by it and draw them.
|
||||
|
||||
Otherwise:
|
||||
|
||||
Calculate the position of the nearest point with a whole number
|
||||
for its x-coordinate, when extending the line past the
|
||||
endpoint.
|
||||
|
||||
Find which pixels would be covered and how much by that point.
|
||||
|
||||
If the endpoint is the left one, multiply the coverage by (1 -
|
||||
the decimal part of ``x``).
|
||||
|
||||
Otherwise multiply the coverage by the decimal part of ``x``.
|
||||
|
||||
Then draw those pixels.
|
||||
|
||||
*e.g.:*
|
||||
| The left endpoint of the line ``((1, 1.3), (5, 3))`` would
|
||||
cover 70% of the pixel ``(1, 1)`` and 30% of the pixel
|
||||
``(1, 2)`` while the right one would cover 100% of the
|
||||
pixel ``(5, 3)``.
|
||||
| The left endpoint of the line ``((1.2, 1.4), (4.6, 3.1))``
|
||||
would cover 56% *(i.e. 0.8 * 70%)* of the pixel ``(1, 1)``
|
||||
and 24% *(i.e. 0.8 * 30%)* of the pixel ``(1, 2)`` while
|
||||
the right one would cover 42% *(i.e. 0.6 * 70%)* of the
|
||||
pixel ``(5, 3)`` and 18% *(i.e. 0.6 * 30%)* of the pixel
|
||||
``(5, 4)`` while the right
|
||||
|
||||
Then for each point between the endpoints, along the line, whose
|
||||
x-coordinate is a whole number:
|
||||
|
||||
Find which pixels would be covered and how much by that point and
|
||||
draw them.
|
||||
|
||||
*e.g.:*
|
||||
| The points along the line ``((1, 1), (4, 2.5))`` would be
|
||||
``(2, 1.5)`` and ``(3, 2)`` and would cover 50% of the pixel
|
||||
``(2, 1)``, 50% of the pixel ``(2, 2)`` and 100% of the pixel
|
||||
``(3, 2)``.
|
||||
| The points along the line ``((1.2, 1.4), (4.6, 3.1))`` would
|
||||
be ``(2, 1.8)`` (covering 20% of the pixel ``(2, 1)`` and 80%
|
||||
of the pixel ``(2, 2)``), ``(3, 2.3)`` (covering 70% of the
|
||||
pixel ``(3, 2)`` and 30% of the pixel ``(3, 3)``) and ``(4,
|
||||
2.8)`` (covering 20% of the pixel ``(2, 1)`` and 80% of the
|
||||
pixel ``(2, 2)``)
|
||||
|
||||
Otherwise do the same for steep lines as for non-steep lines except
|
||||
along the y-axis instead of the x-axis (using ``y`` instead of ``x``,
|
||||
top instead of left and bottom instead of right).
|
||||
|
||||
.. note::
|
||||
Regarding float values for coordinates, a point with coordinate
|
||||
consisting of two whole numbers is considered being right in the center
|
||||
of said pixel (and having a height and width of 1 pixel would therefore
|
||||
completely cover it), while a point with coordinate where one (or both)
|
||||
of the numbers have non-zero decimal parts would be partially covering
|
||||
two (or four if both numbers have decimal parts) adjacent pixels, *e.g.*
|
||||
the point ``(1.4, 2)`` covers 60% of the pixel ``(1, 2)`` and 40% of the
|
||||
pixel ``(2,2)``.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param start_pos: start position of the line, (x, y)
|
||||
:type start_pos: tuple(int or float, int or float) or
|
||||
list(int or float, int or float) or Vector2(int or float, int or float)
|
||||
:param end_pos: end position of the line, (x, y)
|
||||
:type end_pos: tuple(int or float, int or float) or
|
||||
list(int or float, int or float) or Vector2(int or float, int or float)
|
||||
:param int blend: (optional) (deprecated) if non-zero (default) the line will be blended
|
||||
with the surface's existing pixel shades, otherwise it will overwrite them
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the ``start_pos`` parameter value (float
|
||||
values will be truncated) and its width and height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
:raises TypeError: if ``start_pos`` or ``end_pos`` is not a sequence of
|
||||
two numbers
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.aaline ##
|
||||
|
||||
.. function:: aalines
|
||||
|
||||
| :sl:`draw multiple contiguous straight antialiased line segments`
|
||||
| :sg:`aalines(surface, color, closed, points) -> Rect`
|
||||
| :sg:`aalines(surface, color, closed, points, blend=1) -> Rect`
|
||||
|
||||
Draws a sequence of contiguous straight antialiased lines on the given
|
||||
surface.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or int or tuple(int, int, int, [int])
|
||||
:param bool closed: if ``True`` an additional line segment is drawn between
|
||||
the first and last points in the ``points`` sequence
|
||||
:param points: a sequence of 2 or more (x, y) coordinates, where each
|
||||
*coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats and adjacent
|
||||
coordinates will be connected by a line segment, e.g. for the
|
||||
points ``[(x1, y1), (x2, y2), (x3, y3)]`` a line segment will be drawn
|
||||
from ``(x1, y1)`` to ``(x2, y2)`` and from ``(x2, y2)`` to ``(x3, y3)``,
|
||||
additionally if the ``closed`` parameter is ``True`` another line segment
|
||||
will be drawn from ``(x3, y3)`` to ``(x1, y1)``
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param int blend: (optional) (deprecated) if non-zero (default) each line will be blended
|
||||
with the surface's existing pixel shades, otherwise the pixels will be
|
||||
overwritten
|
||||
|
||||
:returns: a rect bounding the changed pixels, if nothing is drawn the
|
||||
bounding rect's position will be the position of the first point in the
|
||||
``points`` parameter (float values will be truncated) and its width and
|
||||
height will be 0
|
||||
:rtype: Rect
|
||||
|
||||
:raises ValueError: if ``len(points) < 2`` (must have at least 2 points)
|
||||
:raises TypeError: if ``points`` is not a sequence or ``points`` does not
|
||||
contain number pairs
|
||||
|
||||
.. versionchanged:: 2.0.0 Added support for keyword arguments.
|
||||
|
||||
.. ## pygame.draw.aalines ##
|
||||
|
||||
.. ## pygame.draw ##
|
||||
|
||||
.. figure:: code_examples/draw_module_example.png
|
||||
:alt: draw module example
|
||||
@@ -12,3 +554,4 @@
|
||||
Example code for draw module.
|
||||
|
||||
.. literalinclude:: code_examples/draw_module_example.py
|
||||
|
||||
@@ -8,179 +8,216 @@
|
||||
|
||||
| :sl:`pygame module for interacting with events and queues`
|
||||
|
||||
.. rubric:: Event queue
|
||||
|
||||
Pygame handles all its event messaging through an event queue. The functions in
|
||||
Pygame handles all its event messaging through an event queue. The routines in
|
||||
this module help you manage that event queue. The input queue is heavily
|
||||
dependent on the video system (:mod:`pygame.display` or :class:`pygame.Window`).
|
||||
If a window has not been created, the event queue may not work properly.
|
||||
dependent on the :mod:`pygame.display` module. If the display has not been
|
||||
initialized and a video mode not set, the event queue may not work properly.
|
||||
|
||||
The event queue has an upper limit on the number of events it can hold. When
|
||||
the queue becomes full new events are quietly dropped. To prevent lost events,
|
||||
especially input events which signal a quit command, your program must handle
|
||||
events every frame (with :func:`pygame.event.get()`, :func:`pygame.event.pump()`,
|
||||
:func:`pygame.event.wait()`, :func:`pygame.event.peek()` or
|
||||
:func:`pygame.event.clear()`).
|
||||
|
||||
.. note:: Not handling events may cause the system to decide the program is
|
||||
frozen (not responding).
|
||||
|
||||
.. rubric:: Events of input devices
|
||||
events every frame (with ``pygame.event.get()``, ``pygame.event.pump()``,
|
||||
``pygame.event.wait()``, ``pygame.event.peek()`` or ``pygame.event.clear()``)
|
||||
and process them. Not handling events may cause your system to decide your
|
||||
program has locked up. To speed up queue processing use
|
||||
:func:`pygame.event.set_blocked()` to limit which events get queued.
|
||||
|
||||
To get the state of various input devices, you can forego the event queue and
|
||||
access the input devices directly with their appropriate modules:
|
||||
:mod:`pygame.mouse`, :mod:`pygame.key`, and :mod:`pygame.joystick`. However,
|
||||
the event queue still needs to be running internally to enable this; programs
|
||||
still need to use functions like :func:`pygame.event.get()` or
|
||||
:func:`pygame.event.pump()` periodically. Note: Joysticks will not send any
|
||||
events until the device has been initialized.
|
||||
|
||||
.. rubric:: Event objects
|
||||
:mod:`pygame.mouse`, :mod:`pygame.key`, and :mod:`pygame.joystick`. If you use
|
||||
this method, remember that pygame requires some form of communication with the
|
||||
system window manager and other parts of the platform. To keep pygame in sync
|
||||
with the system, you will need to call :func:`pygame.event.pump()` to keep
|
||||
everything current. Usually, this should be called once per game loop.
|
||||
Note: Joysticks will not send any events until the device has been initialized.
|
||||
|
||||
The event queue contains :class:`pygame.event.Event` event objects.
|
||||
There are a variety of ways to access the queued events, from simply
|
||||
checking for the existence of events, to popping them off of the event queue.
|
||||
checking for the existence of events, to grabbing them directly off the stack.
|
||||
The event queue also offers some simple filtering which can slightly help
|
||||
performance by blocking certain event types from the queue. Use
|
||||
:func:`pygame.event.set_allowed()` and :func:`pygame.event.set_blocked()` to
|
||||
change this filtering. By default, all event types can be placed on the queue.
|
||||
|
||||
All :class:`pygame.event.Event` instances contain an event type identifier
|
||||
and attributes specific to that event type. The event type identifier is
|
||||
accessible as the :attr:`pygame.event.Event.type` property. An event type's
|
||||
specific attributes can be accessed directly as an attribute on the event
|
||||
object.
|
||||
accessible as the :attr:`pygame.event.Event.type` property. Any of the
|
||||
event specific attributes can be accessed through the
|
||||
:attr:`pygame.event.Event.__dict__` attribute or directly as an attribute
|
||||
of the event object (as member lookups are passed through to the object's
|
||||
dictionary values). The event object has no method functions. Users can create
|
||||
their own new events with the :func:`pygame.event.Event()` function.
|
||||
|
||||
Users can create their own new events (or emulate system events) by
|
||||
instantiating :func:`pygame.event.Event()` themselves, usually paired
|
||||
with :func:`pygame.event.post()`.
|
||||
The event type identifier is in between the values of ``NOEVENT`` and
|
||||
``NUMEVENTS``. User defined events should have a value in the inclusive range
|
||||
of ``USEREVENT`` to ``NUMEVENTS - 1``. User defined events can get a custom
|
||||
event number with :func:`pygame.event.custom_type()`.
|
||||
It is recommended all user events follow this system.
|
||||
|
||||
Events support equality and inequality comparisons. Two events are equal if
|
||||
they are the same type and have identical attribute values.
|
||||
|
||||
.. rubric:: Custom events and debugging
|
||||
|
||||
The event type identifier is in between the values of ``NOEVENT`` and
|
||||
``NUMEVENTS``. User defined events should have a value in the inclusive range
|
||||
of ``USEREVENT`` to ``NUMEVENTS - 1``. User defined events should reserve
|
||||
a custom event number with :func:`pygame.event.custom_type()`.
|
||||
|
||||
While debugging and experimenting, you can print an event object for a quick
|
||||
display of its type and members.
|
||||
|
||||
.. rubric:: Event types and attributes
|
||||
display of its type and members. The function :func:`pygame.event.event_name()`
|
||||
can be used to get a string representing the name of the event type.
|
||||
|
||||
Events that come from the system will have a guaranteed set of member
|
||||
attributes based on the type. The following are lists of event types with their
|
||||
specific attributes and notes.
|
||||
attributes based on the type. The following is a list of event types with their
|
||||
specific attributes.
|
||||
|
||||
::
|
||||
|
||||
QUIT none
|
||||
ACTIVEEVENT gain, state
|
||||
KEYDOWN key, mod, unicode, scancode
|
||||
KEYUP key, mod, unicode, scancode
|
||||
MOUSEMOTION pos, rel, buttons, touch
|
||||
MOUSEBUTTONUP pos, button, touch
|
||||
MOUSEBUTTONDOWN pos, button, touch
|
||||
JOYAXISMOTION joy (deprecated), instance_id, axis, value
|
||||
JOYBALLMOTION joy (deprecated), instance_id, ball, rel
|
||||
JOYHATMOTION joy (deprecated), instance_id, hat, value
|
||||
JOYBUTTONUP joy (deprecated), instance_id, button
|
||||
JOYBUTTONDOWN joy (deprecated), instance_id, button
|
||||
VIDEORESIZE size, w, h
|
||||
VIDEOEXPOSE none
|
||||
USEREVENT code
|
||||
|
||||
.. versionchanged:: 2.0.0 The ``joy`` attribute was deprecated, ``instance_id`` was added.
|
||||
|
||||
.. versionchanged:: 2.0.1 The ``unicode`` attribute was added to ``KEYUP`` event.
|
||||
|
||||
Note that ``ACTIVEEVENT``, ``VIDEORESIZE`` and ``VIDEOEXPOSE`` are considered
|
||||
as "legacy" events, the use of pygame2 ``WINDOWEVENT`` API is recommended over
|
||||
the use of this older API.
|
||||
|
||||
You can also find a list of constants for keyboard keys
|
||||
:ref:`here <key-constants-label>`.
|
||||
|
||||
::
|
||||
A keyboard event occurs when a key is pressed (``KEYDOWN``) and when a key is released (``KEYUP``)
|
||||
The ``key`` attribute of keyboard events contains the value of what key was pressed or released.
|
||||
The ``mod`` attribute contains information about the state of keyboard modifiers (SHIFT, CTRL, ALT, etc.).
|
||||
The ``unicode`` attribute stores the 16-bit unicode value of the key that was pressed or released.
|
||||
The ``scancode`` attribute represents the physical location of a key on the keyboard.
|
||||
|
||||
Event type Attributes/Notes
|
||||
|
||||
QUIT
|
||||
USEREVENT (Starting type of the user defined
|
||||
event types)
|
||||
|
||||
KEYDOWN key, mod, unicode, scancode, window(1)
|
||||
KEYUP key, mod, unicode, scancode, window(1)
|
||||
|
||||
MOUSEMOTION pos, rel, buttons, touch(2), window(1)
|
||||
MOUSEBUTTONUP pos, button, touch(2), clicks(3), window(1)
|
||||
MOUSEBUTTONDOWN pos, button, touch(2), clicks(3), window(1)
|
||||
MOUSEWHEEL which, flipped, x, y, touch(2), precise_x,
|
||||
precise_y, window(1), pos(5)
|
||||
|
||||
JOYAXISMOTION instance_id, axis, value (deprecated: joy)
|
||||
JOYBALLMOTION instance_id, ball, rel (deprecated: joy)
|
||||
JOYHATMOTION instance_id, hat, value (deprecated: joy)
|
||||
JOYBUTTONUP instance_id, button (deprecated: joy)
|
||||
JOYBUTTONDOWN instance_id, button (deprecated: joy)
|
||||
CONTROLLERDEVICEADDED device_index
|
||||
JOYDEVICEADDED device_index
|
||||
CONTROLLERDEVICEREMOVED instance_id
|
||||
JOYDEVICEREMOVED instance_id
|
||||
CONTROLLERDEVICEREMAPPED instance_id
|
||||
|
||||
(Use the window event API instead of legacy events)
|
||||
ACTIVEEVENT gain, state (Legacy event)
|
||||
VIDEORESIZE size, w, h (Legacy event)
|
||||
VIDEOEXPOSE (Legacy event)
|
||||
|
||||
AUDIODEVICEADDED which, iscapture
|
||||
AUDIODEVICEREMOVED which, iscapture
|
||||
|
||||
FINGERMOTION touch_id, finger_id, x, y, dx, dy, window(1)
|
||||
FINGERDOWN touch_id, finger_id, x, y, dx, dy, window(1)
|
||||
FINGERUP touch_id, finger_id, x, y, dx, dy, window(1)
|
||||
MULTIGESTURE touch_id, x, y, pinched, rotated, num_fingers
|
||||
|
||||
TEXTEDITING(4) text, start(4), length(4), window(1)
|
||||
TEXTINPUT(4) text, window(1)
|
||||
|
||||
DROPFILE window(1), file (Path of the file dropped
|
||||
on the window)
|
||||
DROPBEGIN window(1)
|
||||
DROPCOMPLETE window(1)
|
||||
DROPTEXT window(1)
|
||||
|
||||
MIDIIN (Reserved for pygame.midi use)
|
||||
MIDIOUT (Reserved for pygame.midi use)
|
||||
|
||||
KEYMAPCHANGED (Keymap change due to language/keyboard
|
||||
layout change)
|
||||
CLIPBOARDUPDATE (Partially experimental)
|
||||
LOCALECHANGED
|
||||
|
||||
RENDER_TARGETS_RESET
|
||||
RENDER_DEVICE_RESET
|
||||
The ``ACTIVEEVENT`` contains information about the application gaining or losing focus. The ``gain`` attribute
|
||||
will be 1 if the mouse enters the window, otherwise ``gain`` will be 0. The ``state`` attribute will have a
|
||||
value of ``SDL_APPMOUSEFOCUS`` if mouse focus was gained/lost, ``SDL_APPINPUTFOCUS`` if the application loses
|
||||
or gains keyboard focus, or ``SDL_APPACTIVE`` if the application is minimized (``gain`` will be 0) or restored.
|
||||
|
||||
|
|
||||
|
||||
(``1``): if a :class:`pygame.Window` instance exists for the window that the event
|
||||
occurred in, the ``window`` attribute of these events will be that instance,
|
||||
otherwise it will be ``None``.
|
||||
|
||||
(``2``): The ``touch`` attribute of ``MOUSE`` events indicates whether or not the
|
||||
events were generated by a touch input device, and not a real mouse. You might
|
||||
want to ignore such events, if your application already handles ``FINGERMOTION``,
|
||||
``FINGERDOWN`` and ``FINGERUP`` events.
|
||||
|
||||
(``3``): The ``clicks`` attribute of the ``MOUSEBUTTONDOWN`` and ``MOUSEBUTTONUP``
|
||||
events indicate the number of clicks occurring in rapid succession, e.g. ``1``
|
||||
for single-click, ``2`` for double-click, etc. Note that double, triple, or
|
||||
more clicks will still fire mouse events for each individual click, with a
|
||||
progressively increasing ``clicks`` attribute.
|
||||
|
||||
(``4``): The ``start`` attribute of the ``TEXTEDITING`` event is the cursor position,
|
||||
in UTF-8 characters, where the new typing will be inserted into the editing text,
|
||||
while the ``length`` attribute is the number of UTF-8 characters that will be
|
||||
replaced by the new typing.
|
||||
|
||||
These ``TEXT*`` events are useful to implement inputs/languages that require composition,
|
||||
provided by the system's IME (Input Method Editor). The ``TEXTINPUT`` event is only
|
||||
fired when the text is confirmed.
|
||||
|
||||
(``5``): Position information was added to ``MOUSEWHEEL`` events in SDL 2.26.0. If
|
||||
pygame was built on a version lower than that, the ``pos`` attribute is ``None``.
|
||||
|
||||
|
|
||||
|
||||
Here is a list of the new window events.
|
||||
|
||||
All window events have a ``window`` attribute corresponding to the
|
||||
:class:`pygame.Window` that generated them.
|
||||
When compiled with SDL2, pygame has these additional events and their
|
||||
attributes.
|
||||
|
||||
::
|
||||
|
||||
Event type Short description and additional attributes
|
||||
AUDIODEVICEADDED which, iscapture (SDL backend >= 2.0.4)
|
||||
AUDIODEVICEREMOVED which, iscapture (SDL backend >= 2.0.4)
|
||||
FINGERMOTION touch_id, finger_id, x, y, dx, dy
|
||||
FINGERDOWN touch_id, finger_id, x, y, dx, dy
|
||||
FINGERUP touch_id, finger_id, x, y, dx, dy
|
||||
MOUSEWHEEL which, flipped, x, y, touch, precise_x, precise_y
|
||||
MULTIGESTURE touch_id, x, y, pinched, rotated, num_fingers
|
||||
TEXTEDITING text, start, length
|
||||
TEXTINPUT text
|
||||
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. versionchanged:: 2.0.2 Fixed amount horizontal scroll (x, positive to the right and negative to the left).
|
||||
|
||||
.. versionchanged:: 2.0.2 The ``touch`` attribute was added to all the ``MOUSE`` events.
|
||||
|
||||
The ``touch`` attribute of ``MOUSE`` events indicates whether or not the events were generated
|
||||
by a touch input device, and not a real mouse. You might want to ignore such events, if your application
|
||||
already handles ``FINGERMOTION``, ``FINGERDOWN`` and ``FINGERUP`` events.
|
||||
|
||||
.. versionadded:: 2.1.3 Added ``precise_x`` and ``precise_y`` to ``MOUSEWHEEL`` events
|
||||
|
||||
``MOUSEWHEEL`` event occurs whenever the mouse wheel is moved.
|
||||
The ``which`` attribute determines if the event was generated from a touch input device vs an actual
|
||||
mousewheel.
|
||||
The ``preciseX`` attribute contains a float with the amount scrolled horizontally (positive to the right,
|
||||
negative to the left).
|
||||
The ``preciseY`` attribute contains a float with the amount scrolled vertically (positive away from user,
|
||||
negative towards user).
|
||||
The ``flipped`` attribute determines if the values in x and y will be opposite or not. If ``SDL_MOUSEWHEEL_FLIPPED``
|
||||
is defined, the direction of x and y will be opposite.
|
||||
|
||||
``TEXTEDITING`` event is triggered when a user activates an input method via hotkey or selecting an
|
||||
input method in a GUI and starts typing
|
||||
|
||||
The ``which`` attribute for ``AUDIODEVICE*`` events is an integer representing the index for new audio
|
||||
devices that are added. ``AUDIODEVICE*`` events are used to update audio settings or device list.
|
||||
|
||||
|
|
||||
|
||||
Many new events were introduced in pygame 2.
|
||||
|
||||
pygame can recognize text or files dropped in its window. If a file
|
||||
is dropped, ``DROPFILE`` event will be sent, ``file`` will be its path.
|
||||
The ``DROPTEXT`` event is only supported on X11.
|
||||
|
||||
``MIDIIN`` and ``MIDIOUT`` are events reserved for :mod:`pygame.midi` use.
|
||||
``MIDI*`` events differ from ``AUDIODEVICE*`` events in that AUDIODEVICE
|
||||
events are triggered when there is a state change related to an audio
|
||||
input/output device.
|
||||
|
||||
pygame 2 also supports controller hot-plugging
|
||||
|
||||
::
|
||||
|
||||
Event name Attributes and notes
|
||||
|
||||
DROPFILE file
|
||||
DROPBEGIN (SDL backend >= 2.0.5)
|
||||
DROPCOMPLETE (SDL backend >= 2.0.5)
|
||||
DROPTEXT text (SDL backend >= 2.0.5)
|
||||
MIDIIN
|
||||
MIDIOUT
|
||||
CONTROLLERDEVICEADDED device_index
|
||||
JOYDEVICEADDED device_index
|
||||
CONTROLLERDEVICEREMOVED instance_id
|
||||
JOYDEVICEREMOVED instance_id
|
||||
CONTROLLERDEVICEREMAPPED instance_id
|
||||
KEYMAPCHANGED (SDL backend >= 2.0.4)
|
||||
CLIPBOARDUPDATE
|
||||
RENDER_TARGETS_RESET (SDL backend >= 2.0.2)
|
||||
RENDER_DEVICE_RESET (SDL backend >= 2.0.4)
|
||||
LOCALECHANGED (SDL backend >= 2.0.14)
|
||||
|
||||
Also in this version, ``instance_id`` attributes were added to joystick events,
|
||||
and the ``joy`` attribute was deprecated.
|
||||
|
||||
``KEYMAPCHANGED`` is a type of an event sent when keymap changes due to a
|
||||
system event such as an input language or keyboard layout change.
|
||||
|
||||
``CLIPBOARDUPDATE`` is an event sent when clipboard changes. This can still
|
||||
be considered as an experimental feature, some kinds of clipboard changes might
|
||||
not trigger this event.
|
||||
|
||||
``LOCALECHANGED`` is an event sent when user locale changes
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. versionadded:: 2.1.3 ``KEYMAPCHANGED``, ``CLIPBOARDUPDATE``,
|
||||
``RENDER_TARGETS_RESET``, ``RENDER_DEVICE_RESET`` and ``LOCALECHANGED``
|
||||
|
||||
|
|
||||
|
||||
Since pygame 2.0.1, there are a new set of events, called window events.
|
||||
Here is a list of all window events, along with a short description
|
||||
|
||||
::
|
||||
|
||||
Event type Short description
|
||||
|
||||
WINDOWSHOWN Window became shown
|
||||
WINDOWHIDDEN Window became hidden
|
||||
WINDOWEXPOSED Window got updated by some external event
|
||||
WINDOWMOVED Window got moved (x, y attributes)
|
||||
WINDOWSIZECHANGED Window size has changed (x, y attributes)
|
||||
WINDOWRESIZED Window got resized by the user/window manager
|
||||
(x, y attributes)
|
||||
WINDOWMOVED Window got moved
|
||||
WINDOWRESIZED Window got resized
|
||||
WINDOWSIZECHANGED Window changed its size
|
||||
WINDOWMINIMIZED Window was minimized
|
||||
WINDOWMAXIMIZED Window was maximized
|
||||
WINDOWRESTORED Window was restored
|
||||
@@ -189,44 +226,36 @@ All window events have a ``window`` attribute corresponding to the
|
||||
WINDOWFOCUSGAINED Window gained focus
|
||||
WINDOWFOCUSLOST Window lost focus
|
||||
WINDOWCLOSE Window was closed
|
||||
WINDOWTAKEFOCUS Window was offered focus
|
||||
WINDOWHITTEST Window has a special hit test
|
||||
WINDOWICCPROFCHANGED Window ICC profile changed
|
||||
(SDL backend >= 2.0.18)
|
||||
WINDOWDISPLAYCHANGED Window moved on a new display (display_index
|
||||
attribute. SDL backend >= 2.0.18)
|
||||
WINDOWTAKEFOCUS Window was offered focus (SDL backend >= 2.0.5)
|
||||
WINDOWHITTEST Window has a special hit test (SDL backend >= 2.0.5)
|
||||
WINDOWICCPROFCHANGED Window ICC profile changed (SDL backend >= 2.0.18)
|
||||
WINDOWDISPLAYCHANGED Window moved on a new display (SDL backend >= 2.0.18)
|
||||
|
||||
|
||||
``WINDOWMOVED``, ``WINDOWRESIZED`` and ``WINDOWSIZECHANGED`` have ``x`` and
|
||||
``y`` attributes, ``WINDOWDISPLAYCHANGED`` has a ``display_index`` attribute.
|
||||
All windowevents have a ``window`` attribute.
|
||||
|
||||
.. versionadded:: 2.0.1
|
||||
|
||||
.. versionadded:: 2.1.3 ``WINDOWICCPROFCHANGED`` and ``WINDOWDISPLAYCHANGED``
|
||||
|
||||
|
|
||||
|
||||
On Android, the following events can be generated:
|
||||
On Android, the following events can be generated
|
||||
|
||||
::
|
||||
|
||||
Event type Short description
|
||||
Event type Short description
|
||||
|
||||
APP_TERMINATING OS is terminating the application
|
||||
APP_LOWMEMORY OS is low on memory (try to free memory)
|
||||
APP_LOWMEMORY OS is low on memory, try to free memory if possible
|
||||
APP_WILLENTERBACKGROUND Application is entering background
|
||||
APP_DIDENTERBACKGROUND Application entered background
|
||||
APP_WILLENTERFOREGROUND Application is entering foreground
|
||||
APP_DIDENTERFOREGROUND Application entered foreground
|
||||
|
||||
|
|
||||
|
||||
.. versionchangedold:: 2.0.0 The ``joy`` attribute was deprecated, ``instance_id`` was added.
|
||||
|
||||
.. versionaddedold:: 2.0.1 Window events and the ``unicode`` attribute for ``KEYUP`` events.
|
||||
|
||||
.. versionaddedold:: 2.0.2 The ``touch`` attribute was added to all the ``MOUSE`` events.
|
||||
|
||||
.. versionadded:: 2.1.3 Android events, ``precise_x`` and ``precise_y`` to ``MOUSEWHEEL`` events,
|
||||
``KEYMAPCHANGED``, ``CLIPBOARDUPDATE``, ``LOCALECHANGED``, ``WINDOWICCPROFCHANGED``,
|
||||
``WINDOWDISPLAYCHANGED``, ``RENDER_TARGETS_RESET``, and ``RENDER_DEVICE_RESET``.
|
||||
|
||||
.. versionadded:: 2.5.7 The ``clicks`` attribute was added to ``MOUSEBUTTONDOWN``
|
||||
and ``MOUSEBUTTONUP`` events.
|
||||
|
||||
.. versionadded:: 2.5.8 The ``pos`` attribute was added to ``MOUSEWHEEL`` events.
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
|
|
||||
|
||||
@@ -275,8 +304,8 @@ On Android, the following events can be generated:
|
||||
|
||||
If ``pump`` is ``True`` (the default), then :func:`pygame.event.pump()` will be called.
|
||||
|
||||
.. versionchangedold:: 1.9.5 Added ``pump`` argument
|
||||
.. versionchangedold:: 2.0.2 Added ``exclude`` argument
|
||||
.. versionchanged:: 1.9.5 Added ``pump`` argument
|
||||
.. versionchanged:: 2.0.2 Added ``exclude`` argument
|
||||
|
||||
.. ## pygame.event.get ##
|
||||
|
||||
@@ -302,13 +331,13 @@ On Android, the following events can be generated:
|
||||
|
||||
Returns a single event from the queue. If the queue is empty this function
|
||||
will wait until one is created. From pygame 2.0.0, if a ``timeout`` argument
|
||||
is given, the function will return an event of type ``pygame.NOEVENT``
|
||||
is given, the function will return an event of type ``pygame.NOEVENT``
|
||||
if no events enter the queue in ``timeout`` milliseconds. The event is removed
|
||||
from the queue once it has been returned. While the program is waiting it will
|
||||
sleep in an idle state. This is important for programs that want to share the
|
||||
system with other applications.
|
||||
|
||||
.. versionchangedold:: 2.0.0.dev13 Added ``timeout`` argument
|
||||
.. versionchanged:: 2.0.0.dev13 Added ``timeout`` argument
|
||||
|
||||
.. caution::
|
||||
This function should only be called in the thread that initialized :mod:`pygame.display`.
|
||||
@@ -325,14 +354,9 @@ On Android, the following events can be generated:
|
||||
queue. If a sequence of event types is passed, this will return ``True`` if
|
||||
any of those events are on the queue.
|
||||
|
||||
When ``eventtype`` is not passed or ``None``, this function will return ``True`` if
|
||||
there's any event on the queue, and return ``False`` if the queue is empty.
|
||||
|
||||
If ``pump`` is ``True`` (the default), then :func:`pygame.event.pump()` will be called.
|
||||
|
||||
.. versionchangedold:: 1.9.5 Added ``pump`` argument
|
||||
|
||||
.. versionchanged:: 2.5.3 no longer mistakenly returns an event when ``eventtype`` is None or not passed.
|
||||
.. versionchanged:: 1.9.5 Added ``pump`` argument
|
||||
|
||||
.. ## pygame.event.peek ##
|
||||
|
||||
@@ -348,14 +372,14 @@ On Android, the following events can be generated:
|
||||
|
||||
If ``pump`` is ``True`` (the default), then :func:`pygame.event.pump()` will be called.
|
||||
|
||||
.. versionchangedold:: 1.9.5 Added ``pump`` argument
|
||||
.. versionchanged:: 1.9.5 Added ``pump`` argument
|
||||
|
||||
.. ## pygame.event.clear ##
|
||||
|
||||
.. function:: event_name
|
||||
|
||||
| :sl:`get the string name from an event id`
|
||||
| :sg:`event_name(type, /) -> string`
|
||||
| :sg:`event_name(type) -> string`
|
||||
|
||||
Returns a string representing the name (in CapWords style) of the given
|
||||
event type.
|
||||
@@ -363,13 +387,15 @@ On Android, the following events can be generated:
|
||||
"UserEvent" is returned for all values in the user event id range.
|
||||
"Unknown" is returned when the event type does not exist.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
.. ## pygame.event.event_name ##
|
||||
|
||||
|
||||
.. function:: set_blocked
|
||||
|
||||
| :sl:`control which events are blocked on the queue`
|
||||
| :sg:`set_blocked(type, /) -> None`
|
||||
| :sg:`set_blocked(typelist, /) -> None`
|
||||
| :sl:`control which events are allowed on the queue`
|
||||
| :sg:`set_blocked(type) -> None`
|
||||
| :sg:`set_blocked(typelist) -> None`
|
||||
| :sg:`set_blocked(None) -> None`
|
||||
|
||||
The given event types are not allowed to appear on the event queue. By
|
||||
@@ -384,8 +410,8 @@ On Android, the following events can be generated:
|
||||
.. function:: set_allowed
|
||||
|
||||
| :sl:`control which events are allowed on the queue`
|
||||
| :sg:`set_allowed(type, /) -> None`
|
||||
| :sg:`set_allowed(typelist, /) -> None`
|
||||
| :sg:`set_allowed(type) -> None`
|
||||
| :sg:`set_allowed(typelist) -> None`
|
||||
| :sg:`set_allowed(None) -> None`
|
||||
|
||||
The given event types are allowed to appear on the event queue. By default,
|
||||
@@ -400,8 +426,8 @@ On Android, the following events can be generated:
|
||||
.. function:: get_blocked
|
||||
|
||||
| :sl:`test if a type of event is blocked from the queue`
|
||||
| :sg:`get_blocked(type, /) -> bool`
|
||||
| :sg:`get_blocked(typelist, /) -> bool`
|
||||
| :sg:`get_blocked(type) -> bool`
|
||||
| :sg:`get_blocked(typelist) -> bool`
|
||||
|
||||
Returns ``True`` if the given event type is blocked from the queue. If a
|
||||
sequence of event types is passed, this will return ``True`` if any of those
|
||||
@@ -412,7 +438,7 @@ On Android, the following events can be generated:
|
||||
.. function:: set_grab
|
||||
|
||||
| :sl:`control the sharing of input devices with other applications`
|
||||
| :sg:`set_grab(bool, /) -> None`
|
||||
| :sg:`set_grab(bool) -> None`
|
||||
|
||||
When your program runs in a windowed environment, it will share the mouse
|
||||
and keyboard devices with other applications that have focus. If your
|
||||
@@ -433,26 +459,44 @@ On Android, the following events can be generated:
|
||||
|
||||
.. ## pygame.event.get_grab ##
|
||||
|
||||
.. function:: set_keyboard_grab
|
||||
|
||||
| :sl:`grab enables capture of system keyboard shortcuts like Alt+Tab or the Meta/Super key.`
|
||||
| :sg:`set_keyboard_grab(bool) -> None`
|
||||
|
||||
Keyboard grab enables capture of system keyboard shortcuts like Alt+Tab or the Meta/Super key.
|
||||
Note that not all system keyboard shortcuts can be captured by applications (one example is Ctrl+Alt+Del on Windows).
|
||||
This is primarily intended for specialized applications such as VNC clients or VM frontends. Normal games should not use keyboard grab.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## pygame.event.set_keyboard_grab ##
|
||||
|
||||
.. function:: get_keyboard_grab
|
||||
|
||||
| :sl:`get the current keyboard grab state`
|
||||
| :sg:`get_keyboard_grab() -> bool`
|
||||
|
||||
Returns ``True`` when keyboard grab is enabled.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## pygame.event.get_keyboard_grab ##
|
||||
|
||||
.. function:: post
|
||||
|
||||
| :sl:`place a new event on the queue`
|
||||
| :sg:`post(event, /) -> bool`
|
||||
| :sg:`post(Event) -> bool`
|
||||
|
||||
Places the given event at the end of the event queue.
|
||||
|
||||
This is usually used for placing custom events on the event queue.
|
||||
Any type of event can be posted, and the events posted can have any attributes.
|
||||
|
||||
When this event is received on the event queue, it will be a shallow copy of
|
||||
the event object posted by this function; the dict attribute of both events
|
||||
will be a reference to the same dict object in memory. Modifications on one
|
||||
dict can affect another, use deepcopy operations on the dict object if you
|
||||
don't want this behaviour.
|
||||
|
||||
This returns a boolean on whether the event was posted or not. Blocked events
|
||||
cannot be posted, and this function returns ``False`` if you try to post them.
|
||||
|
||||
.. versionchangedold:: 2.0.1 returns a boolean, previously returned ``None``
|
||||
.. versionchanged:: 2.0.1 returns a boolean, previously returned ``None``
|
||||
|
||||
.. ## pygame.event.post ##
|
||||
|
||||
@@ -461,11 +505,11 @@ On Android, the following events can be generated:
|
||||
| :sl:`make custom user event type`
|
||||
| :sg:`custom_type() -> int`
|
||||
|
||||
Reserves an event slot for use in a custom event ``userevent`` and returns the integer that the event slot is reserved to.
|
||||
Reserves a ``pygame.USEREVENT`` for a custom use.
|
||||
|
||||
If too many events are made a :exc:`pygame.error` is raised.
|
||||
|
||||
.. versionaddedold:: 2.0.0.dev3
|
||||
.. versionadded:: 2.0.0.dev3
|
||||
|
||||
.. ## pygame.event.custom_type ##
|
||||
|
||||
@@ -481,9 +525,6 @@ On Android, the following events can be generated:
|
||||
When creating the object, the attributes may come from a dictionary
|
||||
argument with string keys or from keyword arguments.
|
||||
|
||||
.. versionchanged:: 2.1.4 This class is also available through the ``pygame.Event``
|
||||
alias.
|
||||
|
||||
.. note::
|
||||
From version 2.1.3 ``EventType`` is an alias for ``Event``. Beforehand,
|
||||
``Event`` was a function that returned ``EventType`` instances. Use of
|
||||
@@ -497,7 +538,7 @@ On Android, the following events can be generated:
|
||||
|
||||
Read-only. The event type identifier. For user created event
|
||||
objects, this is the ``type`` argument passed to
|
||||
:class:`pygame.event.Event()`.
|
||||
:func:`pygame.event.Event()`.
|
||||
|
||||
For example, some predefined event identifiers are ``QUIT`` and
|
||||
``MOUSEMOTION``.
|
||||
@@ -517,7 +558,7 @@ On Android, the following events can be generated:
|
||||
|
||||
.. ## pygame.event.Event.__dict__ ##
|
||||
|
||||
.. versionaddedold:: 1.9.2 Mutable attributes.
|
||||
.. versionadded:: 1.9.2 Mutable attributes.
|
||||
|
||||
.. ## pygame.event.Event ##
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ eg:
|
||||
|
||||
python -m pygame.examples.scaletest someimage.png
|
||||
|
||||
Resources such as images and sounds for the examples are found in the
|
||||
Resources such as images and sounds for the examples are found in the
|
||||
pygame/examples/data subdirectory.
|
||||
|
||||
You can find where the example files are installed by using the following
|
||||
@@ -287,8 +287,8 @@ pygame much earlier.
|
||||
Thumbnail generation with scaling is an example of what you can do with
|
||||
pygame.
|
||||
|
||||
``NOTE``: the pygame scale function uses SIMD acceleration if available,
|
||||
and can be run in multiple threads.
|
||||
``NOTE``: the pygame scale function uses MMX/SSE if available, and can be
|
||||
run in multiple threads.
|
||||
|
||||
If ``headless_no_windows_needed.py`` is run as a program it takes the
|
||||
following command line arguments:
|
||||
@@ -307,7 +307,7 @@ pygame much earlier.
|
||||
|
||||
A demo showing full joystick support.
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## pygame.examples.joystick.main ##
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ accessed by passing ``None`` as the font name.
|
||||
|
||||
Before pygame 2.0.3, pygame.font accepts any UCS-2 / UTF-16 character
|
||||
('\\u0001' to '\\uFFFF'). After 2.0.3, pygame.font built with SDL_ttf
|
||||
2.0.15 accepts any valid UCS-4 / UTF-32 character
|
||||
2.0.15 accepts any valid UCS-4 / UTF-32 character
|
||||
(like emojis, if the font has them) ('\\U00000001' to '\\U0010FFFF')).
|
||||
More about this in :func:`Font.render`.
|
||||
|
||||
@@ -36,7 +36,7 @@ solves no longer exists, it will likely be removed in the future.
|
||||
|
||||
.. function:: init
|
||||
|
||||
| :sl:`Initialize the font module.`
|
||||
| :sl:`initialize the font module`
|
||||
| :sg:`init() -> None`
|
||||
|
||||
This method is called automatically by ``pygame.init()``. It initializes the
|
||||
@@ -49,7 +49,7 @@ solves no longer exists, it will likely be removed in the future.
|
||||
|
||||
.. function:: quit
|
||||
|
||||
| :sl:`Uninitialize the font module.`
|
||||
| :sl:`uninitialize the font module`
|
||||
| :sg:`quit() -> None`
|
||||
|
||||
Manually uninitialize SDL_ttf's font system. This is called automatically by
|
||||
@@ -57,30 +57,90 @@ solves no longer exists, it will likely be removed in the future.
|
||||
|
||||
It is safe to call this function even if font is currently not initialized.
|
||||
|
||||
Previously created font objects will be invalid after the font module is quit.
|
||||
|
||||
.. ## pygame.font.quit ##
|
||||
|
||||
.. function:: get_init
|
||||
|
||||
| :sl:`True if the font module is initialized.`
|
||||
| :sl:`true if the font module is initialized`
|
||||
| :sg:`get_init() -> bool`
|
||||
|
||||
Test if the font module is initialized or not.
|
||||
|
||||
.. ## pygame.font.get_init ##
|
||||
|
||||
.. autopgfunction:: get_default_font
|
||||
.. function:: get_default_font
|
||||
|
||||
.. autopgfunction:: get_sdl_ttf_version
|
||||
| :sl:`get the filename of the default font`
|
||||
| :sg:`get_default_font() -> string`
|
||||
|
||||
.. autopgfunction:: get_fonts
|
||||
Return the filename of the system font. This is not the full path to the
|
||||
file. This file can usually be found in the same directory as the font
|
||||
module, but it can also be bundled in separate archives.
|
||||
|
||||
.. autopgfunction:: match_font
|
||||
.. ## pygame.font.get_default_font ##
|
||||
|
||||
.. function:: get_sdl_ttf_version
|
||||
|
||||
| :sl:`gets SDL_ttf version`
|
||||
| :sg:`get_sdl_ttf_version(linked=True) -> (major, minor, patch)`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave get_sdl_ttf_version feedback with authors <https://github.com/pygame/pygame/pull/3095>`_
|
||||
|
||||
Returns a tuple of integers that identify SDL_ttf's version.
|
||||
SDL_ttf is the underlying font rendering library, written in C,
|
||||
on which pygame's font module depends. If 'linked' is True (the default),
|
||||
the function returns the version of the linked TTF library.
|
||||
Otherwise this function returns the version of TTF pygame was compiled with
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. ## pygame.font.get_sdl_ttf_version ##
|
||||
|
||||
.. function:: get_fonts
|
||||
|
||||
| :sl:`get all available fonts`
|
||||
| :sg:`get_fonts() -> list of strings`
|
||||
|
||||
Returns a list of all the fonts available on the system. The names of the
|
||||
fonts will be set to lowercase with all spaces and punctuation removed. This
|
||||
works on most systems, but some will return an empty list if they cannot
|
||||
find fonts.
|
||||
|
||||
.. versionchanged:: 2.1.3 Checks through user fonts instead of just global fonts for Windows.
|
||||
|
||||
.. ## pygame.font.get_fonts ##
|
||||
|
||||
.. function:: match_font
|
||||
|
||||
| :sl:`find a specific font on the system`
|
||||
| :sg:`match_font(name, bold=False, italic=False) -> path`
|
||||
|
||||
Returns the full path to a font file on the system. If bold or italic are
|
||||
set to true, this will attempt to find the correct family of font.
|
||||
|
||||
The font name can also be an iterable of font names, a string of
|
||||
comma-separated font names, or a bytes of comma-separated font names, in
|
||||
which case the set of names will be searched in order.
|
||||
If none of the given names are found, None is returned.
|
||||
|
||||
.. versionadded:: 2.0.1 Accept an iterable of font names.
|
||||
|
||||
.. versionchanged:: 2.1.3 Checks through user fonts instead of just global fonts for Windows.
|
||||
|
||||
Example:
|
||||
|
||||
::
|
||||
|
||||
print pygame.font.match_font('bitstreamverasans')
|
||||
# output is: /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
|
||||
# (but only if you have Vera on your system)
|
||||
|
||||
.. ## pygame.font.match_font ##
|
||||
|
||||
.. function:: SysFont
|
||||
|
||||
| :sl:`Create a Font object from the system fonts.`
|
||||
| :sl:`create a Font object from the system fonts`
|
||||
| :sg:`SysFont(name, size, bold=False, italic=False) -> Font`
|
||||
|
||||
Return a new Font object that is loaded from the system fonts. The font will
|
||||
@@ -93,7 +153,7 @@ solves no longer exists, it will likely be removed in the future.
|
||||
comma-separated font names, or a bytes of comma-separated font names, in
|
||||
which case the set of names will be searched in order.
|
||||
|
||||
.. versionaddedold:: 2.0.1 Accept an iterable of font names.
|
||||
.. versionadded:: 2.0.1 Accept an iterable of font names.
|
||||
|
||||
.. versionchanged:: 2.1.3 Checks through user fonts instead of just global fonts for Windows.
|
||||
|
||||
@@ -101,9 +161,9 @@ solves no longer exists, it will likely be removed in the future.
|
||||
|
||||
.. class:: Font
|
||||
|
||||
| :sl:`Create a new Font object from a file.`
|
||||
| :sg:`Font(filename=None, size=20) -> Font`
|
||||
| :sg:`Font(filename, size) -> Font`
|
||||
| :sl:`create a new Font object from a file`
|
||||
| :sg:`Font(file_path=None, size=12) -> Font`
|
||||
| :sg:`Font(file_path, size) -> Font`
|
||||
| :sg:`Font(pathlib.Path, size) -> Font`
|
||||
| :sg:`Font(object, size) -> Font`
|
||||
|
||||
@@ -111,18 +171,13 @@ solves no longer exists, it will likely be removed in the future.
|
||||
the height of the font in pixels. If the filename is ``None`` the pygame
|
||||
default font will be loaded. If a font cannot be loaded from the arguments
|
||||
given an exception will be raised. Once the font is created the size cannot
|
||||
be changed.
|
||||
be changed. If no arguments are given then the default font will be used and
|
||||
a font size of 12 is used.
|
||||
|
||||
Font objects are mainly used to render text into new Surface objects. The
|
||||
render can emulate bold or italic features, but it is better to load from a
|
||||
font with actual italic or bold glyphs.
|
||||
|
||||
.. versionchanged:: 2.1.4 If no arguments are given then the default font will be used and
|
||||
a font size of 20 is used.
|
||||
|
||||
.. versionchanged:: 2.1.4 This class is also available through the ``pygame.Font``
|
||||
alias.
|
||||
|
||||
.. attribute:: bold
|
||||
|
||||
| :sl:`Gets or sets whether the font should be rendered in (faked) bold.`
|
||||
@@ -137,38 +192,10 @@ solves no longer exists, it will likely be removed in the future.
|
||||
normal. This can be mixed with the italic, underline and
|
||||
strikethrough modes.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Font.bold ##
|
||||
|
||||
.. attribute:: name
|
||||
|
||||
| :sl:`Gets the font's name.`
|
||||
| :sg:`name -> str`
|
||||
|
||||
Read only. Returns the font's name.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
.. ## Font.name ##
|
||||
|
||||
.. attribute:: style_name
|
||||
|
||||
| :sl:`Gets the font's style_name.`
|
||||
| :sg:`style_name -> str`
|
||||
|
||||
Read only. Returns the font's style name. Style names are arbitrary, can be an empty string.
|
||||
Here are some examples:
|
||||
|
||||
'Black', 'Bold', 'Bold Italic', 'BoldOblique', 'Book', 'BookOblique', 'Condensed', 'Condensed Oblique',
|
||||
'ExtraLight', 'Italic', 'Light', 'LightOblique', 'Medium', 'MediumOblique', 'Oblique', 'Regular',
|
||||
'Semibold', 'Semilight', 'Slanted'
|
||||
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. ## Font.style_name ##
|
||||
|
||||
.. attribute:: italic
|
||||
|
||||
| :sl:`Gets or sets whether the font should be rendered in (faked) italics.`
|
||||
@@ -183,7 +210,7 @@ solves no longer exists, it will likely be removed in the future.
|
||||
than when normal. This can be mixed with the bold, underline and
|
||||
strikethrough modes.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Font.italic ##
|
||||
|
||||
@@ -199,10 +226,10 @@ solves no longer exists, it will likely be removed in the future.
|
||||
of font size. This can be mixed with the bold, italic and
|
||||
strikethrough modes.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Font.underline ##
|
||||
|
||||
|
||||
.. attribute:: strikethrough
|
||||
|
||||
| :sl:`Gets or sets whether the font should be rendered with a strikethrough.`
|
||||
@@ -219,82 +246,17 @@ solves no longer exists, it will likely be removed in the future.
|
||||
|
||||
.. ## Font.strikethrough ##
|
||||
|
||||
.. attribute:: align
|
||||
|
||||
| :sl:`Gets or sets how rendered text is aligned when given a wrap length.`
|
||||
| :sg:`align -> int`
|
||||
|
||||
Can be set to `pygame.FONT_LEFT`, `pygame.FONT_RIGHT`, or
|
||||
`pygame.FONT_CENTER`. This controls the text alignment behavior for the
|
||||
font. Defaults to `pygame.FONT_LEFT`.
|
||||
|
||||
Requires pygame built with SDL_ttf 2.20.0, as all official pygame
|
||||
distributions are.
|
||||
|
||||
.. versionadded:: 2.1.4
|
||||
|
||||
.. ## Font.align ##
|
||||
|
||||
.. attribute:: point_size
|
||||
|
||||
| :sl:`Gets or sets the font's point size.`
|
||||
| :sg:`point_size -> int`
|
||||
|
||||
Returns the point size of the font. Will not be accurate upon initializing
|
||||
the font object when the font name is initialized as ``None``.
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. ## Font.point_size ##
|
||||
|
||||
|
||||
.. attribute:: outline
|
||||
|
||||
| :sl:`Gets or sets the font's outline thickness (pixels).`
|
||||
| :sg:`outline -> int`
|
||||
|
||||
The outline value of the font.
|
||||
|
||||
When set to 0, the font will be drawn normally. When positive,
|
||||
the text will be drawn as a hollow outline. The outline grows in all
|
||||
directions a number of pixels equal to the value set. Negative values
|
||||
are not allowed.
|
||||
|
||||
This can be drawn underneath unoutlined text to create a text outline
|
||||
effect. For example: ::
|
||||
|
||||
def render_outlined(
|
||||
font: pygame.Font,
|
||||
text: str,
|
||||
text_color: pygame.typing.ColorLike,
|
||||
outline_color: pygame.typing.ColorLike,
|
||||
outline_width: int,
|
||||
) -> pygame.Surface:
|
||||
old_outline = font.outline
|
||||
if old_outline != 0:
|
||||
font.outline = 0
|
||||
base_text_surf = font.render(text, True, text_color)
|
||||
font.outline = outline_width
|
||||
outlined_text_surf = font.render(text, True, outline_color)
|
||||
|
||||
outlined_text_surf.blit(base_text_surf, (outline_width, outline_width))
|
||||
font.outline = old_outline
|
||||
return outlined_text_surf
|
||||
|
||||
.. versionadded:: 2.5.7
|
||||
|
||||
.. ## Font.outline ##
|
||||
|
||||
.. method:: render
|
||||
|
||||
| :sl:`Draw text on a new Surface.`
|
||||
| :sg:`render(text, antialias, color, bgcolor=None, wraplength=0) -> Surface`
|
||||
| :sl:`draw text on a new Surface`
|
||||
| :sg:`render(text, antialias, color, background=None) -> Surface`
|
||||
|
||||
This creates a new Surface with the specified text rendered on it.
|
||||
This creates a new Surface with the specified text rendered on it.
|
||||
:mod:`pygame.font` provides no way to directly draw text on an existing
|
||||
Surface: instead you must use :func:`Font.render` to create an image
|
||||
(Surface) of the text, then blit this image onto another Surface.
|
||||
|
||||
The text can only be a single line: newline characters are not rendered.
|
||||
Null characters ('\x00') raise a TypeError. Both Unicode and char (byte)
|
||||
strings are accepted. For Unicode strings only UCS-2 characters
|
||||
('\\u0001' to '\\uFFFF') were previously supported and any greater
|
||||
@@ -302,13 +264,9 @@ solves no longer exists, it will likely be removed in the future.
|
||||
UCS-4 range are supported. For char strings a ``LATIN1`` encoding is
|
||||
assumed. The antialias argument is a boolean: if True the characters
|
||||
will have smooth edges. The color argument is the color of the text
|
||||
[e.g.: (0,0,255) for blue]. The optional bgcolor argument is a color
|
||||
to use for the text background. If bgcolor is ``None`` the area outside
|
||||
the text will be transparent.
|
||||
|
||||
The `wraplength` argument describes the width (in pixels) a line of text
|
||||
should be before wrapping to a new line. See
|
||||
:attr:`pygame.font.Font.align` for line-alignment settings.
|
||||
[e.g.: (0,0,255) for blue]. The optional background argument is a color
|
||||
to use for the text background. If no background is passed the area
|
||||
outside the text will be transparent.
|
||||
|
||||
The Surface returned will be of the dimensions required to hold the text.
|
||||
(the same as those returned by :func:`Font.size`). If an empty string is passed
|
||||
@@ -329,60 +287,212 @@ solves no longer exists, it will likely be removed in the future.
|
||||
cause the resulting image to maintain transparency information by
|
||||
colorkey rather than (much less efficient) alpha values.
|
||||
|
||||
If you render '\\n' an unknown char will be rendered. Usually a
|
||||
rectangle. Instead you need to handle newlines yourself.
|
||||
|
||||
Font rendering is not thread safe: only a single thread can render text
|
||||
at any time.
|
||||
|
||||
.. versionchangedold:: 2.0.3 Rendering UCS4 unicode works and does not
|
||||
.. versionchanged:: 2.0.3 Rendering UCS4 unicode works and does not
|
||||
raise an exception. Use `if hasattr(pygame.font, "UCS4"):` to see if
|
||||
pygame supports rendering UCS4 unicode including more languages and
|
||||
emoji.
|
||||
|
||||
.. versionchanged:: 2.1.4 newline characters now will break text into
|
||||
multiple lines.
|
||||
|
||||
.. versionadded:: 2.1.4 wraplength parameter
|
||||
|
||||
.. versionchanged:: 2.3.0 now supports keyword arguments.
|
||||
|
||||
.. ## Font.render ##
|
||||
|
||||
.. autopgmethod:: size
|
||||
.. method:: size
|
||||
|
||||
.. autopgmethod:: set_underline
|
||||
| :sl:`determine the amount of space needed to render text`
|
||||
| :sg:`size(text) -> (width, height)`
|
||||
|
||||
.. autopgmethod:: get_underline
|
||||
Returns the dimensions needed to render the text. This can be used to
|
||||
help determine the positioning needed for text before it is rendered. It
|
||||
can also be used for word wrapping and other layout effects.
|
||||
|
||||
.. autopgmethod:: set_strikethrough
|
||||
Be aware that most fonts use kerning which adjusts the widths for
|
||||
specific letter pairs. For example, the width for "ae" will not always
|
||||
match the width for "a" + "e".
|
||||
|
||||
.. autopgmethod:: get_strikethrough
|
||||
.. ## Font.size ##
|
||||
|
||||
.. autopgmethod:: set_bold
|
||||
.. method:: set_underline
|
||||
|
||||
.. autopgmethod:: get_bold
|
||||
| :sl:`control if text is rendered with an underline`
|
||||
| :sg:`set_underline(bool) -> None`
|
||||
|
||||
.. autopgmethod:: set_italic
|
||||
When enabled, all rendered fonts will include an underline. The underline
|
||||
is always one pixel thick, regardless of font size. This can be mixed
|
||||
with the bold, italic and strikethrough modes.
|
||||
|
||||
.. autopgmethod:: metrics
|
||||
.. note:: This is the same as the :attr:`underline` attribute.
|
||||
|
||||
.. autopgmethod:: get_italic
|
||||
.. ## Font.set_underline ##
|
||||
|
||||
.. autopgmethod:: get_linesize
|
||||
.. method:: get_underline
|
||||
|
||||
.. autopgmethod:: set_linesize
|
||||
| :sl:`check if text will be rendered with an underline`
|
||||
| :sg:`get_underline() -> bool`
|
||||
|
||||
.. autopgmethod:: get_height
|
||||
Return True when the font underline is enabled.
|
||||
|
||||
.. autopgmethod:: set_point_size
|
||||
.. note:: This is the same as the :attr:`underline` attribute.
|
||||
|
||||
.. autopgmethod:: get_point_size
|
||||
.. ## Font.get_underline ##
|
||||
|
||||
.. method:: set_strikethrough
|
||||
|
||||
.. autopgmethod:: get_ascent
|
||||
| :sl:`control if text is rendered with a strikethrough`
|
||||
| :sg:`set_strikethrough(bool) -> None`
|
||||
|
||||
.. autopgmethod:: get_descent
|
||||
When enabled, all rendered fonts will include a strikethrough. The
|
||||
strikethrough is always one pixel thick, regardless of font size.
|
||||
This can be mixed with the bold, italic and underline modes.
|
||||
|
||||
.. autopgmethod:: set_script
|
||||
.. note:: This is the same as the :attr:`strikethrough` attribute.
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. autopgmethod:: set_direction
|
||||
.. ## Font.set_strikethrough ##
|
||||
|
||||
.. method:: get_strikethrough
|
||||
|
||||
| :sl:`check if text will be rendered with a strikethrough`
|
||||
| :sg:`get_strikethrough() -> bool`
|
||||
|
||||
Return True when the font strikethrough is enabled.
|
||||
|
||||
.. note:: This is the same as the :attr:`strikethrough` attribute.
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. ## Font.get_strikethrough ##
|
||||
|
||||
.. method:: set_bold
|
||||
|
||||
| :sl:`enable fake rendering of bold text`
|
||||
| :sg:`set_bold(bool) -> None`
|
||||
|
||||
Enables the bold rendering of text. This is a fake stretching of the font
|
||||
that doesn't look good on many font types. If possible load the font from
|
||||
a real bold font file. While bold, the font will have a different width
|
||||
than when normal. This can be mixed with the italic, underline and
|
||||
strikethrough modes.
|
||||
|
||||
.. note:: This is the same as the :attr:`bold` attribute.
|
||||
|
||||
.. ## Font.set_bold ##
|
||||
|
||||
.. method:: get_bold
|
||||
|
||||
| :sl:`check if text will be rendered bold`
|
||||
| :sg:`get_bold() -> bool`
|
||||
|
||||
Return True when the font bold rendering mode is enabled.
|
||||
|
||||
.. note:: This is the same as the :attr:`bold` attribute.
|
||||
|
||||
.. ## Font.get_bold ##
|
||||
|
||||
.. method:: set_italic
|
||||
|
||||
| :sl:`enable fake rendering of italic text`
|
||||
| :sg:`set_italic(bool) -> None`
|
||||
|
||||
Enables fake rendering of italic text. This is a fake skewing of the font
|
||||
that doesn't look good on many font types. If possible load the font from
|
||||
a real italic font file. While italic the font will have a different
|
||||
width than when normal. This can be mixed with the bold, underline and
|
||||
strikethrough modes.
|
||||
|
||||
.. note:: This is the same as the :attr:`italic` attribute.
|
||||
|
||||
.. ## Font.set_italic ##
|
||||
|
||||
.. method:: metrics
|
||||
|
||||
| :sl:`gets the metrics for each character in the passed string`
|
||||
| :sg:`metrics(text) -> list`
|
||||
|
||||
The list contains tuples for each character, which contain the minimum
|
||||
``X`` offset, the maximum ``X`` offset, the minimum ``Y`` offset, the
|
||||
maximum ``Y`` offset and the advance offset (bearing plus width) of the
|
||||
character. [(minx, maxx, miny, maxy, advance), (minx, maxx, miny, maxy,
|
||||
advance), ...]. None is entered in the list for each unrecognized
|
||||
character.
|
||||
|
||||
.. ## Font.metrics ##
|
||||
|
||||
.. method:: get_italic
|
||||
|
||||
| :sl:`check if the text will be rendered italic`
|
||||
| :sg:`get_italic() -> bool`
|
||||
|
||||
Return True when the font italic rendering mode is enabled.
|
||||
|
||||
.. note:: This is the same as the :attr:`italic` attribute.
|
||||
|
||||
.. ## Font.get_italic ##
|
||||
|
||||
.. method:: get_linesize
|
||||
|
||||
| :sl:`get the line space of the font text`
|
||||
| :sg:`get_linesize() -> int`
|
||||
|
||||
Return the height in pixels for a line of text with the font. When
|
||||
rendering multiple lines of text this is the recommended amount of space
|
||||
between lines.
|
||||
|
||||
.. ## Font.get_linesize ##
|
||||
|
||||
.. method:: get_height
|
||||
|
||||
| :sl:`get the height of the font`
|
||||
| :sg:`get_height() -> int`
|
||||
|
||||
Return the height in pixels of the actual rendered text. This is the
|
||||
average size for each glyph in the font.
|
||||
|
||||
.. ## Font.get_height ##
|
||||
|
||||
.. method:: get_ascent
|
||||
|
||||
| :sl:`get the ascent of the font`
|
||||
| :sg:`get_ascent() -> int`
|
||||
|
||||
Return the height in pixels for the font ascent. The ascent is the number
|
||||
of pixels from the font baseline to the top of the font.
|
||||
|
||||
.. ## Font.get_ascent ##
|
||||
|
||||
.. method:: get_descent
|
||||
|
||||
| :sl:`get the descent of the font`
|
||||
| :sg:`get_descent() -> int`
|
||||
|
||||
Return the height in pixels for the font descent. The descent is the
|
||||
number of pixels from the font baseline to the bottom of the font.
|
||||
|
||||
.. ## Font.get_descent ##
|
||||
|
||||
.. method:: set_script
|
||||
|
||||
| :sl:`set the script code for text shaping`
|
||||
| :sg:`set_script(str) -> None`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave feedback with authors <https://github.com/pygame/pygame/pull/3330>`_
|
||||
|
||||
Sets the script used by harfbuzz text shaping, taking a 4 character
|
||||
script code as input. For example, Hindi is written in the Devanagari
|
||||
script, for which the script code is `"Deva"`. See the full list of
|
||||
script codes in `ISO 15924 <https://www.unicode.org/iso15924/iso15924-codes.html>`_.
|
||||
|
||||
This method requires pygame built with SDL_ttf 2.20.0 or above. Otherwise the
|
||||
method will raise a pygame.error.
|
||||
|
||||
.. versionadded:: 2.2.0
|
||||
|
||||
.. ## Font.set_script ##
|
||||
|
||||
.. ## pygame.font.Font ##
|
||||
|
||||
|
||||
@@ -4,22 +4,18 @@
|
||||
======================
|
||||
|
||||
.. module:: pygame.freetype
|
||||
:synopsis: pygame module for loading and rendering computer fonts
|
||||
:synopsis: Enhanced pygame module for loading and rendering computer fonts
|
||||
|
||||
| :sl:`pygame module for loading and rendering computer fonts`
|
||||
| :sl:`Enhanced pygame module for loading and rendering computer fonts`
|
||||
|
||||
The ``pygame.freetype`` module is an alternative to :mod:`pygame.font`.
|
||||
It is implemented directly on the FreeType 2 library, and is not
|
||||
backward compatible with :mod:`pygame.font`. :mod:`pygame.font`
|
||||
relies on the SDL_ttf library, and due to the SDL_ttf team's efforts,
|
||||
``pygame.font`` is now the better supported of our font modules.
|
||||
In new code, the use of :mod:`pygame.font` is encouraged.
|
||||
``pygame.font``, unlike ``pygame.freetype``, has support for multiline text,
|
||||
text shaping for global writing systems, and rendering emoji with color.
|
||||
|
||||
The ``pygame.ftfont`` module exists as a limited version of
|
||||
the :mod:`pygame.font` API, running on top of ``pygame.freetype``.
|
||||
Many of the recently added font features do not work on it.
|
||||
The ``pygame.freetype`` module is a replacement for :mod:`pygame.font`.
|
||||
It has all of the functionality of the original, plus many new features.
|
||||
Yet is has absolutely no dependencies on the SDL_ttf library.
|
||||
It is implemented directly on the FreeType 2 library.
|
||||
The ``pygame.freetype`` module is not itself backward compatible with
|
||||
:mod:`pygame.font`.
|
||||
Instead, use the ``pygame.ftfont`` module as a drop-in replacement
|
||||
for :mod:`pygame.font`.
|
||||
|
||||
All font file formats supported by FreeType can be rendered by
|
||||
``pygame.freetype``, namely ``TTF``, Type1, ``CFF``, OpenType,
|
||||
@@ -63,7 +59,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
import pygame
|
||||
import pygame.freetype
|
||||
|
||||
.. versionaddedold:: 1.9.2 :mod:`freetype`
|
||||
.. versionadded:: 1.9.2 :mod:`freetype`
|
||||
|
||||
|
||||
.. function:: get_error
|
||||
@@ -88,7 +84,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
It will not compile with the original FreeType 1.0. Hence, the first element
|
||||
of the tuple will always be "2".
|
||||
|
||||
.. versionchanged:: 2.1.4 ``linked`` keyword argument added and default behavior changed from returning compiled version to returning linked version
|
||||
.. versionchanged:: 2.2.0 ``linked`` keyword argument added and default behavior changed from returning compiled version to returning linked version
|
||||
|
||||
.. function:: init
|
||||
|
||||
@@ -127,7 +123,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
|
||||
Returns ``True`` if the ``pygame.freetype`` module is currently initialized.
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. function:: was_init
|
||||
|
||||
@@ -155,7 +151,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
.. function:: set_default_resolution
|
||||
|
||||
| :sl:`Set the default pixel size in dots per inch for the module`
|
||||
| :sg:`set_default_resolution(resolution, /)`
|
||||
| :sg:`set_default_resolution([resolution])`
|
||||
|
||||
Set the default pixel size, in dots per inch, for the module. If the
|
||||
optional argument is omitted or zero the resolution is reset to 72 DPI.
|
||||
@@ -175,7 +171,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
comma-separated font names, or a bytes of comma-separated font names, in
|
||||
which case the set of names will be searched in order.
|
||||
|
||||
.. versionaddedold:: 2.0.1 Accept an iterable of font names.
|
||||
.. versionadded:: 2.0.1 Accept an iterable of font names.
|
||||
|
||||
.. function:: get_default_font
|
||||
|
||||
@@ -228,22 +224,6 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
Read only. Returns the real (long) name of the font, as
|
||||
recorded in the font file.
|
||||
|
||||
.. attribute:: style_name
|
||||
|
||||
| :sl:`Gets the font's style_name.`
|
||||
| :sg:`style_name -> str`
|
||||
|
||||
Read only. Returns the font's style name. Style names are arbitrary, can be an empty string.
|
||||
Here are some examples:
|
||||
|
||||
'Black', 'Bold', 'Bold Italic', 'BoldOblique', 'Book', 'BookOblique', 'Condensed', 'Condensed Oblique',
|
||||
'ExtraLight', 'Italic', 'Light', 'LightOblique', 'Medium', 'MediumOblique', 'Oblique', 'Regular',
|
||||
'Semibold', 'Semilight', 'Slanted'
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. ## Font.style_name ##
|
||||
|
||||
.. attribute:: path
|
||||
|
||||
| :sl:`Font file path`
|
||||
@@ -358,7 +338,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
.. method:: get_sized_ascender
|
||||
|
||||
| :sl:`The scaled ascent of the font in pixels`
|
||||
| :sg:`get_sized_ascender(size=0, /) -> int`
|
||||
| :sg:`get_sized_ascender(<size>=0) -> int`
|
||||
|
||||
Return the number of units from the font's baseline to the top of the
|
||||
bounding box. It is not adjusted for strong or rotation.
|
||||
@@ -366,15 +346,15 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
.. method:: get_sized_descender
|
||||
|
||||
| :sl:`The scaled descent of the font in pixels`
|
||||
| :sg:`get_sized_descender(size=0, /) -> int`
|
||||
| :sg:`get_sized_descender(<size>=0) -> int`
|
||||
|
||||
Return the number of pixels from the font's baseline to the bottom of the
|
||||
Return the number of pixels from the font's baseline to the top of the
|
||||
bounding box. It is not adjusted for strong or rotation.
|
||||
|
||||
.. method:: get_sized_height
|
||||
|
||||
| :sl:`The scaled height of the font in pixels`
|
||||
| :sg:`get_sized_height(size=0, /) -> int`
|
||||
| :sg:`get_sized_height(<size>=0) -> int`
|
||||
|
||||
Returns the height of the font. This is the average value of all
|
||||
glyphs in the font. It is not adjusted for strong or rotation.
|
||||
@@ -382,7 +362,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
.. method:: get_sized_glyph_height
|
||||
|
||||
| :sl:`The scaled bounding box height of the font in pixels`
|
||||
| :sg:`get_sized_glyph_height(size=0, /) -> int`
|
||||
| :sg:`get_sized_glyph_height(<size>=0) -> int`
|
||||
|
||||
Return the glyph bounding box height of the font in pixels.
|
||||
This is the average value of all glyphs in the font.
|
||||
@@ -743,7 +723,7 @@ loaded. This module must be imported explicitly to be used. ::
|
||||
unset and text will render with a transparent background by default.
|
||||
Applies to :meth:`render` and :meth:`render_to`.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. attribute:: origin
|
||||
|
||||
|
||||
@@ -1,769 +0,0 @@
|
||||
.. include:: common.txt
|
||||
|
||||
:mod:`pygame.geometry`
|
||||
======================
|
||||
|
||||
.. module:: pygame.geometry
|
||||
:synopsis: pygame geometry module
|
||||
|
||||
.. warning::
|
||||
**Experimental Module**
|
||||
|
||||
**This module is a work in progress. Refrain from relying on any features provided by
|
||||
this module, as they are subject to change or removal without prior notice.**
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
| :sl:`pygame module for the Circle, Line, and Polygon objects`
|
||||
|
||||
.. currentmodule:: pygame
|
||||
|
||||
.. class:: Circle
|
||||
|
||||
| :sl:`pygame object for representing a circle`
|
||||
| :sg:`Circle((x, y), radius) -> Circle`
|
||||
| :sg:`Circle(x, y, radius) -> Circle`
|
||||
|
||||
The `Circle` class provides many useful methods for collision testing, transformation and intersection.
|
||||
A `Circle` can be created from a combination of a pair of coordinates that represent
|
||||
the center of the circle and a radius. Circles can also be created from python objects that
|
||||
are already a `Circle` (effectively copying the circle) or have an attribute named "circle".
|
||||
|
||||
Specifically, to construct a circle you can pass the x, y, and radius values as separate
|
||||
arguments or inside a sequence(list or tuple).
|
||||
|
||||
Functions that require a `Circle` argument may also accept these values as Circles:
|
||||
|
||||
::
|
||||
|
||||
((x, y), radius)
|
||||
(x, y, radius)
|
||||
(vector2, radius)
|
||||
|
||||
The `Circle` class only stores the x, y and r attributes, everything else is calculated
|
||||
on the fly based on them.
|
||||
|
||||
**Circle Attributes**
|
||||
|
||||
----
|
||||
|
||||
.. attribute:: x
|
||||
|
||||
| :sl:`center x coordinate of the circle`
|
||||
| :sg:`x -> float`
|
||||
|
||||
The horizontal coordinate of the center of the circle. Reassigning it moves the circle.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.x ##
|
||||
|
||||
.. attribute:: y
|
||||
|
||||
| :sl:`center y coordinate of the circle`
|
||||
| :sg:`y -> float`
|
||||
|
||||
The vertical coordinate of the center of the circle. Reassigning it moves the circle.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.y ##
|
||||
|
||||
.. attribute:: r
|
||||
|
||||
| :sl:`radius of the circle`
|
||||
| :sg:`r -> float`
|
||||
|
||||
Represents the size of the circle. It can't be negative. Reassigning it scales the circle.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. versionchanged:: 2.5.1 It is now allowed to create degenerate circles with :math:`r = 0`.
|
||||
|
||||
.. ## Circle.r ##
|
||||
|
||||
.. attribute:: r_sqr
|
||||
|
||||
| :sl:`radius of the circle squared`
|
||||
| :sg:`r_sqr -> float`
|
||||
|
||||
It's equivalent to :math:`r^2`. It can't be negative. Reassigning it changes the radius to :math:`r = \sqrt{r_{sqr}}`.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.r_sqr ##
|
||||
|
||||
.. attribute:: center
|
||||
|
||||
| :sl:`x and y coordinates of the center of the circle`
|
||||
| :sg:`center -> (float, float)`
|
||||
|
||||
A tuple containing the circle's `x` and `y` coordinates representing its center.
|
||||
Reassigning it moves the circle to the new position.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.center ##
|
||||
|
||||
.. attribute:: diameter
|
||||
|
||||
| :sl:`diameter of the circle`
|
||||
| :sg:`diameter -> float`
|
||||
|
||||
It's equivalent to :math:`2 \cdot r`. It can't be negative. Reassigning it
|
||||
changes the radius to :math:`r = \frac{d}{2}`.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.diameter ##
|
||||
|
||||
.. attribute:: area
|
||||
|
||||
| :sl:`area of the circle`
|
||||
| :sg:`area -> float`
|
||||
|
||||
It's equivalent to :math:`\pi \cdot r^2`. It can't be negative. Reassigning it
|
||||
changes the radius to :math:`r = \sqrt{\frac{area}{\pi}}` producing a circle with matching area.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.area ##
|
||||
|
||||
.. attribute:: circumference
|
||||
|
||||
| :sl:`circumference of the circle`
|
||||
| :sg:`circumference -> float`
|
||||
|
||||
It's equivalent to :math:`2 \cdot \pi \cdot r`. It can't be negative. Reassigning it
|
||||
changes the radius to :math:`r = \frac{circumference}{2\pi}` producing a circle with
|
||||
matching circumference.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.circumference ##
|
||||
|
||||
.. attribute:: top
|
||||
|
||||
| :sl:`top coordinate of the circle`
|
||||
| :sg:`top -> (float, float)`
|
||||
|
||||
A tuple containing the `x` and `y` coordinates that represent the top
|
||||
of the circle.
|
||||
Reassigning it moves the circle to the new position. The radius will not be affected.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.top ##
|
||||
|
||||
.. attribute:: bottom
|
||||
|
||||
| :sl:`bottom coordinate of the circle`
|
||||
| :sg:`bottom -> (float, float)`
|
||||
|
||||
A tuple containing the `x` and `y` coordinates that represent the bottom
|
||||
of the circle.
|
||||
Reassigning it moves the circle to the new position. The radius will not be affected.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.bottom ##
|
||||
|
||||
.. attribute:: left
|
||||
|
||||
| :sl:`left coordinate of the circle`
|
||||
| :sg:`left -> (float, float)`
|
||||
|
||||
A tuple containing the `x` and `y` coordinates that represent the left
|
||||
of the circle.
|
||||
Reassigning it moves the circle to the new position. The radius will not be affected.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.left ##
|
||||
|
||||
.. attribute:: right
|
||||
|
||||
| :sl:`right coordinate of the circle`
|
||||
| :sg:`right -> (float, float)`
|
||||
|
||||
A tuple containing the `x` and `y` coordinates that represent the right
|
||||
of the circle.
|
||||
Reassigning it moves the circle to the new position. The radius will not be affected.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.right ##
|
||||
|
||||
**Circle Methods**
|
||||
|
||||
----
|
||||
|
||||
.. method:: collidepoint
|
||||
|
||||
| :sl:`tests if a point is inside the circle`
|
||||
| :sg:`collidepoint((x, y), /) -> bool`
|
||||
| :sg:`collidepoint(x, y, /) -> bool`
|
||||
| :sg:`collidepoint(vector2, /) -> bool`
|
||||
|
||||
Returns `True` if the given point is inside this `Circle` (edge included), `False` otherwise.
|
||||
It takes a tuple of (x, y) coordinates, two separate x and y coordinates, or a `Vector2`
|
||||
object as its argument.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.collidepoint ##
|
||||
|
||||
.. method:: collidecircle
|
||||
|
||||
| :sl:`tests if a circle collides with this circle`
|
||||
| :sg:`collidecircle(circle, /) -> bool`
|
||||
| :sg:`collidecircle(x, y, radius, /) -> bool`
|
||||
| :sg:`collidecircle((x, y), radius, /) -> bool`
|
||||
| :sg:`collidecircle(vector2, radius, /) -> bool`
|
||||
|
||||
Returns `True` if the given circle intersects with this `Circle`, `False` otherwise.
|
||||
It takes either a `Circle` object, a tuple of (x, y) coordinates and a radius, or separate x and y
|
||||
coordinates and a radius as its argument.
|
||||
|
||||
.. note::
|
||||
Calling this method with this circle as the argument will always return `True`.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.collidecircle ##
|
||||
|
||||
.. method:: colliderect
|
||||
|
||||
| :sl:`tests if a rectangle collides with this circle`
|
||||
| :sg:`colliderect(rect, /) -> bool`
|
||||
| :sg:`colliderect((x, y, width, height), /) -> bool`
|
||||
| :sg:`colliderect(x, y, width, height, /) -> bool`
|
||||
| :sg:`colliderect((x, y), (width, height), /) -> bool`
|
||||
| :sg:`colliderect(vector2, (width, height), /) -> bool`
|
||||
|
||||
Returns `True` if the given rectangle intersects with this `Circle`, `False` otherwise.
|
||||
Takes either a `Rect` object, a tuple of (x, y, width, height) coordinates, or separate
|
||||
x, y coordinates and width, height as its argument.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.colliderect ##
|
||||
|
||||
.. method:: collideswith
|
||||
|
||||
| :sl:`tests if a shape or point collides with this circle`
|
||||
| :sg:`collideswith(circle, /) -> bool`
|
||||
| :sg:`collideswith(rect, /) -> bool`
|
||||
| :sg:`collideswith((x, y), /) -> bool`
|
||||
| :sg:`collideswith(vector2, /) -> bool`
|
||||
|
||||
Returns `True` if the given shape or point intersects with this `Circle`, `False` otherwise.
|
||||
The shape can be a `Circle`, `Rect`, `FRect`.
|
||||
|
||||
.. note::
|
||||
The shape argument must be an actual shape object (`Circle`, `Rect`, or `FRect`).
|
||||
You can't pass a tuple or list of coordinates representing the shape (except for a point),
|
||||
because the shape type can't be determined from the coordinates alone.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.collideswith ##
|
||||
|
||||
.. method:: collidelist
|
||||
|
||||
| :sl:`test if a list of objects collide with the circle`
|
||||
| :sg:`collidelist(colliders) -> int`
|
||||
|
||||
The `collidelist` method tests whether a given list of shapes or points collides
|
||||
(overlaps) with this `Circle` object. The function takes in a single argument, which
|
||||
must be a list of `Circle`, `Rect`, `FRect`, or a point. The function returns the index
|
||||
of the first shape or point in the list that collides with the `Circle` object, or
|
||||
-1 if there is no collision.
|
||||
|
||||
.. note::
|
||||
The shapes must be actual shape objects, such as `Circle`, `Rect` or `FRect`
|
||||
instances. It is not possible to pass a tuple or list of coordinates representing
|
||||
the shape as an argument (except for a point), because the shape type can't be
|
||||
determined from the coordinates alone.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.collidelist ##
|
||||
|
||||
.. method:: collidelistall
|
||||
|
||||
| :sl:`test if all objects in a list collide with the circle`
|
||||
| :sg:`collidelistall(colliders) -> list`
|
||||
|
||||
The `collidelistall` method tests whether a given list of shapes or points collides
|
||||
(overlaps) with this `Circle` object. The function takes in a single argument, which
|
||||
must be a list of `Circle`, `Rect`, `FRect`, or a point. The function returns a list
|
||||
containing the indices of all the shapes or points in the list that collide with
|
||||
the `Circle` object, or an empty list if there is no collision.
|
||||
|
||||
.. note::
|
||||
The shapes must be actual shape objects, such as `Circle`, `Rect` or `FRect`
|
||||
instances. It is not possible to pass a tuple or list of coordinates representing
|
||||
the shape as an argument (except for a point), because the shape type can't be
|
||||
determined from the coordinates alone.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.collidelistall ##
|
||||
|
||||
.. method:: contains
|
||||
|
||||
| :sl:`tests if a shape or point is inside the circle`
|
||||
| :sg:`contains(circle, /) -> bool`
|
||||
| :sg:`contains(rect, /) -> bool`
|
||||
| :sg:`contains((x, y), /) -> bool`
|
||||
| :sg:`contains(vector2, /) -> bool`
|
||||
|
||||
Returns `True` if the shape or point is completely contained within this `Circle`, `False` otherwise.
|
||||
The shape can be a `Circle`, `Rect`, `FRect`.
|
||||
|
||||
.. note::
|
||||
The shape argument must be an actual shape object (`Circle`, `Rect`, or `FRect`).
|
||||
You can't pass a tuple or list of coordinates representing the shape (except for a point),
|
||||
because the shape type can't be determined from the coordinates alone.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.contains ##
|
||||
|
||||
.. method:: move
|
||||
|
||||
| :sl:`moves the circle by a given amount`
|
||||
| :sg:`move((x, y), /) -> Circle`
|
||||
| :sg:`move(x, y, /) -> Circle`
|
||||
| :sg:`move(vector2, /) -> Circle`
|
||||
|
||||
Returns a copy of this `Circle` moved by the given amounts.
|
||||
Takes either a tuple of (x, y) coordinates, two separate x and y coordinates,
|
||||
or a `Vector2` object as its argument.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Circle((circle.x + x, circle.y + y), circle.r)
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.move ##
|
||||
|
||||
.. method:: move_ip
|
||||
|
||||
| :sl:`moves the circle by a given amount, in place`
|
||||
| :sg:`move_ip((x, y), /) -> None`
|
||||
| :sg:`move_ip(x, y, /) -> None`
|
||||
| :sg:`move_ip(vector2, /) -> None`
|
||||
|
||||
Moves this `Circle` in place by the given amounts.
|
||||
Takes the same types of arguments as :meth:`move` and it always returns `None`.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
circle.x += x
|
||||
circle.y += y
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.move_ip ##
|
||||
|
||||
.. method:: intersect
|
||||
|
||||
| :sl:`finds intersections between the circle and a shape`
|
||||
| :sg:`intersect(circle, /) -> list`
|
||||
|
||||
Finds and returns a list of intersection points between the circle and another shape.
|
||||
The other shape must be a `Circle` object.
|
||||
If the circle does not intersect or has infinite intersections, an empty list is returned.
|
||||
|
||||
.. note::
|
||||
The shape argument must be an instance of the `Circle` class.
|
||||
Passing a tuple or list of coordinates representing the shape is not supported,
|
||||
as the type of shape cannot be determined from coordinates alone.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Circle.intersect ##
|
||||
|
||||
.. method:: update
|
||||
|
||||
| :sl:`updates the circle position and radius`
|
||||
| :sg:`update((x, y), radius, /) -> None`
|
||||
| :sg:`update(x, y, radius, /) -> None`
|
||||
| :sg:`update(vector2, radius, /) -> None`
|
||||
|
||||
Sets the position and radius of this `Circle` to the provided values.
|
||||
It always returns `None`.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
circle.x = x
|
||||
circle.y = y
|
||||
circle.r = radius
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.update ##
|
||||
|
||||
.. method:: rotate
|
||||
|
||||
| :sl:`rotates the circle`
|
||||
| :sg:`rotate(angle, rotation_point=Circle.center, /) -> Circle`
|
||||
| :sg:`rotate(angle, /) -> Circle`
|
||||
|
||||
Returns a copy of this `Circle` rotated by the specified angle (in degrees) around a point.
|
||||
Positive angles rotate the circle clockwise, counter-clockwise otherwise.
|
||||
The rotation point is optional and defaults to the circle's center.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.rotate ##
|
||||
|
||||
.. method:: rotate_ip
|
||||
|
||||
| :sl:`rotates the circle in place`
|
||||
| :sg:`rotate_ip(angle, rotation_point=Circle.center, /) -> None`
|
||||
| :sg:`rotate_ip(angle, /) -> None`
|
||||
|
||||
Rotates the circle by a specified angle (in degrees) around a point.
|
||||
Positive angles rotate the circle clockwise, counter-clockwise otherwise.
|
||||
The rotation point is optional and defaults to the circle's center.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.rotate_ip ##
|
||||
|
||||
.. method:: as_rect
|
||||
|
||||
| :sl:`returns the smallest Rect containing the circle`
|
||||
| :sg:`as_rect() -> Rect`
|
||||
|
||||
Returns the smallest `pygame.Rect` object containing this `Circle`.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Rect(circle.x - circle.r, circle.y - circle.r, circle.r * 2, circle.r * 2)
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.as_rect ##
|
||||
|
||||
.. method:: as_frect
|
||||
|
||||
| :sl:`returns the smallest FRect containing the circle`
|
||||
| :sg:`as_frect() -> FRect`
|
||||
|
||||
Returns the smallest `pygame.FRect` object containing this `Circle`.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
FRect(circle.x - circle.r, circle.y - circle.r, circle.r * 2, circle.r * 2)
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. ## Circle.as_frect ##
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`copies the circle`
|
||||
| :sg:`copy() -> Circle`
|
||||
|
||||
Returns a copy of this `Circle`.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Circle.copy ##
|
||||
|
||||
.. ## pygame.Circle ##
|
||||
|
||||
|
||||
.. class:: Line
|
||||
|
||||
| :sl:`pygame object for representing a line`
|
||||
| :sg:`Line((ax, ay), (bx, by)) -> Line`
|
||||
| :sg:`Line(ax, ay, bx, by) -> Line`
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
The `Line` class provides many useful methods for collision testing, transformation and intersection.
|
||||
A `Line` can be created from a combination of two pairs of coordinates that represent the start and end points.
|
||||
Lines can also be created from python objects that are already a `Line` (effectively copying the line) or have an attribute named "line".
|
||||
|
||||
Specifically, to construct a `Line` you can pass the ax, ay, bx, and by values as separate
|
||||
arguments or inside a sequence(list or tuple).
|
||||
|
||||
As a special case you can also pass in `pygame.Rect` / `pygame.FRect`, in which case the
|
||||
line will be created with (x, y, width, height) as the start and end points.
|
||||
|
||||
You can create lines with the same start and end points, but beware that some methods may
|
||||
not work as expected or error out.
|
||||
|
||||
Functions that require a `Line` argument may also accept these values as Lines:
|
||||
|
||||
::
|
||||
|
||||
((ax, ay), (bx, by))
|
||||
(ax, ay, bx, by)
|
||||
(vector2, vector2)
|
||||
|
||||
The `Line` class only stores the ax, ay, bx, and by attributes, everything else is calculated
|
||||
on the fly based on them.
|
||||
|
||||
**Line Attributes**
|
||||
|
||||
----
|
||||
|
||||
.. attribute:: ax
|
||||
|
||||
| :sl:`x coordinate of the start point of the line`
|
||||
| :sg:`ax -> float`
|
||||
|
||||
The horizontal coordinate of the start point of the line. Reassigning it moves the line.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.ax ##
|
||||
|
||||
.. attribute:: ay
|
||||
|
||||
| :sl:`y coordinate of the start point of the line`
|
||||
| :sg:`ay -> float`
|
||||
|
||||
The vertical coordinate of the start point of the line. Reassigning it moves the line.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.ay ##
|
||||
|
||||
.. attribute:: bx
|
||||
|
||||
| :sl:`x coordinate of the end point of the line`
|
||||
| :sg:`bx -> float`
|
||||
|
||||
The horizontal coordinate of the end point of the line. Reassigning it moves the line.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.bx ##
|
||||
|
||||
.. attribute:: by
|
||||
|
||||
| :sl:`y coordinate of the end point of the line`
|
||||
| :sg:`by -> float`
|
||||
|
||||
The vertical coordinate of the end point of the line. Reassigning it moves the line.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.by ##
|
||||
|
||||
.. attribute:: a
|
||||
|
||||
| :sl:`the first point of the line`
|
||||
| :sg:`a -> (float, float)`
|
||||
|
||||
A tuple containing the `ax` and `ay` attributes representing the line's first point.
|
||||
It can be reassigned to move the `Line`. If reassigned the `ax` and `ay` attributes
|
||||
will be changed to produce a `Line` with matching first point position.
|
||||
The `bx` and `by` attributes will not be affected.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.a ##
|
||||
|
||||
.. attribute:: b
|
||||
|
||||
| :sl:`the second point of the line`
|
||||
| :sg:`b -> (float, float)`
|
||||
|
||||
A tuple containing `bx` and `by` attributes representing the line's second point.
|
||||
It can be reassigned to move the `Line`. If reassigned the `bx` and `by` attributes
|
||||
will be changed to produce a `Line` with matching second point position.
|
||||
The `ax` and `ay` attributes will not be affected.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.b ##
|
||||
|
||||
.. attribute:: length
|
||||
|
||||
| :sl:`the length of the line`
|
||||
| :sg:`length -> float`
|
||||
|
||||
The length of the line. Calculated using the `sqrt((bx-ax)**2 + (by-ay)**2)` formula.
|
||||
This attribute is read-only, it cannot be reassigned. To change the line's length
|
||||
use the `scale` method or change its `a` or `b` attributes.
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.length ##
|
||||
|
||||
**Line Methods**
|
||||
|
||||
----
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`copies the line`
|
||||
| :sg:`copy() -> Line`
|
||||
|
||||
Returns a copy of this `Line`.
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
.. ## Line.copy ##
|
||||
|
||||
.. method:: move
|
||||
|
||||
| :sl:`moves the line by a given amount`
|
||||
| :sg:`move((x, y)) -> Line`
|
||||
| :sg:`move(x, y) -> Line`
|
||||
|
||||
Returns a new `Line` that is moved by the given offset. The original `Line` is
|
||||
not modified.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Line(line.ax + x, line.ay + y, line.bx + x, line.by + y)
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.move ##
|
||||
|
||||
.. method:: move_ip
|
||||
|
||||
| :sl:`moves the line by a given amount`
|
||||
| :sg:`move_ip((x, y)) -> None`
|
||||
| :sg:`move_ip(x, y) -> None`
|
||||
|
||||
Moves the `Line` by the given offset. The original `Line` is modified. Always returns
|
||||
`None`.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
line.ax += x
|
||||
line.ay += y
|
||||
line.bx += x
|
||||
line.by += y
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.move_ip ##
|
||||
|
||||
.. method:: update
|
||||
|
||||
| :sl:`updates the line's attributes`
|
||||
| :sg:`update((ax, ay), (bx, by)) -> None`
|
||||
| :sg:`update(ax, ay, bx, by) -> None`
|
||||
| :sg:`update(line) -> None`
|
||||
|
||||
Updates the `Line`'s attributes. The original `Line` is modified. Always returns `None`.
|
||||
|
||||
This method is equivalent to the following code:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
line.ax = ax
|
||||
line.ay = ay
|
||||
line.bx = bx
|
||||
line.by = by
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.update ##
|
||||
|
||||
.. method:: scale
|
||||
|
||||
| :sl:`scales the line by the given factor from the given origin`
|
||||
| :sg:`scale(factor, origin) -> Line`
|
||||
| :sg:`scale(factor_and_origin) -> Line`
|
||||
|
||||
Returns a new `Line` which is scaled by the given factor from the specified origin with 0.0 being
|
||||
the starting point, 0.5 being the center and 1.0 being the end point.
|
||||
The original `Line` is not modified.
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.scale ##
|
||||
|
||||
.. method:: scale_ip
|
||||
|
||||
| :sl:`scales the line by the given factor from the given origin in place`
|
||||
| :sg:`scale_ip(factor, origin) -> None`
|
||||
| :sg:`scale_ip(factor_and_origin) -> None`
|
||||
|
||||
Scales the `Line` by the given factor from the specified origin with 0.0 being
|
||||
the starting point, 0.5 being the center and 1.0 being the end point.
|
||||
The original `Line` is modified.
|
||||
Always returns `None`.
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.scale_ip ##
|
||||
|
||||
.. method:: flip_ab
|
||||
|
||||
| :sl:`flips the line a and b points`
|
||||
| :sg:`flip_ab() -> Line`
|
||||
|
||||
Returns a new `Line` that has the `a` and `b` points flipped.
|
||||
The original `Line` is not modified.
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.flip_ab ##
|
||||
|
||||
.. method:: flip_ab_ip
|
||||
|
||||
| :sl:`flips the line a and b points, in place`
|
||||
| :sg:`flip_ab_ip() -> None`
|
||||
|
||||
Flips the `Line`'s `a` and `b` points. The original `Line` is modified.
|
||||
Always returns `None`.
|
||||
|
||||
.. versionadded:: 2.5.3
|
||||
|
||||
.. ## Line.flip_ab_ip ##
|
||||
|
||||
.. method:: project
|
||||
|
||||
| :sl:`projects the line onto the given line`
|
||||
| :sg:`project(point: tuple[float, float], clamp=False) -> tuple[float, float]`
|
||||
|
||||
This method takes in a point and one boolean keyword argument clamp. It outputs an orthogonally projected point onto the line.
|
||||
If clamp is `True` it makes sure that the outputted point will be on the line segment (which might not be orthogonal), and if it is `False` (the default) then any point on the infinitely extended line may be outputted.
|
||||
This method can be used to find the closest point on a line to the given point. The output is the unique point on the line or line segment that is the smallest distance away from the given point.
|
||||
|
||||
|
||||
.. figure:: code_examples/project.png
|
||||
:alt: project method image
|
||||
|
||||
Example of how it projects the point onto the line. The red point is the point we want to project and the blue point is what you would get as a result.
|
||||
|
||||
|
||||
.. figure:: code_examples/project_clamp.png
|
||||
:alt: project clamp argument image
|
||||
|
||||
Example of what the clamp argument changes. If it is `True`, the point is bounded between the line segment ends.
|
||||
|
||||
WARNING: If the line has no length (i.e. the start and end points are the same) then the returned point of this function will be the same point as both ends of the line.
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
|
||||
.. ## Line.project ##
|
||||
@@ -54,13 +54,13 @@ For example:
|
||||
``pygame.gfxdraw`` wraps the primitives from the library called SDL_gfx,
|
||||
rather than using modified versions.
|
||||
|
||||
.. versionaddedold:: 1.9.0
|
||||
.. versionadded:: 1.9.0
|
||||
|
||||
|
||||
.. function:: pixel
|
||||
|
||||
| :sl:`draw a pixel`
|
||||
| :sg:`pixel(surface, x, y, color, /) -> None`
|
||||
| :sg:`pixel(surface, x, y, color) -> None`
|
||||
|
||||
Draws a single pixel, at position (x ,y), on the given surface.
|
||||
|
||||
@@ -79,7 +79,7 @@ For example:
|
||||
.. function:: hline
|
||||
|
||||
| :sl:`draw a horizontal line`
|
||||
| :sg:`hline(surface, x1, x2, y, color, /) -> None`
|
||||
| :sg:`hline(surface, x1, x2, y, color) -> None`
|
||||
|
||||
Draws a straight horizontal line (``(x1, y)`` to ``(x2, y)``) on the given
|
||||
surface. There are no endcaps.
|
||||
@@ -100,7 +100,7 @@ For example:
|
||||
.. function:: vline
|
||||
|
||||
| :sl:`draw a vertical line`
|
||||
| :sg:`vline(surface, x, y1, y2, color, /) -> None`
|
||||
| :sg:`vline(surface, x, y1, y2, color) -> None`
|
||||
|
||||
Draws a straight vertical line (``(x, y1)`` to ``(x, y2)``) on the given
|
||||
surface. There are no endcaps.
|
||||
@@ -121,7 +121,7 @@ For example:
|
||||
.. function:: line
|
||||
|
||||
| :sl:`draw a line`
|
||||
| :sg:`line(surface, x1, y1, x2, y2, color, /) -> None`
|
||||
| :sg:`line(surface, x1, y1, x2, y2, color) -> None`
|
||||
|
||||
Draws a straight line (``(x1, y1)`` to ``(x2, y2)``) on the given surface.
|
||||
There are no endcaps.
|
||||
@@ -143,7 +143,7 @@ For example:
|
||||
.. function:: rectangle
|
||||
|
||||
| :sl:`draw a rectangle`
|
||||
| :sg:`rectangle(surface, rect, color, /) -> None`
|
||||
| :sg:`rectangle(surface, rect, color) -> None`
|
||||
|
||||
Draws an unfilled rectangle on the given surface. For a filled rectangle use
|
||||
:meth:`box`.
|
||||
@@ -167,7 +167,7 @@ For example:
|
||||
.. function:: box
|
||||
|
||||
| :sl:`draw a filled rectangle`
|
||||
| :sg:`box(surface, rect, color, /) -> None`
|
||||
| :sg:`box(surface, rect, color) -> None`
|
||||
|
||||
Draws a filled rectangle on the given surface. For an unfilled rectangle use
|
||||
:meth:`rectangle`.
|
||||
@@ -197,7 +197,7 @@ For example:
|
||||
.. function:: circle
|
||||
|
||||
| :sl:`draw a circle`
|
||||
| :sg:`circle(surface, x, y, r, color, /) -> None`
|
||||
| :sg:`circle(surface, x, y, r, color) -> None`
|
||||
|
||||
Draws an unfilled circle on the given surface. For a filled circle use
|
||||
:meth:`filled_circle`.
|
||||
@@ -218,7 +218,7 @@ For example:
|
||||
.. function:: aacircle
|
||||
|
||||
| :sl:`draw an antialiased circle`
|
||||
| :sg:`aacircle(surface, x, y, r, color, /) -> None`
|
||||
| :sg:`aacircle(surface, x, y, r, color) -> None`
|
||||
|
||||
Draws an unfilled antialiased circle on the given surface.
|
||||
|
||||
@@ -238,7 +238,7 @@ For example:
|
||||
.. function:: filled_circle
|
||||
|
||||
| :sl:`draw a filled circle`
|
||||
| :sg:`filled_circle(surface, x, y, r, color, /) -> None`
|
||||
| :sg:`filled_circle(surface, x, y, r, color) -> None`
|
||||
|
||||
Draws a filled circle on the given surface. For an unfilled circle use
|
||||
:meth:`circle`.
|
||||
@@ -259,7 +259,7 @@ For example:
|
||||
.. function:: ellipse
|
||||
|
||||
| :sl:`draw an ellipse`
|
||||
| :sg:`ellipse(surface, x, y, rx, ry, color, /) -> None`
|
||||
| :sg:`ellipse(surface, x, y, rx, ry, color) -> None`
|
||||
|
||||
Draws an unfilled ellipse on the given surface. For a filled ellipse use
|
||||
:meth:`filled_ellipse`.
|
||||
@@ -281,7 +281,7 @@ For example:
|
||||
.. function:: aaellipse
|
||||
|
||||
| :sl:`draw an antialiased ellipse`
|
||||
| :sg:`aaellipse(surface, x, y, rx, ry, color, /) -> None`
|
||||
| :sg:`aaellipse(surface, x, y, rx, ry, color) -> None`
|
||||
|
||||
Draws an unfilled antialiased ellipse on the given surface.
|
||||
|
||||
@@ -302,7 +302,7 @@ For example:
|
||||
.. function:: filled_ellipse
|
||||
|
||||
| :sl:`draw a filled ellipse`
|
||||
| :sg:`filled_ellipse(surface, x, y, rx, ry, color, /) -> None`
|
||||
| :sg:`filled_ellipse(surface, x, y, rx, ry, color) -> None`
|
||||
|
||||
Draws a filled ellipse on the given surface. For an unfilled ellipse use
|
||||
:meth:`ellipse`.
|
||||
@@ -324,7 +324,7 @@ For example:
|
||||
.. function:: arc
|
||||
|
||||
| :sl:`draw an arc`
|
||||
| :sg:`arc(surface, x, y, r, start_angle, stop_angle, color, /) -> None`
|
||||
| :sg:`arc(surface, x, y, r, start_angle, stop_angle, color) -> None`
|
||||
|
||||
Draws an arc on the given surface. For an arc with its endpoints connected
|
||||
to its center use :meth:`pie`.
|
||||
@@ -356,7 +356,7 @@ For example:
|
||||
.. function:: pie
|
||||
|
||||
| :sl:`draw a pie`
|
||||
| :sg:`pie(surface, x, y, r, start_angle, stop_angle, color, /) -> None`
|
||||
| :sg:`pie(surface, x, y, r, start_angle, stop_angle, color) -> None`
|
||||
|
||||
Draws an unfilled pie on the given surface. A pie is an :meth:`arc` with its
|
||||
endpoints connected to its center.
|
||||
@@ -385,7 +385,7 @@ For example:
|
||||
.. function:: trigon
|
||||
|
||||
| :sl:`draw a trigon/triangle`
|
||||
| :sg:`trigon(surface, x1, y1, x2, y2, x3, y3, color, /) -> None`
|
||||
| :sg:`trigon(surface, x1, y1, x2, y2, x3, y3, color) -> None`
|
||||
|
||||
Draws an unfilled trigon (triangle) on the given surface. For a filled
|
||||
trigon use :meth:`filled_trigon`.
|
||||
@@ -412,7 +412,7 @@ For example:
|
||||
.. function:: aatrigon
|
||||
|
||||
| :sl:`draw an antialiased trigon/triangle`
|
||||
| :sg:`aatrigon(surface, x1, y1, x2, y2, x3, y3, color, /) -> None`
|
||||
| :sg:`aatrigon(surface, x1, y1, x2, y2, x3, y3, color) -> None`
|
||||
|
||||
Draws an unfilled antialiased trigon (triangle) on the given surface.
|
||||
|
||||
@@ -438,7 +438,7 @@ For example:
|
||||
.. function:: filled_trigon
|
||||
|
||||
| :sl:`draw a filled trigon/triangle`
|
||||
| :sg:`filled_trigon(surface, x1, y1, x2, y2, x3, y3, color, /) -> None`
|
||||
| :sg:`filled_trigon(surface, x1, y1, x2, y2, x3, y3, color) -> None`
|
||||
|
||||
Draws a filled trigon (triangle) on the given surface. For an unfilled
|
||||
trigon use :meth:`trigon`.
|
||||
@@ -465,12 +465,12 @@ For example:
|
||||
.. function:: polygon
|
||||
|
||||
| :sl:`draw a polygon`
|
||||
| :sg:`polygon(surface, points, color, /) -> None`
|
||||
| :sg:`polygon(surface, points, color) -> None`
|
||||
|
||||
Draws an unfilled polygon on the given surface. For a filled polygon use
|
||||
:meth:`filled_polygon`.
|
||||
|
||||
The adjacent points in the ``points`` argument, as well as the first
|
||||
The adjacent coordinates in the ``points`` argument, as well as the first
|
||||
and last points, will be connected by line segments.
|
||||
e.g. For the points ``[(x1, y1), (x2, y2), (x3, y3)]`` a line segment will
|
||||
be drawn from ``(x1, y1)`` to ``(x2, y2)``, from ``(x2, y2)`` to
|
||||
@@ -478,10 +478,10 @@ For example:
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param points: a sequence of 3 or more (x, y) coordinates, where each
|
||||
point in the sequence must be a
|
||||
*coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats (float values
|
||||
will be truncated)
|
||||
:type points: tuple(point) or list(point)
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or tuple(int, int, int, [int])
|
||||
@@ -490,7 +490,7 @@ For example:
|
||||
:rtype: NoneType
|
||||
|
||||
:raises ValueError: if ``len(points) < 3`` (must have at least 3 points)
|
||||
:raises IndexError: if ``len(point) < 2`` (each point must have
|
||||
:raises IndexError: if ``len(coordinate) < 2`` (each coordinate must have
|
||||
at least 2 items)
|
||||
|
||||
.. ## pygame.gfxdraw.polygon ##
|
||||
@@ -498,11 +498,11 @@ For example:
|
||||
.. function:: aapolygon
|
||||
|
||||
| :sl:`draw an antialiased polygon`
|
||||
| :sg:`aapolygon(surface, points, color, /) -> None`
|
||||
| :sg:`aapolygon(surface, points, color) -> None`
|
||||
|
||||
Draws an unfilled antialiased polygon on the given surface.
|
||||
|
||||
The adjacent points in the ``points`` argument, as well as the first
|
||||
The adjacent coordinates in the ``points`` argument, as well as the first
|
||||
and last points, will be connected by line segments.
|
||||
e.g. For the points ``[(x1, y1), (x2, y2), (x3, y3)]`` a line segment will
|
||||
be drawn from ``(x1, y1)`` to ``(x2, y2)``, from ``(x2, y2)`` to
|
||||
@@ -510,10 +510,10 @@ For example:
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param points: a sequence of 3 or more (x, y) coordinates, where each
|
||||
point in the sequence must be a
|
||||
*coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats (float values
|
||||
will be truncated)
|
||||
:type points: tuple(point) or list(point)
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or tuple(int, int, int, [int])
|
||||
@@ -522,7 +522,7 @@ For example:
|
||||
:rtype: NoneType
|
||||
|
||||
:raises ValueError: if ``len(points) < 3`` (must have at least 3 points)
|
||||
:raises IndexError: if ``len(point) < 2`` (each point must have
|
||||
:raises IndexError: if ``len(coordinate) < 2`` (each coordinate must have
|
||||
at least 2 items)
|
||||
|
||||
.. ## pygame.gfxdraw.aapolygon ##
|
||||
@@ -530,12 +530,12 @@ For example:
|
||||
.. function:: filled_polygon
|
||||
|
||||
| :sl:`draw a filled polygon`
|
||||
| :sg:`filled_polygon(surface, points, color, /) -> None`
|
||||
| :sg:`filled_polygon(surface, points, color) -> None`
|
||||
|
||||
Draws a filled polygon on the given surface. For an unfilled polygon use
|
||||
:meth:`polygon`.
|
||||
|
||||
The adjacent points in the ``points`` argument, as well as the first
|
||||
The adjacent coordinates in the ``points`` argument, as well as the first
|
||||
and last points, will be connected by line segments.
|
||||
e.g. For the points ``[(x1, y1), (x2, y2), (x3, y3)]`` a line segment will
|
||||
be drawn from ``(x1, y1)`` to ``(x2, y2)``, from ``(x2, y2)`` to
|
||||
@@ -543,10 +543,10 @@ For example:
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param points: a sequence of 3 or more (x, y) coordinates, where each
|
||||
point in the sequence must be a
|
||||
*coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats (float values
|
||||
will be truncated)`
|
||||
:type points: tuple(point) or list(point)
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
:type color: Color or tuple(int, int, int, [int])
|
||||
@@ -555,7 +555,7 @@ For example:
|
||||
:rtype: NoneType
|
||||
|
||||
:raises ValueError: if ``len(points) < 3`` (must have at least 3 points)
|
||||
:raises IndexError: if ``len(point) < 2`` (each point must have
|
||||
:raises IndexError: if ``len(coordinate) < 2`` (each coordinate must have
|
||||
at least 2 items)
|
||||
|
||||
.. ## pygame.gfxdraw.filled_polygon ##
|
||||
@@ -563,7 +563,7 @@ For example:
|
||||
.. function:: textured_polygon
|
||||
|
||||
| :sl:`draw a textured polygon`
|
||||
| :sg:`textured_polygon(surface, points, texture, tx, ty, /) -> None`
|
||||
| :sg:`textured_polygon(surface, points, texture, tx, ty) -> None`
|
||||
|
||||
Draws a textured polygon on the given surface. For better performance, the
|
||||
surface and the texture should have the same format.
|
||||
@@ -572,7 +572,7 @@ For example:
|
||||
a :func:`pygame.Surface.blit` blit. Also, a per-pixel alpha texture cannot be
|
||||
used with an 8-bit per pixel destination.
|
||||
|
||||
The adjacent points in the ``points`` argument, as well as the first
|
||||
The adjacent coordinates in the ``points`` argument, as well as the first
|
||||
and last points, will be connected by line segments.
|
||||
e.g. For the points ``[(x1, y1), (x2, y2), (x3, y3)]`` a line segment will
|
||||
be drawn from ``(x1, y1)`` to ``(x2, y2)``, from ``(x2, y2)`` to
|
||||
@@ -580,10 +580,10 @@ For example:
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param points: a sequence of 3 or more (x, y) coordinates, where each
|
||||
point in the sequence must be a
|
||||
*coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats (float values
|
||||
will be truncated)
|
||||
:type points: tuple(point) or list(point)
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param Surface texture: texture to draw on the polygon
|
||||
:param int tx: x offset of the texture
|
||||
:param int ty: y offset of the texture
|
||||
@@ -592,7 +592,7 @@ For example:
|
||||
:rtype: NoneType
|
||||
|
||||
:raises ValueError: if ``len(points) < 3`` (must have at least 3 points)
|
||||
:raises IndexError: if ``len(point) < 2`` (each point must have
|
||||
:raises IndexError: if ``len(coordinate) < 2`` (each coordinate must have
|
||||
at least 2 items)
|
||||
|
||||
.. ## pygame.gfxdraw.textured_polygon ##
|
||||
@@ -600,16 +600,16 @@ For example:
|
||||
.. function:: bezier
|
||||
|
||||
| :sl:`draw a Bezier curve`
|
||||
| :sg:`bezier(surface, points, steps, color, /) -> None`
|
||||
| :sg:`bezier(surface, points, steps, color) -> None`
|
||||
|
||||
Draws a Bézier curve on the given surface.
|
||||
|
||||
:param Surface surface: surface to draw on
|
||||
:param points: a sequence of 3 or more (x, y) coordinates used to form a
|
||||
curve, where each point in the sequence must be a
|
||||
curve, where each *coordinate* in the sequence must be a
|
||||
tuple/list/:class:`pygame.math.Vector2` of 2 ints/floats (float values
|
||||
will be truncated)
|
||||
:type points: tuple(point) or list(point)
|
||||
:type points: tuple(coordinate) or list(coordinate)
|
||||
:param int steps: number of steps for the interpolation, the minimum is 2
|
||||
:param color: color to draw with, the alpha value is optional if using a
|
||||
tuple ``(RGB[A])``
|
||||
@@ -620,12 +620,9 @@ For example:
|
||||
|
||||
:raises ValueError: if ``steps < 2``
|
||||
:raises ValueError: if ``len(points) < 3`` (must have at least 3 points)
|
||||
:raises IndexError: if ``len(point) < 2`` (each point must have
|
||||
:raises IndexError: if ``len(coordinate) < 2`` (each coordinate must have
|
||||
at least 2 items)
|
||||
|
||||
.. note:: This function supports up to around 150-200 points before the algorithm
|
||||
breaks down.
|
||||
|
||||
.. ## pygame.gfxdraw.bezier ##
|
||||
|
||||
.. ## pygame.gfxdraw ##
|
||||
@@ -3,5 +3,373 @@
|
||||
:mod:`pygame.image`
|
||||
===================
|
||||
|
||||
.. autopgmodule:: pygame.image
|
||||
:members:
|
||||
.. module:: pygame.image
|
||||
:synopsis: pygame module for loading and saving images
|
||||
|
||||
| :sl:`pygame module for image transfer`
|
||||
|
||||
The image module contains functions for loading and saving pictures, as well as
|
||||
transferring Surfaces to formats usable by other packages.
|
||||
|
||||
Note that there is no Image class; an image is loaded as a Surface object. The
|
||||
Surface class allows manipulation (drawing lines, setting pixels, capturing
|
||||
regions, etc.).
|
||||
|
||||
In the vast majority of installations, pygame is built to support extended
|
||||
formats, using the SDL_Image library behind the scenes. However, some
|
||||
installations may only support uncompressed ``BMP`` images. With full image
|
||||
support, the :func:`pygame.image.load()` function can load the following
|
||||
formats.
|
||||
|
||||
* ``BMP``
|
||||
|
||||
* ``GIF`` (non-animated)
|
||||
|
||||
* ``JPEG``
|
||||
|
||||
* ``LBM`` (and ``PBM``, ``PGM``, ``PPM``)
|
||||
|
||||
* ``PCX``
|
||||
|
||||
* ``PNG``
|
||||
|
||||
* ``PNM``
|
||||
|
||||
* ``SVG`` (limited support, using Nano SVG)
|
||||
|
||||
* ``TGA`` (uncompressed)
|
||||
|
||||
* ``TIFF``
|
||||
|
||||
* ``WEBP``
|
||||
|
||||
* ``XPM``
|
||||
|
||||
|
||||
.. versionadded:: 2.0 Loading SVG, WebP, PNM
|
||||
|
||||
Saving images only supports a limited set of formats. You can save to the
|
||||
following formats.
|
||||
|
||||
* ``BMP``
|
||||
|
||||
* ``JPEG``
|
||||
|
||||
* ``PNG``
|
||||
|
||||
* ``TGA``
|
||||
|
||||
|
||||
``JPEG`` and ``JPG``, as well as ``TIF`` and ``TIFF`` refer to the same file format
|
||||
|
||||
.. versionadded:: 1.8 Saving PNG and JPEG files.
|
||||
|
||||
|
||||
.. function:: load
|
||||
|
||||
| :sl:`load new image from a file (or file-like object)`
|
||||
| :sg:`load(filename) -> Surface`
|
||||
| :sg:`load(fileobj, namehint="") -> Surface`
|
||||
|
||||
Load an image from a file source. You can pass either a filename, a Python
|
||||
file-like object, or a pathlib.Path.
|
||||
|
||||
Pygame will automatically determine the image type (e.g., ``GIF`` or bitmap)
|
||||
and create a new Surface object from the data. In some cases it will need to
|
||||
know the file extension (e.g., ``GIF`` images should end in ".gif"). If you
|
||||
pass a raw file-like object, you may also want to pass the original filename
|
||||
as the namehint argument.
|
||||
|
||||
The returned Surface will contain the same color format, colorkey and alpha
|
||||
transparency as the file it came from. You will often want to call
|
||||
:func:`pygame.Surface.convert()` with no arguments, to create a copy that
|
||||
will draw more quickly on the screen.
|
||||
|
||||
For alpha transparency, like in .png images, use the
|
||||
:func:`pygame.Surface.convert_alpha()` method after loading so that the
|
||||
image has per pixel transparency.
|
||||
|
||||
Pygame may not always be built to support all image formats. At minimum it
|
||||
will support uncompressed ``BMP``. If :func:`pygame.image.get_extended()`
|
||||
returns ``True``, you should be able to load most images (including PNG, JPG
|
||||
and GIF).
|
||||
|
||||
You should use :func:`os.path.join()` for compatibility.
|
||||
|
||||
::
|
||||
|
||||
eg. asurf = pygame.image.load(os.path.join('data', 'bla.png'))
|
||||
|
||||
.. ## pygame.image.load ##
|
||||
|
||||
.. function:: save
|
||||
|
||||
| :sl:`save an image to file (or file-like object)`
|
||||
| :sg:`save(Surface, filename) -> None`
|
||||
| :sg:`save(Surface, fileobj, namehint="") -> None`
|
||||
|
||||
This will save your Surface as either a ``BMP``, ``TGA``, ``PNG``, or
|
||||
``JPEG`` image. If the filename extension is unrecognized it will default to
|
||||
``TGA``. Both ``TGA``, and ``BMP`` file formats create uncompressed files.
|
||||
You can pass a filename, a pathlib.Path or a Python file-like object.
|
||||
For file-like object, the image is saved to ``TGA`` format unless
|
||||
a namehint with a recognizable extension is passed in.
|
||||
|
||||
.. note:: When saving to a file-like object, it seems that for most formats,
|
||||
the object needs to be flushed after saving to it to make loading
|
||||
from it possible.
|
||||
|
||||
.. versionchanged:: 1.8 Saving PNG and JPEG files.
|
||||
.. versionchanged:: 2.0.0
|
||||
The ``namehint`` parameter was added to make it possible
|
||||
to save other formats than ``TGA`` to a file-like object.
|
||||
Saving to a file-like object with JPEG is possible.
|
||||
|
||||
.. ## pygame.image.save ##
|
||||
|
||||
.. function:: get_sdl_image_version
|
||||
|
||||
| :sl:`get version number of the SDL_Image library being used`
|
||||
| :sg:`get_sdl_image_version(linked=True) -> None`
|
||||
| :sg:`get_sdl_image_version(linked=True) -> (major, minor, patch)`
|
||||
|
||||
If pygame is built with extended image formats, then this function will
|
||||
return the SDL_Image library's version number as a tuple of 3 integers
|
||||
``(major, minor, patch)``. If not, then it will return ``None``.
|
||||
|
||||
``linked=True`` is the default behavior and the function will return the
|
||||
version of the library that Pygame is linked against, while ``linked=False``
|
||||
will return the version of the library that Pygame is compiled against.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. versionchanged:: 2.2.0 ``linked`` keyword argument added and default behavior changed from returning compiled version to returning linked version
|
||||
|
||||
.. ## pygame.image.get_sdl_image_version ##
|
||||
|
||||
.. function:: get_extended
|
||||
|
||||
| :sl:`test if extended image formats can be loaded`
|
||||
| :sg:`get_extended() -> bool`
|
||||
|
||||
If pygame is built with extended image formats this function will return
|
||||
True. It is still not possible to determine which formats will be available,
|
||||
but generally you will be able to load them all.
|
||||
|
||||
.. ## pygame.image.get_extended ##
|
||||
|
||||
.. function:: tostring
|
||||
|
||||
| :sl:`transfer image to byte buffer`
|
||||
| :sg:`tostring(Surface, format, flipped=False) -> bytes`
|
||||
|
||||
Creates a string of bytes that can be transferred with the ``fromstring``
|
||||
or ``frombytes`` methods in other Python imaging packages. Some Python
|
||||
image packages prefer their images in bottom-to-top format (PyOpenGL for
|
||||
example). If you pass ``True`` for the flipped argument, the byte buffer
|
||||
will be vertically flipped.
|
||||
|
||||
The format argument is a string of one of the following values. Note that
|
||||
only 8-bit Surfaces can use the "P" format. The other formats will work for
|
||||
any Surface. Also note that other Python image packages support more formats
|
||||
than pygame.
|
||||
|
||||
* ``P``, 8-bit palettized Surfaces
|
||||
|
||||
* ``RGB``, 24-bit image
|
||||
|
||||
* ``RGBX``, 32-bit image with unused space
|
||||
|
||||
* ``RGBA``, 32-bit image with an alpha channel
|
||||
|
||||
* ``ARGB``, 32-bit image with alpha channel first
|
||||
|
||||
* ``BGRA``, 32-bit image with alpha channel, red and blue channels swapped
|
||||
|
||||
* ``RGBA_PREMULT``, 32-bit image with colors scaled by alpha channel
|
||||
|
||||
* ``ARGB_PREMULT``, 32-bit image with colors scaled by alpha channel, alpha channel first
|
||||
|
||||
.. note:: it is preferred to use :func:`tobytes` as of pygame 2.1.3
|
||||
|
||||
.. versionadded:: 2.1.3 BGRA format
|
||||
.. ## pygame.image.tostring ##
|
||||
|
||||
.. function:: tobytes
|
||||
|
||||
| :sl:`transfer image to byte buffer`
|
||||
| :sg:`tobytes(Surface, format, flipped=False) -> bytes`
|
||||
|
||||
Creates a string of bytes that can be transferred with the ``fromstring``
|
||||
or ``frombytes`` methods in other Python imaging packages. Some Python
|
||||
image packages prefer their images in bottom-to-top format (PyOpenGL for
|
||||
example). If you pass ``True`` for the flipped argument, the byte buffer
|
||||
will be vertically flipped.
|
||||
|
||||
The format argument is a string of one of the following values. Note that
|
||||
only 8-bit Surfaces can use the "P" format. The other formats will work for
|
||||
any Surface. Also note that other Python image packages support more formats
|
||||
than pygame.
|
||||
|
||||
* ``P``, 8-bit palettized Surfaces
|
||||
|
||||
* ``RGB``, 24-bit image
|
||||
|
||||
* ``RGBX``, 32-bit image with unused space
|
||||
|
||||
* ``RGBA``, 32-bit image with an alpha channel
|
||||
|
||||
* ``ARGB``, 32-bit image with alpha channel first
|
||||
|
||||
* ``BGRA``, 32-bit image with alpha channel, red and blue channels swapped
|
||||
|
||||
* ``RGBA_PREMULT``, 32-bit image with colors scaled by alpha channel
|
||||
|
||||
* ``ARGB_PREMULT``, 32-bit image with colors scaled by alpha channel, alpha channel first
|
||||
|
||||
.. note:: this function is an alias for :func:`tostring`. The use of this
|
||||
function is recommended over :func:`tostring` as of pygame 2.1.3.
|
||||
This function was introduced so it matches nicely with other
|
||||
libraries (PIL, numpy, etc), and with people's expectations.
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. ## pygame.image.tobytes ##
|
||||
|
||||
|
||||
.. function:: fromstring
|
||||
|
||||
| :sl:`create new Surface from a byte buffer`
|
||||
| :sg:`fromstring(bytes, size, format, flipped=False) -> Surface`
|
||||
|
||||
This function takes arguments similar to :func:`pygame.image.tostring()`.
|
||||
The size argument is a pair of numbers representing the width and height.
|
||||
Once the new Surface is created it is independent from the memory of the
|
||||
bytes passed in.
|
||||
|
||||
The bytes and format passed must compute to the exact size of image
|
||||
specified. Otherwise a ``ValueError`` will be raised.
|
||||
|
||||
See the :func:`pygame.image.frombuffer()` method for a potentially faster
|
||||
way to transfer images into pygame.
|
||||
|
||||
.. note:: it is preferred to use :func:`frombytes` as of pygame 2.1.3
|
||||
|
||||
.. ## pygame.image.fromstring ##
|
||||
|
||||
.. function:: frombytes
|
||||
|
||||
| :sl:`create new Surface from a byte buffer`
|
||||
| :sg:`frombytes(bytes, size, format, flipped=False) -> Surface`
|
||||
|
||||
This function takes arguments similar to :func:`pygame.image.tobytes()`.
|
||||
The size argument is a pair of numbers representing the width and height.
|
||||
Once the new Surface is created it is independent from the memory of the
|
||||
bytes passed in.
|
||||
|
||||
The bytes and format passed must compute to the exact size of image
|
||||
specified. Otherwise a ``ValueError`` will be raised.
|
||||
|
||||
See the :func:`pygame.image.frombuffer()` method for a potentially faster
|
||||
way to transfer images into pygame.
|
||||
|
||||
.. note:: this function is an alias for :func:`fromstring`. The use of this
|
||||
function is recommended over :func:`fromstring` as of pygame 2.1.3.
|
||||
This function was introduced so it matches nicely with other
|
||||
libraries (PIL, numpy, etc), and with people's expectations.
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. ## pygame.image.frombytes ##
|
||||
|
||||
.. function:: frombuffer
|
||||
|
||||
| :sl:`create a new Surface that shares data inside a bytes buffer`
|
||||
| :sg:`frombuffer(buffer, size, format) -> Surface`
|
||||
|
||||
Create a new Surface that shares pixel data directly from a buffer. This
|
||||
buffer can be bytes, a bytearray, a memoryview, a
|
||||
:class:`pygame.BufferProxy`, or any object that supports the buffer protocol.
|
||||
This method takes similar arguments to :func:`pygame.image.fromstring()`, but
|
||||
is unable to vertically flip the source data.
|
||||
|
||||
This will run much faster than :func:`pygame.image.fromstring`, since no
|
||||
pixel data must be allocated and copied.
|
||||
|
||||
It accepts the following 'format' arguments:
|
||||
|
||||
* ``P``, 8-bit palettized Surfaces
|
||||
|
||||
* ``RGB``, 24-bit image
|
||||
|
||||
* ``BGR``, 24-bit image, red and blue channels swapped.
|
||||
|
||||
* ``RGBX``, 32-bit image with unused space
|
||||
|
||||
* ``RGBA``, 32-bit image with an alpha channel
|
||||
|
||||
* ``ARGB``, 32-bit image with alpha channel first
|
||||
|
||||
* ``BGRA``, 32-bit image with alpha channel, red and blue channels swapped
|
||||
|
||||
.. versionadded:: 2.1.3 BGRA format
|
||||
.. ## pygame.image.frombuffer ##
|
||||
|
||||
.. function:: load_basic
|
||||
|
||||
| :sl:`load new BMP image from a file (or file-like object)`
|
||||
| :sg:`load_basic(file) -> Surface`
|
||||
|
||||
Load an image from a file source. You can pass either a filename or a Python
|
||||
file-like object, or a pathlib.Path.
|
||||
|
||||
This function only supports loading "basic" image format, ie ``BMP``
|
||||
format.
|
||||
This function is always available, no matter how pygame was built.
|
||||
|
||||
.. ## pygame.image.load_basic ##
|
||||
|
||||
.. function:: load_extended
|
||||
|
||||
| :sl:`load an image from a file (or file-like object)`
|
||||
| :sg:`load_extended(filename) -> Surface`
|
||||
| :sg:`load_extended(fileobj, namehint="") -> Surface`
|
||||
|
||||
This function is similar to :func:`pygame.image.load()`, except that this
|
||||
function can only be used if pygame was built with extended image format
|
||||
support.
|
||||
|
||||
.. versionchanged:: 2.0.1
|
||||
This function is always available, but raises an
|
||||
``NotImplementedError`` if extended image formats are
|
||||
not supported.
|
||||
Previously, this function may or may not be
|
||||
available, depending on the state of extended image
|
||||
format support.
|
||||
|
||||
.. ## pygame.image.load_extended ##
|
||||
|
||||
.. function:: save_extended
|
||||
|
||||
| :sl:`save a png/jpg image to file (or file-like object)`
|
||||
| :sg:`save_extended(Surface, filename) -> None`
|
||||
| :sg:`save_extended(Surface, fileobj, namehint="") -> None`
|
||||
|
||||
This will save your Surface as either a ``PNG`` or ``JPEG`` image.
|
||||
|
||||
In case the image is being saved to a file-like object, this function
|
||||
uses the namehint argument to determine the format of the file being
|
||||
saved. Saves to ``JPEG`` in case the namehint was not specified while
|
||||
saving to a file-like object.
|
||||
|
||||
.. versionchanged:: 2.0.1
|
||||
This function is always available, but raises an
|
||||
``NotImplementedError`` if extended image formats are
|
||||
not supported.
|
||||
Previously, this function may or may not be
|
||||
available, depending on the state of extended image
|
||||
format support.
|
||||
|
||||
.. ## pygame.image.save_extended ##
|
||||
|
||||
.. ## pygame.image ##
|
||||
@@ -85,7 +85,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
| :sl:`Returns the number of joysticks.`
|
||||
| :sg:`get_count() -> count`
|
||||
|
||||
Return the number of joystick devices on the system. The count will be ``0``
|
||||
Return the number of joystick devices on the system. The count will be ``0``
|
||||
if there are no joysticks on the system.
|
||||
|
||||
When you create Joystick objects using ``Joystick(id)``, you pass an integer
|
||||
@@ -96,7 +96,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
.. class:: Joystick
|
||||
|
||||
| :sl:`Create a new Joystick object.`
|
||||
| :sg:`Joystick(id, /) -> Joystick`
|
||||
| :sg:`Joystick(id) -> Joystick`
|
||||
|
||||
Create a new joystick to access a physical device. The id argument must be a
|
||||
value from ``0`` to ``pygame.joystick.get_count() - 1``.
|
||||
@@ -105,10 +105,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
Once the device is initialized the pygame event queue will start receiving
|
||||
events about its input.
|
||||
|
||||
.. versionchangedold:: 2.0.0 Joystick objects are now opened immediately on creation.
|
||||
|
||||
.. versionchanged:: 2.1.4 This class is also available through the ``pygame.Joystick``
|
||||
alias.
|
||||
.. versionchanged:: 2.0.0 Joystick objects are now opened immediately on creation.
|
||||
|
||||
.. method:: init
|
||||
|
||||
@@ -118,10 +115,10 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
Initialize the joystick, if it has been closed. It is safe to call this
|
||||
even if the joystick is already initialized.
|
||||
|
||||
.. deprecatedold:: 2.0.0
|
||||
.. deprecated:: 2.0.0
|
||||
|
||||
In future it will not be possible to reinitialise a closed Joystick
|
||||
object.
|
||||
object. Will be removed in Pygame 2.1.
|
||||
|
||||
.. ## Joystick.init ##
|
||||
|
||||
@@ -155,10 +152,10 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
value that was passed to the ``Joystick()`` constructor. This method can
|
||||
safely be called while the Joystick is not initialized.
|
||||
|
||||
.. deprecatedold:: 2.0.0
|
||||
.. deprecated:: 2.0.0
|
||||
|
||||
The original device index is not useful in pygame 2. Use
|
||||
:meth:`.get_instance_id` instead.
|
||||
:meth:`.get_instance_id` instead. Will be removed in Pygame 2.1.
|
||||
|
||||
.. method:: get_instance_id() -> int
|
||||
|
||||
@@ -168,7 +165,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
Get the joystick instance ID. This matches the ``instance_id`` field
|
||||
that is given in joystick events.
|
||||
|
||||
.. versionaddedold:: 2.0.0dev11
|
||||
.. versionadded:: 2.0.0dev11
|
||||
|
||||
.. method:: get_guid() -> str
|
||||
|
||||
@@ -178,7 +175,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
Get the GUID string. This identifies the exact hardware of the joystick
|
||||
device.
|
||||
|
||||
.. versionaddedold:: 2.0.0dev11
|
||||
.. versionadded:: 2.0.0dev11
|
||||
|
||||
.. method:: get_power_level() -> str
|
||||
|
||||
@@ -190,7 +187,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
One of: ``empty``, ``low``, ``medium``, ``full``, ``wired``, ``max``, or
|
||||
``unknown``.
|
||||
|
||||
.. versionaddedold:: 2.0.0dev11
|
||||
.. versionadded:: 2.0.0dev11
|
||||
|
||||
.. ## Joystick.get_id ##
|
||||
|
||||
@@ -215,13 +212,13 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
two for the position. Controls like rudders and throttles are treated as
|
||||
additional axes.
|
||||
|
||||
The ``pygame.JOYAXISMOTION`` events will be in the range from ``-1.0``
|
||||
to ``1.0``. A value of ``0.0`` means the axis is centered. Gamepad devices
|
||||
will usually be ``-1``, ``0``, or ``1`` with no values in between. Older
|
||||
analog joystick axes will not always use the full ``-1`` to ``1`` range,
|
||||
and the centered value will be some area around ``0``.
|
||||
|
||||
Analog joysticks usually have a bit of noise in their axis, which will
|
||||
The ``pygame.JOYAXISMOTION`` events will be in the range from ``-1.0``
|
||||
to ``1.0``. A value of ``0.0`` means the axis is centered. Gamepad devices
|
||||
will usually be ``-1``, ``0``, or ``1`` with no values in between. Older
|
||||
analog joystick axes will not always use the full ``-1`` to ``1`` range,
|
||||
and the centered value will be some area around ``0``.
|
||||
|
||||
Analog joysticks usually have a bit of noise in their axis, which will
|
||||
generate a lot of rapid small motion events.
|
||||
|
||||
.. ## Joystick.get_numaxes ##
|
||||
@@ -229,12 +226,12 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
.. method:: get_axis
|
||||
|
||||
| :sl:`get the current position of an axis`
|
||||
| :sg:`get_axis(axis_number, /) -> float`
|
||||
| :sg:`get_axis(axis_number) -> float`
|
||||
|
||||
Returns the current position of a joystick axis. The value will range
|
||||
from ``-1`` to ``1`` with a value of ``0`` being centered. You may want
|
||||
to take into account some tolerance to handle jitter, and joystick drift
|
||||
may keep the joystick from centering at ``0`` or using the full range of
|
||||
from ``-1`` to ``1`` with a value of ``0`` being centered. You may want
|
||||
to take into account some tolerance to handle jitter, and joystick drift
|
||||
may keep the joystick from centering at ``0`` or using the full range of
|
||||
position values.
|
||||
|
||||
The axis number must be an integer from ``0`` to ``get_numaxes() - 1``.
|
||||
@@ -261,7 +258,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
.. method:: get_ball
|
||||
|
||||
| :sl:`get the relative position of a trackball`
|
||||
| :sg:`get_ball(ball_number, /) -> x, y`
|
||||
| :sg:`get_ball(ball_number) -> x, y`
|
||||
|
||||
Returns the relative movement of a joystick button. The value is a ``x, y``
|
||||
pair holding the relative movement since the last call to get_ball.
|
||||
@@ -286,7 +283,7 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
.. method:: get_button
|
||||
|
||||
| :sl:`get the current button state`
|
||||
| :sg:`get_button(button, /) -> bool`
|
||||
| :sg:`get_button(button) -> bool`
|
||||
|
||||
Returns the current state of a joystick button.
|
||||
|
||||
@@ -302,8 +299,8 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
input.
|
||||
|
||||
The ``pygame.JOYHATMOTION`` event is generated when the hat changes
|
||||
position. The ``position`` attribute for the event contains a pair of
|
||||
values that are either ``-1``, ``0``, or ``1``. A position of ``(0, 0)``
|
||||
position. The ``position`` attribute for the event contains a pair of
|
||||
values that are either ``-1``, ``0``, or ``1``. A position of ``(0, 0)``
|
||||
means the hat is centered.
|
||||
|
||||
.. ## Joystick.get_numhats ##
|
||||
@@ -311,15 +308,15 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
.. method:: get_hat
|
||||
|
||||
| :sl:`get the position of a joystick hat`
|
||||
| :sg:`get_hat(hat_number, /) -> x, y`
|
||||
| :sg:`get_hat(hat_number) -> x, y`
|
||||
|
||||
Returns the current position of a position hat. The position is given as
|
||||
two values representing the ``x`` and ``y`` position for the hat. ``(0, 0)``
|
||||
means centered. A value of ``-1`` means left/down and a value of ``1`` means
|
||||
right/up: so ``(-1, 0)`` means left; ``(1, 0)`` means right; ``(0, 1)`` means
|
||||
right/up: so ``(-1, 0)`` means left; ``(1, 0)`` means right; ``(0, 1)`` means
|
||||
up; ``(1, 1)`` means upper-right; etc.
|
||||
|
||||
This value is digital, ``i.e.``, each coordinate can be ``-1``, ``0`` or ``1``
|
||||
This value is digital, ``i.e.``, each coordinate can be ``-1``, ``0`` or ``1``
|
||||
but never in-between.
|
||||
|
||||
The hat number must be between ``0`` and ``get_numhats() - 1``.
|
||||
@@ -338,9 +335,9 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
playing, then it will be overwritten.
|
||||
|
||||
Returns True if the rumble was played successfully or False if the
|
||||
joystick does not support it.
|
||||
joystick does not support it or :meth:`pygame.version.SDL` is below 2.0.9.
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## Joystick.rumble ##
|
||||
|
||||
@@ -352,26 +349,10 @@ variable. See :ref:`environment variables <environment-variables>` for more deta
|
||||
Stops any rumble effect playing on the joystick. See
|
||||
:meth:`Joystick.rumble` for more information.
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## Joystick.stop_rumble ##
|
||||
|
||||
.. method:: set_led
|
||||
|
||||
| :sl:`Set the LED color of the joystick`
|
||||
| :sg:`set_led(color_arg) -> bool`
|
||||
|
||||
Set the color of the LED on the joystick. The argument is a
|
||||
``pygame.Color``-compatible value (alpha being ignored). The
|
||||
joystick's LED, if it has one, will be set to the input color.
|
||||
If the joystick does not have an addressable LED, then this
|
||||
method will do nothing and return False. Returns True if the
|
||||
LED was set successfully.
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
|
||||
.. ## Joystick.set_led ##
|
||||
|
||||
.. ## pygame.joystick.Joystick ##
|
||||
|
||||
.. ## pygame.joystick ##
|
||||
@@ -400,75 +381,35 @@ Nintendo Switch Left Joy-Con (pygame 2.x)
|
||||
*****************************************
|
||||
|
||||
The Nintendo Switch Left Joy-Con has 4 axes, 11 buttons, and 0 hats. The values for the 4 axes never change.
|
||||
The controller is recognized as "Wireless Gamepad".
|
||||
After SDL 2.24.0, The controller is recognized as "Nintendo Switch Joy-Con (L)".
|
||||
The controller is recognized as "Wireless Gamepad"
|
||||
|
||||
|
||||
* **Buttons**::
|
||||
|
||||
After SDL 2.24.0 Before SDL 2.24.0
|
||||
D-pad Up Button 2 Button 3
|
||||
D-pad Down Button 1 Button 0
|
||||
D-pad Left Button 3 Button 2
|
||||
D-pad Right Button 0 Button 1
|
||||
SL Button 9 Button 4
|
||||
SR Button 10 Button 5
|
||||
- Button 6 Button 8
|
||||
Stick In Button 7 Button 10
|
||||
Capture Button 5 Button 13
|
||||
L Button 17 Button 14
|
||||
ZL Button 19 Button 15
|
||||
|
||||
Reference : D-pad Up points toward SL and SR buttons.
|
||||
D-pad Up - Button 0
|
||||
D-pad Down - Button 1
|
||||
D-pad Left - Button 2
|
||||
D-pad Right - Button 3
|
||||
SL - Button 4
|
||||
SR - Button 5
|
||||
- - Button 8
|
||||
Stick In - Button 10
|
||||
Capture - Button 13
|
||||
L - Button 14
|
||||
ZL - Button 15
|
||||
|
||||
* **Hat/JoyStick**::
|
||||
|
||||
Down -> Up - Axis 1 Axis Y
|
||||
Left -> Right - Axis 0 Axis X
|
||||
Down -> Up - Y Axis
|
||||
Left -> Right - X Axis
|
||||
|
||||
|
||||
Nintendo Switch Right Joy-Con (pygame 2.x)
|
||||
******************************************
|
||||
|
||||
The Nintendo Switch Right Joy-Con has 4 axes, 11 buttons, and 0 hats. The values for the 4 axes never change.
|
||||
The controller is recognized as "Wireless Gamepad".
|
||||
After SDL 2.24.0, The controller is recognized as "Nintendo Switch Joy-Con (R)".
|
||||
The controller is recognized as "Wireless Gamepad"
|
||||
|
||||
* **Buttons**::
|
||||
|
||||
After SDL 2.24.0 Before SDL 2.24.0
|
||||
A Button Button 1 Button 0
|
||||
B Button Button 3 Button 2
|
||||
X Button Button 0 Button 1
|
||||
Y Button Button 2 Button 3
|
||||
SL Button 9 Button 4
|
||||
SR Button 10 Button 5
|
||||
+ Button 6 Button 9
|
||||
Stick In Button 7 Button 11
|
||||
Home Button 5 Button 12
|
||||
R Button 16 Button 14
|
||||
ZR Button 18 Button 15
|
||||
|
||||
* **Hat/JoyStick**::
|
||||
|
||||
Down -> Up - Axis 1 Axis Y
|
||||
Left -> Right - Axis 0 Axis X
|
||||
|
||||
Nintendo Switch Left/Right Joy-Con (after SDL **2.24.0**)
|
||||
*********************************************************
|
||||
This device is created, if Nintendo Switch Joy-con Left and Nintendo Switch Joy-con Right are connected (these two devices are removed).
|
||||
The Nintendo Switch Left/Right Joy-Con has 6 axes, 20 buttons, and 0 hats. The values for the 6 axes never change.
|
||||
The controller is recognized as "Nintendo Switch Joy-Con (L/R)".
|
||||
|
||||
* **Left Stick**::
|
||||
|
||||
Left -> Right - Axis 0
|
||||
Up -> Down - Axis 1
|
||||
|
||||
* **Right Stick**::
|
||||
|
||||
Left -> Right - Axis 2
|
||||
Up -> Down - Axis 3
|
||||
|
||||
* **Buttons**::
|
||||
|
||||
@@ -476,22 +417,19 @@ The controller is recognized as "Nintendo Switch Joy-Con (L/R)".
|
||||
B Button - Button 1
|
||||
X Button - Button 2
|
||||
Y Button - Button 3
|
||||
- Button - Button 4
|
||||
Home Button - Button 5
|
||||
+ Button - Button 6
|
||||
ZL - Button ? Missing
|
||||
ZR - Button ? Missing
|
||||
L. Stick In - Button 9
|
||||
R. Stick In - Button 10
|
||||
D-pad Up - Button 11
|
||||
D-pad Down - Button 12
|
||||
D-pad Left - Button 13
|
||||
D-pad Right - Button 14
|
||||
Capture Button - Button 15
|
||||
Right SR - Button 16
|
||||
Left SL - Button 17
|
||||
Right SL - Button 18
|
||||
Left SR - Button 19
|
||||
SL - Button 4
|
||||
SR - Button 5
|
||||
+ - Button 9
|
||||
Stick In - Button 11
|
||||
Home - Button 12
|
||||
R - Button 14
|
||||
ZR - Button 15
|
||||
|
||||
* **Hat/JoyStick**::
|
||||
|
||||
Down -> Up - Y Axis
|
||||
Left -> Right - X Axis
|
||||
|
||||
|
||||
Nintendo Switch Pro Controller (pygame 2.x)
|
||||
*******************************************
|
||||
@@ -625,6 +563,52 @@ The controller is recognized as "PS4 Controller".
|
||||
D-pad Right - Button 14
|
||||
Touch Pad Click - Button 15
|
||||
|
||||
Playstation 5 Controller (pygame 2.x)
|
||||
*************************************
|
||||
|
||||
The PlayStation 5 controller mapping has 6 axes, 13 buttons, and 1 hat.
|
||||
The controller is recognized as "Sony Interactive Entertainment Wireless Controller".
|
||||
|
||||
* **Left Stick**::
|
||||
|
||||
Left -> Right - Axis 0
|
||||
Up -> Down - Axis 1
|
||||
|
||||
* **Right Stick**::
|
||||
|
||||
Left -> Right - Axis 3
|
||||
Up -> Down - Axis 4
|
||||
|
||||
* **Left Trigger**::
|
||||
|
||||
Out -> In - Axis 2
|
||||
|
||||
* **Right Trigger**::
|
||||
|
||||
Out -> In - Axis 5
|
||||
|
||||
* **Buttons**::
|
||||
|
||||
Cross Button - Button 0
|
||||
Circle Button - Button 1
|
||||
Square Button - Button 2
|
||||
Triangle Button - Button 3
|
||||
Left Bumper - Button 4
|
||||
Right Bumper - Button 5
|
||||
Left Trigger - Button 6
|
||||
Right Trigger - Button 7
|
||||
Share Button - Button 8
|
||||
Options Button - Button 9
|
||||
PS Button - Button 10
|
||||
Left Stick in - Button 11
|
||||
Right Stick in - Button 12
|
||||
|
||||
* **Hat/D-pad**::
|
||||
|
||||
Down -> Up - Y Axis
|
||||
Left -> Right - X Axis
|
||||
|
||||
|
||||
|
||||
XBox 360 Controller (pygame 1.x)
|
||||
********************************
|
||||
@@ -710,3 +694,4 @@ The controller is recognized as "Wireless Controller".
|
||||
|
||||
Down -> Up - Y Axis
|
||||
Left -> Right - X Axis
|
||||
|
||||
@@ -3,6 +3,453 @@
|
||||
:mod:`pygame.key`
|
||||
=================
|
||||
|
||||
.. autopgmodule:: pygame.key
|
||||
:members:
|
||||
:exclude-members: ScancodeWrapper
|
||||
.. module:: pygame.key
|
||||
:synopsis: pygame module to work with the keyboard
|
||||
|
||||
| :sl:`pygame module to work with the keyboard`
|
||||
|
||||
This module contains functions for dealing with the keyboard.
|
||||
|
||||
The :mod:`pygame.event` queue gets ``pygame.KEYDOWN`` and ``pygame.KEYUP``
|
||||
events when the keyboard buttons are pressed and released. Both events have
|
||||
``key`` and ``mod`` attributes.
|
||||
|
||||
* ``key``: an :ref:`integer ID <key-constants-label>` representing every key
|
||||
on the keyboard
|
||||
* ``mod``: a bitmask of all the :ref:`modifier keys <key-modifiers-label>`
|
||||
that were in a pressed state when the event occurred
|
||||
|
||||
The ``pygame.KEYDOWN`` event has the additional attributes ``unicode`` and
|
||||
``scancode``.
|
||||
|
||||
* ``unicode``: a single character string that is the fully translated
|
||||
character entered, this takes into account the shift and composition keys
|
||||
* ``scancode``: the platform-specific key code, which could be different from
|
||||
keyboard to keyboard, but is useful for key selection of weird keys like
|
||||
the multimedia keys
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
The ``pygame.TEXTINPUT`` event is preferred to the ``unicode`` attribute
|
||||
of ``pygame.KEYDOWN``. The attribute ``text`` contains the input.
|
||||
|
||||
|
||||
.. _key-constants-label:
|
||||
|
||||
The following is a list of all the constants (from :mod:`pygame.locals`) used to
|
||||
represent keyboard keys.
|
||||
|
||||
Portability note: The integers for key constants differ between pygame 1 and 2.
|
||||
Always use key constants (``K_a``) rather than integers directly (``97``) so
|
||||
that your key handling code works well on both pygame 1 and pygame 2.
|
||||
|
||||
|
||||
::
|
||||
|
||||
pygame
|
||||
Constant ASCII Description
|
||||
---------------------------------
|
||||
K_BACKSPACE \b backspace
|
||||
K_TAB \t tab
|
||||
K_CLEAR clear
|
||||
K_RETURN \r return
|
||||
K_PAUSE pause
|
||||
K_ESCAPE ^[ escape
|
||||
K_SPACE space
|
||||
K_EXCLAIM ! exclaim
|
||||
K_QUOTEDBL " quotedbl
|
||||
K_HASH # hash
|
||||
K_DOLLAR $ dollar
|
||||
K_AMPERSAND & ampersand
|
||||
K_QUOTE quote
|
||||
K_LEFTPAREN ( left parenthesis
|
||||
K_RIGHTPAREN ) right parenthesis
|
||||
K_ASTERISK * asterisk
|
||||
K_PLUS + plus sign
|
||||
K_COMMA , comma
|
||||
K_MINUS - minus sign
|
||||
K_PERIOD . period
|
||||
K_SLASH / forward slash
|
||||
K_0 0 0
|
||||
K_1 1 1
|
||||
K_2 2 2
|
||||
K_3 3 3
|
||||
K_4 4 4
|
||||
K_5 5 5
|
||||
K_6 6 6
|
||||
K_7 7 7
|
||||
K_8 8 8
|
||||
K_9 9 9
|
||||
K_COLON : colon
|
||||
K_SEMICOLON ; semicolon
|
||||
K_LESS < less-than sign
|
||||
K_EQUALS = equals sign
|
||||
K_GREATER > greater-than sign
|
||||
K_QUESTION ? question mark
|
||||
K_AT @ at
|
||||
K_LEFTBRACKET [ left bracket
|
||||
K_BACKSLASH \ backslash
|
||||
K_RIGHTBRACKET ] right bracket
|
||||
K_CARET ^ caret
|
||||
K_UNDERSCORE _ underscore
|
||||
K_BACKQUOTE ` grave
|
||||
K_a a a
|
||||
K_b b b
|
||||
K_c c c
|
||||
K_d d d
|
||||
K_e e e
|
||||
K_f f f
|
||||
K_g g g
|
||||
K_h h h
|
||||
K_i i i
|
||||
K_j j j
|
||||
K_k k k
|
||||
K_l l l
|
||||
K_m m m
|
||||
K_n n n
|
||||
K_o o o
|
||||
K_p p p
|
||||
K_q q q
|
||||
K_r r r
|
||||
K_s s s
|
||||
K_t t t
|
||||
K_u u u
|
||||
K_v v v
|
||||
K_w w w
|
||||
K_x x x
|
||||
K_y y y
|
||||
K_z z z
|
||||
K_DELETE delete
|
||||
K_KP0 keypad 0
|
||||
K_KP1 keypad 1
|
||||
K_KP2 keypad 2
|
||||
K_KP3 keypad 3
|
||||
K_KP4 keypad 4
|
||||
K_KP5 keypad 5
|
||||
K_KP6 keypad 6
|
||||
K_KP7 keypad 7
|
||||
K_KP8 keypad 8
|
||||
K_KP9 keypad 9
|
||||
K_KP_PERIOD . keypad period
|
||||
K_KP_DIVIDE / keypad divide
|
||||
K_KP_MULTIPLY * keypad multiply
|
||||
K_KP_MINUS - keypad minus
|
||||
K_KP_PLUS + keypad plus
|
||||
K_KP_ENTER \r keypad enter
|
||||
K_KP_EQUALS = keypad equals
|
||||
K_UP up arrow
|
||||
K_DOWN down arrow
|
||||
K_RIGHT right arrow
|
||||
K_LEFT left arrow
|
||||
K_INSERT insert
|
||||
K_HOME home
|
||||
K_END end
|
||||
K_PAGEUP page up
|
||||
K_PAGEDOWN page down
|
||||
K_F1 F1
|
||||
K_F2 F2
|
||||
K_F3 F3
|
||||
K_F4 F4
|
||||
K_F5 F5
|
||||
K_F6 F6
|
||||
K_F7 F7
|
||||
K_F8 F8
|
||||
K_F9 F9
|
||||
K_F10 F10
|
||||
K_F11 F11
|
||||
K_F12 F12
|
||||
K_F13 F13
|
||||
K_F14 F14
|
||||
K_F15 F15
|
||||
K_NUMLOCK numlock
|
||||
K_CAPSLOCK capslock
|
||||
K_SCROLLOCK scrollock
|
||||
K_RSHIFT right shift
|
||||
K_LSHIFT left shift
|
||||
K_RCTRL right control
|
||||
K_LCTRL left control
|
||||
K_RALT right alt
|
||||
K_LALT left alt
|
||||
K_RMETA right meta
|
||||
K_LMETA left meta
|
||||
K_LSUPER left Windows key
|
||||
K_RSUPER right Windows key
|
||||
K_MODE mode shift
|
||||
K_HELP help
|
||||
K_PRINT print screen
|
||||
K_SYSREQ sysrq
|
||||
K_BREAK break
|
||||
K_MENU menu
|
||||
K_POWER power
|
||||
K_EURO Euro
|
||||
K_AC_BACK Android back button
|
||||
|
||||
|
||||
.. _key-modifiers-label:
|
||||
|
||||
The keyboard also has a list of modifier states (from :mod:`pygame.locals`) that
|
||||
can be assembled by bitwise-ORing them together.
|
||||
|
||||
::
|
||||
|
||||
pygame
|
||||
Constant Description
|
||||
-------------------------
|
||||
KMOD_NONE no modifier keys pressed
|
||||
KMOD_LSHIFT left shift
|
||||
KMOD_RSHIFT right shift
|
||||
KMOD_SHIFT left shift or right shift or both
|
||||
KMOD_LCTRL left control
|
||||
KMOD_RCTRL right control
|
||||
KMOD_CTRL left control or right control or both
|
||||
KMOD_LALT left alt
|
||||
KMOD_RALT right alt
|
||||
KMOD_ALT left alt or right alt or both
|
||||
KMOD_LMETA left meta
|
||||
KMOD_RMETA right meta
|
||||
KMOD_META left meta or right meta or both
|
||||
KMOD_CAPS caps lock
|
||||
KMOD_NUM num lock
|
||||
KMOD_MODE AltGr
|
||||
|
||||
|
||||
The modifier information is contained in the ``mod`` attribute of the
|
||||
``pygame.KEYDOWN`` and ``pygame.KEYUP`` events. The ``mod`` attribute is a
|
||||
bitmask of all the modifier keys that were in a pressed state when the event
|
||||
occurred. The modifier information can be decoded using a bitwise AND (except
|
||||
for ``KMOD_NONE``, which should be compared using equals ``==``). For example:
|
||||
|
||||
::
|
||||
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.KEYDOWN or event.type == pygame.KEYUP:
|
||||
if event.mod == pygame.KMOD_NONE:
|
||||
print('No modifier keys were in a pressed state when this '
|
||||
'event occurred.')
|
||||
else:
|
||||
if event.mod & pygame.KMOD_LSHIFT:
|
||||
print('Left shift was in a pressed state when this event '
|
||||
'occurred.')
|
||||
if event.mod & pygame.KMOD_RSHIFT:
|
||||
print('Right shift was in a pressed state when this event '
|
||||
'occurred.')
|
||||
if event.mod & pygame.KMOD_SHIFT:
|
||||
print('Left shift or right shift or both were in a '
|
||||
'pressed state when this event occurred.')
|
||||
|
||||
|
||||
|
||||
.. function:: get_focused
|
||||
|
||||
| :sl:`true if the display is receiving keyboard input from the system`
|
||||
| :sg:`get_focused() -> bool`
|
||||
|
||||
Returns ``True`` when the display window has keyboard focus from the
|
||||
system. If the display needs to ensure it does not lose keyboard focus, it
|
||||
can use :func:`pygame.event.set_grab()` to grab all input.
|
||||
|
||||
.. ## pygame.key.get_focused ##
|
||||
|
||||
.. function:: get_pressed
|
||||
|
||||
| :sl:`get the state of all keyboard buttons`
|
||||
| :sg:`get_pressed() -> bools`
|
||||
|
||||
Returns a sequence of boolean values representing the state of every key on
|
||||
the keyboard. Use the key constant values to index the array. A ``True``
|
||||
value means that the button is pressed.
|
||||
|
||||
.. note::
|
||||
Getting the list of pushed buttons with this function is not the proper
|
||||
way to handle text entry from the user. There is no way to know the order
|
||||
of keys pressed, and rapidly pushed keys can be completely unnoticed
|
||||
between two calls to ``pygame.key.get_pressed()``. There is also no way to
|
||||
translate these pushed keys into a fully translated character value. See
|
||||
the ``pygame.KEYDOWN`` events on the :mod:`pygame.event` queue for this
|
||||
functionality.
|
||||
|
||||
.. versionadded:: 2.2.0
|
||||
The collection of bools returned by ``get_pressed`` can not be iterated
|
||||
over because the indexes of the internal tuple does not correspond to the
|
||||
keycodes.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
Iteration over the collection of bools returned by ``get_pressed`` is now
|
||||
restored. However it still does not make sense to iterate over it. Currently.
|
||||
|
||||
.. ## pygame.key.get_pressed ##
|
||||
|
||||
.. function:: get_mods
|
||||
|
||||
| :sl:`determine which modifier keys are being held`
|
||||
| :sg:`get_mods() -> int`
|
||||
|
||||
Returns a single integer representing a bitmask of all the modifier keys
|
||||
being held. Using bitwise operators you can test if specific
|
||||
:ref:`modifier keys <key-modifiers-label>` are pressed.
|
||||
|
||||
.. ## pygame.key.get_mods ##
|
||||
|
||||
.. function:: set_mods
|
||||
|
||||
| :sl:`temporarily set which modifier keys are pressed`
|
||||
| :sg:`set_mods(int) -> None`
|
||||
|
||||
Create a bitmask of the :ref:`modifier key constants <key-modifiers-label>`
|
||||
you want to impose on your program.
|
||||
|
||||
.. ## pygame.key.set_mods ##
|
||||
|
||||
.. function:: set_repeat
|
||||
|
||||
| :sl:`control how held keys are repeated`
|
||||
| :sg:`set_repeat() -> None`
|
||||
| :sg:`set_repeat(delay) -> None`
|
||||
| :sg:`set_repeat(delay, interval) -> None`
|
||||
|
||||
When the keyboard repeat is enabled, keys that are held down will generate
|
||||
multiple ``pygame.KEYDOWN`` events. The ``delay`` parameter is the number of
|
||||
milliseconds before the first repeated ``pygame.KEYDOWN`` event will be sent.
|
||||
After that, another ``pygame.KEYDOWN`` event will be sent every ``interval``
|
||||
milliseconds. If a ``delay`` value is provided and an ``interval`` value is
|
||||
not provided or is 0, then the ``interval`` will be set to the same value as
|
||||
``delay``.
|
||||
|
||||
To disable key repeat call this function with no arguments or with ``delay``
|
||||
set to 0.
|
||||
|
||||
When pygame is initialized the key repeat is disabled.
|
||||
|
||||
:raises ValueError: if ``delay`` or ``interval`` is < 0
|
||||
|
||||
.. versionchanged:: 2.0.0 A ``ValueError`` is now raised (instead of a
|
||||
``pygame.error``) if ``delay`` or ``interval`` is < 0.
|
||||
|
||||
.. ## pygame.key.set_repeat ##
|
||||
|
||||
.. function:: get_repeat
|
||||
|
||||
| :sl:`see how held keys are repeated`
|
||||
| :sg:`get_repeat() -> (delay, interval)`
|
||||
|
||||
Get the ``delay`` and ``interval`` keyboard repeat values. Refer to
|
||||
:func:`pygame.key.set_repeat()` for a description of these values.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.key.get_repeat ##
|
||||
|
||||
.. function:: name
|
||||
|
||||
| :sl:`get the name of a key identifier`
|
||||
| :sg:`name(key, use_compat=True) -> str`
|
||||
|
||||
Get the descriptive name of the button from a keyboard button id constant.
|
||||
Returns an empty string (``""``) if the key is not found.
|
||||
|
||||
If ``use_compat`` argument is ``True`` (which is the default), this function
|
||||
returns the legacy name of a key where applicable. The return value is
|
||||
expected to be the same across different pygame versions (provided the
|
||||
corresponding key constant exists and is unique). If the return value is
|
||||
passed to the ``key_code`` function, the original constant will be returned.
|
||||
|
||||
**Experimental:** ``use_compat`` parameter still in development for testing and feedback. It may change.
|
||||
`Please leave use_compat feedback with authors <https://github.com/pygame/pygame/pull/3312>`_
|
||||
|
||||
If this argument is ``False``, the returned name may be prettier to display
|
||||
and may cover a wider range of keys than with ``use_compat``, but there are
|
||||
no guarantees that this name will be the same across different pygame
|
||||
versions. If the name returned is passed to the ``key_code`` function, the
|
||||
original constant is returned back (this is an implementation detail which
|
||||
may change later, do not rely on this)
|
||||
|
||||
.. versionchanged:: 2.1.3 Added ``use_compat`` argument and guaranteed API stability for it
|
||||
|
||||
.. ## pygame.key.name ##
|
||||
|
||||
.. function:: key_code
|
||||
|
||||
| :sl:`get the key identifier from a key name`
|
||||
| :sg:`key_code(name=string) -> int`
|
||||
|
||||
Get the key identifier code from the descriptive name of the key. This
|
||||
returns an integer matching one of the K_* keycodes. For example:
|
||||
|
||||
::
|
||||
|
||||
>>> pygame.key.key_code("return") == pygame.K_RETURN
|
||||
True
|
||||
>>> pygame.key.key_code("0") == pygame.K_0
|
||||
True
|
||||
>>> pygame.key.key_code("space") == pygame.K_SPACE
|
||||
True
|
||||
|
||||
:raises ValueError: if the key name is not known.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.key.key_code ##
|
||||
|
||||
.. function:: start_text_input
|
||||
|
||||
| :sl:`start handling Unicode text input events`
|
||||
| :sg:`start_text_input() -> None`
|
||||
|
||||
Start receiving ``pygame.TEXTEDITING`` and ``pygame.TEXTINPUT``
|
||||
events. If applicable, show the on-screen keyboard or IME editor.
|
||||
|
||||
For many languages, key presses will automatically generate a
|
||||
corresponding ``pygame.TEXTINPUT`` event. Special keys like
|
||||
escape or function keys, and certain key combinations will not
|
||||
generate ``pygame.TEXTINPUT`` events.
|
||||
|
||||
In other languages, entering a single symbol may require multiple
|
||||
key presses, or a language-specific user interface. In this case,
|
||||
``pygame.TEXTINPUT`` events are preferable to ``pygame.KEYDOWN``
|
||||
events for text input.
|
||||
|
||||
A ``pygame.TEXTEDITING`` event is received when an IME composition
|
||||
is started or changed. It contains the composition ``text``, ``length``,
|
||||
and editing ``start`` position within the composition (attributes
|
||||
``text``, ``length``, and ``start``, respectively).
|
||||
When the composition is committed (or non-IME input is received),
|
||||
a ``pygame.TEXTINPUT`` event is generated.
|
||||
|
||||
Text input events handling is on by default.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.key.start_text_input ##
|
||||
|
||||
.. function:: stop_text_input
|
||||
|
||||
| :sl:`stop handling Unicode text input events`
|
||||
| :sg:`stop_text_input() -> None`
|
||||
|
||||
Stop receiving ``pygame.TEXTEDITING`` and ``pygame.TEXTINPUT``
|
||||
events. If an on-screen keyboard or IME editor was shown with
|
||||
``pygame.key.start_text_input()``, hide it again.
|
||||
|
||||
Text input events handling is on by default.
|
||||
|
||||
To avoid triggering the IME editor or the on-screen keyboard
|
||||
when the user is holding down a key during gameplay, text input
|
||||
should be disabled once text entry is finished, or when the user
|
||||
clicks outside of a text box.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.key.stop_text_input ##
|
||||
|
||||
.. function:: set_text_input_rect
|
||||
|
||||
| :sl:`controls the position of the candidate list`
|
||||
| :sg:`set_text_input_rect(Rect) -> None`
|
||||
|
||||
This sets the rectangle used for typing with an IME.
|
||||
It controls where the candidate list will open, if supported.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.key.set_text_input_rect ##
|
||||
|
||||
.. ## pygame.key ##
|
||||
@@ -14,7 +14,7 @@ can use ``pygame.locals`` to include only the pygame constants with a ``from
|
||||
pygame.locals import *``.
|
||||
|
||||
Detailed descriptions of the various constants can be found throughout the
|
||||
pygame-ce documentation. Here are the locations of some of them.
|
||||
pygame documentation. Here are the locations of some of them.
|
||||
|
||||
- The :mod:`pygame.display` module contains flags like ``FULLSCREEN`` used
|
||||
by :func:`pygame.display.set_mode`.
|
||||
|
||||
@@ -3,6 +3,640 @@
|
||||
:mod:`pygame.mask`
|
||||
==================
|
||||
|
||||
.. autopgmodule:: pygame.mask
|
||||
:members:
|
||||
:exclude-members: MaskType
|
||||
.. module:: pygame.mask
|
||||
:synopsis: pygame module for image masks.
|
||||
|
||||
| :sl:`pygame module for image masks.`
|
||||
|
||||
Useful for fast pixel perfect collision detection. A mask uses 1 bit per-pixel
|
||||
to store which parts collide.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. versionchanged:: 2.0.2 Mask functions now support keyword arguments.
|
||||
|
||||
.. versionchanged:: 2.0.2 Mask functions that take positions or offsets now
|
||||
support :class:`pygame.math.Vector2` arguments.
|
||||
|
||||
|
||||
.. function:: from_surface
|
||||
|
||||
| :sl:`Creates a Mask from the given surface`
|
||||
| :sg:`from_surface(surface) -> Mask`
|
||||
| :sg:`from_surface(surface, threshold=127) -> Mask`
|
||||
|
||||
Creates a :class:`Mask` object from the given surface by setting all the
|
||||
opaque pixels and not setting the transparent pixels.
|
||||
|
||||
If the surface uses a color-key, then it is used to decide which bits in
|
||||
the resulting mask are set. All the pixels that are **not** equal to the
|
||||
color-key are **set** and the pixels equal to the color-key are not set.
|
||||
|
||||
If a color-key is not used, then the alpha value of each pixel is used to
|
||||
decide which bits in the resulting mask are set. All the pixels that have an
|
||||
alpha value **greater than** the ``threshold`` parameter are **set** and the
|
||||
pixels with an alpha value less than or equal to the ``threshold`` are
|
||||
not set.
|
||||
|
||||
:param Surface surface: the surface to create the mask from
|
||||
:param int threshold: (optional) the alpha threshold (default is 127) to
|
||||
compare with each surface pixel's alpha value, if the ``surface`` is
|
||||
color-keyed this parameter is ignored
|
||||
|
||||
:returns: a newly created :class:`Mask` object from the given surface
|
||||
:rtype: Mask
|
||||
|
||||
.. note::
|
||||
This function is used to create the masks for
|
||||
:func:`pygame.sprite.collide_mask`.
|
||||
|
||||
.. ## pygame.mask.from_surface ##
|
||||
|
||||
.. function:: from_threshold
|
||||
|
||||
| :sl:`Creates a mask by thresholding Surfaces`
|
||||
| :sg:`from_threshold(surface, color) -> Mask`
|
||||
| :sg:`from_threshold(surface, color, threshold=(0, 0, 0, 255), othersurface=None, palette_colors=1) -> Mask`
|
||||
|
||||
This is a more featureful method of getting a :class:`Mask` from a surface.
|
||||
|
||||
If the optional ``othersurface`` is not used, all the pixels **within** the
|
||||
``threshold`` of the ``color`` parameter are **set** in the resulting mask.
|
||||
|
||||
If the optional ``othersurface`` is used, every pixel in the first surface
|
||||
that is **within** the ``threshold`` of the corresponding pixel in
|
||||
``othersurface`` is **set** in the resulting mask.
|
||||
|
||||
:param Surface surface: the surface to create the mask from
|
||||
:param color: color used to check if the surface's pixels are within the
|
||||
given ``threshold`` range, this parameter is ignored if the optional
|
||||
``othersurface`` parameter is supplied
|
||||
:type color: Color or int or tuple(int, int, int, [int]) or list[int, int, int, [int]]
|
||||
:param threshold: (optional) the threshold range used to check the difference
|
||||
between two colors (default is ``(0, 0, 0, 255)``)
|
||||
:type threshold: Color or int or tuple(int, int, int, [int]) or list[int, int, int, [int]]
|
||||
:param Surface othersurface: (optional) used to check whether the pixels of
|
||||
the first surface are within the given ``threshold`` range of the pixels
|
||||
from this surface (default is ``None``)
|
||||
:param int palette_colors: (optional) indicates whether to use the palette
|
||||
colors or not, a nonzero value causes the palette colors to be used and a
|
||||
0 causes them not to be used (default is 1)
|
||||
|
||||
:returns: a newly created :class:`Mask` object from the given surface
|
||||
:rtype: Mask
|
||||
|
||||
.. ## pygame.mask.from_threshold ##
|
||||
|
||||
.. class:: Mask
|
||||
|
||||
| :sl:`pygame object for representing 2D bitmasks`
|
||||
| :sg:`Mask(size=(width, height)) -> Mask`
|
||||
| :sg:`Mask(size=(width, height), fill=False) -> Mask`
|
||||
|
||||
A ``Mask`` object is used to represent a 2D bitmask. Each bit in
|
||||
the mask represents a pixel. 1 is used to indicate a set bit and 0 is used
|
||||
to indicate an unset bit. Set bits in a mask can be used to detect collisions
|
||||
with other masks and their set bits.
|
||||
|
||||
A filled mask has all of its bits set to 1, conversely an
|
||||
unfilled/cleared/empty mask has all of its bits set to 0. Masks can be
|
||||
created unfilled (default) or filled by using the ``fill`` parameter. Masks
|
||||
can also be cleared or filled using the :func:`pygame.mask.Mask.clear()` and
|
||||
:func:`pygame.mask.Mask.fill()` methods respectively.
|
||||
|
||||
A mask's coordinates start in the top left corner at ``(0, 0)`` just like
|
||||
:mod:`pygame.Surface`. Individual bits can be accessed using the
|
||||
:func:`pygame.mask.Mask.get_at()` and :func:`pygame.mask.Mask.set_at()`
|
||||
methods.
|
||||
|
||||
.. _mask-offset-label:
|
||||
|
||||
The methods :meth:`overlap`, :meth:`overlap_area`, :meth:`overlap_mask`,
|
||||
:meth:`draw`, :meth:`erase`, and :meth:`convolve` use an offset parameter
|
||||
to indicate the offset of another mask's top left corner from the calling
|
||||
mask's top left corner. The calling mask's top left corner is considered to
|
||||
be the origin ``(0, 0)``. Offsets are a sequence of two values
|
||||
``(x_offset, y_offset)``. Positive and negative offset values are supported.
|
||||
|
||||
::
|
||||
|
||||
0 to x (x_offset)
|
||||
: :
|
||||
0 ..... +----:---------+
|
||||
to | : |
|
||||
y .......... +-----------+
|
||||
(y_offset) | | othermask |
|
||||
| +-----------+
|
||||
| calling_mask |
|
||||
+--------------+
|
||||
|
||||
:param size: the dimensions of the mask (width and height)
|
||||
:param bool fill: (optional) create an unfilled mask (default: ``False``) or
|
||||
filled mask (``True``)
|
||||
|
||||
:returns: a newly created :class:`Mask` object
|
||||
:rtype: Mask
|
||||
|
||||
.. versionchanged:: 2.0.0
|
||||
Shallow copy support added. The :class:`Mask` class supports the special
|
||||
method ``__copy__()`` and shallow copying via ``copy.copy(mask)``.
|
||||
.. versionchanged:: 2.0.0 Subclassing support added. The :class:`Mask` class
|
||||
can be used as a base class.
|
||||
.. versionchanged:: 1.9.5 Added support for keyword arguments.
|
||||
.. versionchanged:: 1.9.5 Added the optional keyword parameter ``fill``.
|
||||
.. versionchanged:: 1.9.5 Added support for masks with a width and/or a
|
||||
height of 0.
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`Returns a new copy of the mask`
|
||||
| :sg:`copy() -> Mask`
|
||||
|
||||
:returns: a new copy of this mask, the new mask will have the same width,
|
||||
height, and set/unset bits as the original
|
||||
:rtype: Mask
|
||||
|
||||
.. note::
|
||||
If a mask subclass needs to copy any instance specific attributes
|
||||
then it should override the ``__copy__()`` method. The overridden
|
||||
``__copy__()`` method needs to call ``super().__copy__()`` and then
|
||||
copy the required data as in the following example code.
|
||||
|
||||
::
|
||||
|
||||
class SubMask(pygame.mask.Mask):
|
||||
def __copy__(self):
|
||||
new_mask = super().__copy__()
|
||||
# Do any SubMask attribute copying here.
|
||||
return new_mask
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Mask.copy ##
|
||||
|
||||
.. method:: get_size
|
||||
|
||||
| :sl:`Returns the size of the mask`
|
||||
| :sg:`get_size() -> (width, height)`
|
||||
|
||||
:returns: the size of the mask, (width, height)
|
||||
:rtype: tuple(int, int)
|
||||
|
||||
.. ## Mask.get_size ##
|
||||
|
||||
.. method:: get_rect
|
||||
|
||||
| :sl:`Returns a Rect based on the size of the mask`
|
||||
| :sg:`get_rect(\**kwargs) -> Rect`
|
||||
|
||||
Returns a new :func:`pygame.Rect` object based on the size of this mask.
|
||||
The rect's default position will be ``(0, 0)`` and its default width and
|
||||
height will be the same as this mask's. The rect's attributes can be
|
||||
altered via :func:`pygame.Rect` attribute keyword arguments/values passed
|
||||
into this method. As an example, ``a_mask.get_rect(center=(10, 5))`` would
|
||||
create a :func:`pygame.Rect` based on the mask's size centered at the
|
||||
given position.
|
||||
|
||||
:param dict kwargs: :func:`pygame.Rect` attribute keyword arguments/values
|
||||
that will be applied to the rect
|
||||
|
||||
:returns: a new :func:`pygame.Rect` object based on the size of this mask
|
||||
with any :func:`pygame.Rect` attribute keyword arguments/values applied
|
||||
to it
|
||||
:rtype: Rect
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Mask.get_rect ##
|
||||
|
||||
.. method:: get_at
|
||||
|
||||
| :sl:`Gets the bit at the given position`
|
||||
| :sg:`get_at(pos) -> int`
|
||||
|
||||
:param pos: the position of the bit to get (x, y)
|
||||
|
||||
:returns: 1 if the bit is set, 0 if the bit is not set
|
||||
:rtype: int
|
||||
|
||||
:raises IndexError: if the position is outside of the mask's bounds
|
||||
|
||||
.. ## Mask.get_at ##
|
||||
|
||||
.. method:: set_at
|
||||
|
||||
| :sl:`Sets the bit at the given position`
|
||||
| :sg:`set_at(pos) -> None`
|
||||
| :sg:`set_at(pos, value=1) -> None`
|
||||
|
||||
:param pos: the position of the bit to set (x, y)
|
||||
:param int value: any nonzero int will set the bit to 1, 0 will set the
|
||||
bit to 0 (default is 1)
|
||||
|
||||
:returns: ``None``
|
||||
:rtype: NoneType
|
||||
|
||||
:raises IndexError: if the position is outside of the mask's bounds
|
||||
|
||||
.. ## Mask.set_at ##
|
||||
|
||||
.. method:: overlap
|
||||
|
||||
| :sl:`Returns the point of intersection`
|
||||
| :sg:`overlap(other, offset) -> (x, y)`
|
||||
| :sg:`overlap(other, offset) -> None`
|
||||
|
||||
Returns the first point of intersection encountered between this mask and
|
||||
``other``. A point of intersection is 2 overlapping set bits.
|
||||
|
||||
The current algorithm searches the overlapping area in
|
||||
``sizeof(unsigned long int) * CHAR_BIT`` bit wide column blocks (the value
|
||||
of ``sizeof(unsigned long int) * CHAR_BIT`` is platform dependent, for
|
||||
clarity it will be referred to as ``W``). Starting at the top left corner
|
||||
it checks bits 0 to ``W - 1`` of the first row (``(0, 0)`` to
|
||||
``(W - 1, 0)``) then continues to the next row (``(0, 1)`` to
|
||||
``(W - 1, 1)``). Once this entire column block is checked, it continues to
|
||||
the next one (``W`` to ``2 * W - 1``). This is repeated until it finds a
|
||||
point of intersection or the entire overlapping area is checked.
|
||||
|
||||
:param Mask other: the other mask to overlap with this mask
|
||||
:param offset: the offset of ``other`` from this mask, for more
|
||||
details refer to the :ref:`Mask offset notes <mask-offset-label>`
|
||||
|
||||
:returns: point of intersection or ``None`` if no intersection
|
||||
:rtype: tuple(int, int) or NoneType
|
||||
|
||||
.. ## Mask.overlap ##
|
||||
|
||||
.. method:: overlap_area
|
||||
|
||||
| :sl:`Returns the number of overlapping set bits`
|
||||
| :sg:`overlap_area(other, offset) -> numbits`
|
||||
|
||||
Returns the number of overlapping set bits between between this mask and
|
||||
``other``.
|
||||
|
||||
This can be useful for collision detection. An approximate collision
|
||||
normal can be found by calculating the gradient of the overlapping area
|
||||
through the finite difference.
|
||||
|
||||
::
|
||||
|
||||
dx = mask.overlap_area(other, (x + 1, y)) - mask.overlap_area(other, (x - 1, y))
|
||||
dy = mask.overlap_area(other, (x, y + 1)) - mask.overlap_area(other, (x, y - 1))
|
||||
|
||||
:param Mask other: the other mask to overlap with this mask
|
||||
:param offset: the offset of ``other`` from this mask, for more
|
||||
details refer to the :ref:`Mask offset notes <mask-offset-label>`
|
||||
|
||||
:returns: the number of overlapping set bits
|
||||
:rtype: int
|
||||
|
||||
.. ## Mask.overlap_area ##
|
||||
|
||||
.. method:: overlap_mask
|
||||
|
||||
| :sl:`Returns a mask of the overlapping set bits`
|
||||
| :sg:`overlap_mask(other, offset) -> Mask`
|
||||
|
||||
Returns a :class:`Mask`, the same size as this mask, containing the
|
||||
overlapping set bits between this mask and ``other``.
|
||||
|
||||
:param Mask other: the other mask to overlap with this mask
|
||||
:param offset: the offset of ``other`` from this mask, for more
|
||||
details refer to the :ref:`Mask offset notes <mask-offset-label>`
|
||||
|
||||
:returns: a newly created :class:`Mask` with the overlapping bits set
|
||||
:rtype: Mask
|
||||
|
||||
.. ## Mask.overlap_mask ##
|
||||
|
||||
.. method:: fill
|
||||
|
||||
| :sl:`Sets all bits to 1`
|
||||
| :sg:`fill() -> None`
|
||||
|
||||
Sets all bits in the mask to 1.
|
||||
|
||||
:returns: ``None``
|
||||
:rtype: NoneType
|
||||
|
||||
.. ## Mask.fill ##
|
||||
|
||||
.. method:: clear
|
||||
|
||||
| :sl:`Sets all bits to 0`
|
||||
| :sg:`clear() -> None`
|
||||
|
||||
Sets all bits in the mask to 0.
|
||||
|
||||
:returns: ``None``
|
||||
:rtype: NoneType
|
||||
|
||||
.. ## Mask.clear ##
|
||||
|
||||
.. method:: invert
|
||||
|
||||
| :sl:`Flips all the bits`
|
||||
| :sg:`invert() -> None`
|
||||
|
||||
Flips all of the bits in the mask. All the set bits are cleared to 0 and
|
||||
all the unset bits are set to 1.
|
||||
|
||||
:returns: ``None``
|
||||
:rtype: NoneType
|
||||
|
||||
.. ## Mask.invert ##
|
||||
|
||||
.. method:: scale
|
||||
|
||||
| :sl:`Resizes a mask`
|
||||
| :sg:`scale((width, height)) -> Mask`
|
||||
|
||||
Creates a new :class:`Mask` of the requested size with its bits scaled
|
||||
from this mask.
|
||||
|
||||
:param size: the width and height (size) of the mask to create
|
||||
|
||||
:returns: a new :class:`Mask` object with its bits scaled from this mask
|
||||
:rtype: Mask
|
||||
|
||||
:raises ValueError: if ``width < 0`` or ``height < 0``
|
||||
|
||||
.. ## Mask.scale ##
|
||||
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`Draws a mask onto another`
|
||||
| :sg:`draw(other, offset) -> None`
|
||||
|
||||
Performs a bitwise OR, drawing ``othermask`` onto this mask.
|
||||
|
||||
:param Mask other: the mask to draw onto this mask
|
||||
:param offset: the offset of ``other`` from this mask, for more
|
||||
details refer to the :ref:`Mask offset notes <mask-offset-label>`
|
||||
|
||||
:returns: ``None``
|
||||
:rtype: NoneType
|
||||
|
||||
.. ## Mask.draw ##
|
||||
|
||||
.. method:: erase
|
||||
|
||||
| :sl:`Erases a mask from another`
|
||||
| :sg:`erase(other, offset) -> None`
|
||||
|
||||
Erases (clears) all bits set in ``other`` from this mask.
|
||||
|
||||
:param Mask other: the mask to erase from this mask
|
||||
:param offset: the offset of ``other`` from this mask, for more
|
||||
details refer to the :ref:`Mask offset notes <mask-offset-label>`
|
||||
|
||||
:returns: ``None``
|
||||
:rtype: NoneType
|
||||
|
||||
.. ## Mask.erase ##
|
||||
|
||||
.. method:: count
|
||||
|
||||
| :sl:`Returns the number of set bits`
|
||||
| :sg:`count() -> bits`
|
||||
|
||||
:returns: the number of set bits in the mask
|
||||
:rtype: int
|
||||
|
||||
.. ## Mask.count ##
|
||||
|
||||
.. method:: centroid
|
||||
|
||||
| :sl:`Returns the centroid of the set bits`
|
||||
| :sg:`centroid() -> (x, y)`
|
||||
|
||||
Finds the centroid (the center mass of the set bits) for this mask.
|
||||
|
||||
:returns: a coordinate tuple indicating the centroid of the mask, it will
|
||||
return ``(0, 0)`` if the mask has no bits set
|
||||
:rtype: tuple(int, int)
|
||||
|
||||
.. ## Mask.centroid ##
|
||||
|
||||
.. method:: angle
|
||||
|
||||
| :sl:`Returns the orientation of the set bits`
|
||||
| :sg:`angle() -> theta`
|
||||
|
||||
Finds the approximate orientation (from -90 to 90 degrees) of the set bits
|
||||
in the mask. This works best if performed on a mask with only one
|
||||
connected component.
|
||||
|
||||
:returns: the orientation of the set bits in the mask, it will return
|
||||
``0.0`` if the mask has no bits set
|
||||
:rtype: float
|
||||
|
||||
.. note::
|
||||
See :meth:`connected_component` for details on how a connected
|
||||
component is calculated.
|
||||
|
||||
.. ## Mask.angle ##
|
||||
|
||||
.. method:: outline
|
||||
|
||||
| :sl:`Returns a list of points outlining an object`
|
||||
| :sg:`outline() -> [(x, y), ...]`
|
||||
| :sg:`outline(every=1) -> [(x, y), ...]`
|
||||
|
||||
Returns a list of points of the outline of the first connected component
|
||||
encountered in the mask. To find a connected component, the mask is
|
||||
searched per row (left to right) starting in the top left corner.
|
||||
|
||||
The ``every`` optional parameter skips set bits in the outline. For
|
||||
example, setting it to 10 would return a list of every 10th set bit in the
|
||||
outline.
|
||||
|
||||
:param int every: (optional) indicates the number of bits to skip over in
|
||||
the outline (default is 1)
|
||||
|
||||
:returns: a list of points outlining the first connected component
|
||||
encountered, an empty list is returned if the mask has no bits set
|
||||
:rtype: list[tuple(int, int)]
|
||||
|
||||
.. note::
|
||||
See :meth:`connected_component` for details on how a connected
|
||||
component is calculated.
|
||||
|
||||
.. ## Mask.outline ##
|
||||
|
||||
.. method:: convolve
|
||||
|
||||
| :sl:`Returns the convolution of this mask with another mask`
|
||||
| :sg:`convolve(other) -> Mask`
|
||||
| :sg:`convolve(other, output=None, offset=(0, 0)) -> Mask`
|
||||
|
||||
Convolve this mask with the given ``other`` Mask.
|
||||
|
||||
:param Mask other: mask to convolve this mask with
|
||||
:param output: (optional) mask for output (default is ``None``)
|
||||
:type output: Mask or NoneType
|
||||
:param offset: the offset of ``other`` from this mask, (default is
|
||||
``(0, 0)``)
|
||||
|
||||
:returns: a :class:`Mask` with the ``(i - offset[0], j - offset[1])`` bit
|
||||
set, if shifting ``other`` (such that its bottom right corner is at
|
||||
``(i, j)``) causes it to overlap with this mask
|
||||
|
||||
If an ``output`` Mask is specified, the output is drawn onto it and
|
||||
it is returned. Otherwise a mask of size ``(MAX(0, width + other mask's
|
||||
width - 1), MAX(0, height + other mask's height - 1))`` is created and
|
||||
returned.
|
||||
:rtype: Mask
|
||||
|
||||
.. ## Mask.convolve ##
|
||||
|
||||
.. method:: connected_component
|
||||
|
||||
| :sl:`Returns a mask containing a connected component`
|
||||
| :sg:`connected_component() -> Mask`
|
||||
| :sg:`connected_component(pos) -> Mask`
|
||||
|
||||
A connected component is a group (1 or more) of connected set bits
|
||||
(orthogonally and diagonally). The SAUF algorithm, which checks 8 point
|
||||
connectivity, is used to find a connected component in the mask.
|
||||
|
||||
By default this method will return a :class:`Mask` containing the largest
|
||||
connected component in the mask. Optionally, a bit coordinate can be
|
||||
specified and the connected component containing it will be returned. If
|
||||
the bit at the given location is not set, the returned :class:`Mask` will
|
||||
be empty (no bits set).
|
||||
|
||||
:param pos: (optional) selects the connected component that contains the
|
||||
bit at this position
|
||||
|
||||
:returns: a :class:`Mask` object (same size as this mask) with the largest
|
||||
connected component from this mask, if this mask has no bits set then
|
||||
an empty mask will be returned
|
||||
|
||||
If the ``pos`` parameter is provided then the mask returned will have
|
||||
the connected component that contains this position. An empty mask will
|
||||
be returned if the ``pos`` parameter selects an unset bit.
|
||||
:rtype: Mask
|
||||
|
||||
:raises IndexError: if the optional ``pos`` parameter is outside of the
|
||||
mask's bounds
|
||||
|
||||
.. ## Mask.connected_component ##
|
||||
|
||||
.. method:: connected_components
|
||||
|
||||
| :sl:`Returns a list of masks of connected components`
|
||||
| :sg:`connected_components() -> [Mask, ...]`
|
||||
| :sg:`connected_components(minimum=0) -> [Mask, ...]`
|
||||
|
||||
Provides a list containing a :class:`Mask` object for each connected
|
||||
component.
|
||||
|
||||
:param int minimum: (optional) indicates the minimum number of bits (to
|
||||
filter out noise) per connected component (default is 0, which equates
|
||||
to no minimum and is equivalent to setting it to 1, as a connected
|
||||
component must have at least 1 bit set)
|
||||
|
||||
:returns: a list containing a :class:`Mask` object for each connected
|
||||
component, an empty list is returned if the mask has no bits set
|
||||
:rtype: list[Mask]
|
||||
|
||||
.. note::
|
||||
See :meth:`connected_component` for details on how a connected
|
||||
component is calculated.
|
||||
|
||||
.. ## Mask.connected_components ##
|
||||
|
||||
.. method:: get_bounding_rects
|
||||
|
||||
| :sl:`Returns a list of bounding rects of connected components`
|
||||
| :sg:`get_bounding_rects() -> [Rect, ...]`
|
||||
|
||||
Provides a list containing a bounding rect for each connected component.
|
||||
|
||||
:returns: a list containing a bounding rect for each connected component,
|
||||
an empty list is returned if the mask has no bits set
|
||||
:rtype: list[Rect]
|
||||
|
||||
.. note::
|
||||
See :meth:`connected_component` for details on how a connected
|
||||
component is calculated.
|
||||
|
||||
.. ## Mask.get_bounding_rects ##
|
||||
|
||||
.. method:: to_surface
|
||||
|
||||
| :sl:`Returns a surface with the mask drawn on it`
|
||||
| :sg:`to_surface() -> Surface`
|
||||
| :sg:`to_surface(surface=None, setsurface=None, unsetsurface=None, setcolor=(255, 255, 255, 255), unsetcolor=(0, 0, 0, 255), dest=(0, 0)) -> Surface`
|
||||
|
||||
Draws this mask on the given surface. Set bits (bits set to 1) and unset
|
||||
bits (bits set to 0) can be drawn onto a surface.
|
||||
|
||||
:param surface: (optional) Surface to draw mask onto, if no surface is
|
||||
provided one will be created (default is ``None``, which will cause a
|
||||
surface with the parameters
|
||||
``Surface(size=mask.get_size(), flags=SRCALPHA, depth=32)`` to be
|
||||
created, drawn on, and returned)
|
||||
:type surface: Surface or None
|
||||
:param setsurface: (optional) use this surface's color values to draw
|
||||
set bits (default is ``None``), if this surface is smaller than the
|
||||
mask any bits outside its bounds will use the ``setcolor`` value
|
||||
:type setsurface: Surface or None
|
||||
:param unsetsurface: (optional) use this surface's color values to draw
|
||||
unset bits (default is ``None``), if this surface is smaller than the
|
||||
mask any bits outside its bounds will use the ``unsetcolor`` value
|
||||
:type unsetsurface: Surface or None
|
||||
:param setcolor: (optional) color to draw set bits (default is
|
||||
``(255, 255, 255, 255)``, white), use ``None`` to skip drawing the set
|
||||
bits, the ``setsurface`` parameter (if set) will takes precedence over
|
||||
this parameter
|
||||
:type setcolor: Color or str or int or tuple(int, int, int, [int]) or
|
||||
list(int, int, int, [int]) or None
|
||||
:param unsetcolor: (optional) color to draw unset bits (default is
|
||||
``(0, 0, 0, 255)``, black), use ``None`` to skip drawing the unset
|
||||
bits, the ``unsetsurface`` parameter (if set) will takes precedence
|
||||
over this parameter
|
||||
:type unsetcolor: Color or str or int or tuple(int, int, int, [int]) or
|
||||
list(int, int, int, [int]) or None
|
||||
:param dest: (optional) surface destination of where to position the
|
||||
topleft corner of the mask being drawn (default is ``(0, 0)``), if a
|
||||
Rect is used as the ``dest`` parameter, its ``x`` and ``y`` attributes
|
||||
will be used as the destination, **NOTE1:** rects with a negative width
|
||||
or height value will not be normalized before using their ``x`` and
|
||||
``y`` values, **NOTE2:** this destination value is only used to
|
||||
position the mask on the surface, it does not offset the ``setsurface``
|
||||
and ``unsetsurface`` from the mask, they are always aligned with the
|
||||
mask (i.e. position ``(0, 0)`` on the mask always corresponds to
|
||||
position ``(0, 0)`` on the ``setsurface`` and ``unsetsurface``)
|
||||
:type dest: Rect or tuple(int, int) or list(int, int) or Vector2(int, int)
|
||||
|
||||
:returns: the ``surface`` parameter (or a newly created surface if no
|
||||
``surface`` parameter was provided) with this mask drawn on it
|
||||
:rtype: Surface
|
||||
|
||||
:raises ValueError: if the ``setsurface`` parameter or ``unsetsurface``
|
||||
parameter does not have the same format (bytesize/bitsize/alpha) as
|
||||
the ``surface`` parameter
|
||||
|
||||
.. note ::
|
||||
To skip drawing the set bits, both ``setsurface`` and ``setcolor`` must
|
||||
be ``None``. The ``setsurface`` parameter defaults to ``None``, but
|
||||
``setcolor`` defaults to a color value and therefore must be set to
|
||||
``None``.
|
||||
|
||||
.. note ::
|
||||
To skip drawing the unset bits, both ``unsetsurface`` and
|
||||
``unsetcolor`` must be ``None``. The ``unsetsurface`` parameter
|
||||
defaults to ``None``, but ``unsetcolor`` defaults to a color value and
|
||||
therefore must be set to ``None``.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Mask.to_surface ##
|
||||
|
||||
.. ## pygame.mask.Mask ##
|
||||
|
||||
.. ## pygame.mask ##
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
| :sl:`pygame module for interacting with midi input and output.`
|
||||
|
||||
.. versionaddedold:: 1.9.0
|
||||
.. versionadded:: 1.9.0
|
||||
|
||||
The midi module can send output to midi devices and get input from midi
|
||||
devices. It can also list midi devices on the system.
|
||||
@@ -23,7 +23,7 @@ future. The pyportmidi bindings are included with pygame.
|
||||
|
||||
|
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
These are pygame events (:mod:`pygame.event`) reserved for midi use. The
|
||||
``MIDIIN`` event is used by :func:`pygame.midi.midis2events` when converting
|
||||
@@ -71,7 +71,7 @@ midi events to pygame events.
|
||||
:returns: ``True`` if the :mod:`pygame.midi` module is currently initialized.
|
||||
:rtype: bool
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.midi.get_init ##
|
||||
|
||||
@@ -218,7 +218,7 @@ midi events to pygame events.
|
||||
|
||||
If no value is given, the pitch bend is returned to "no change".
|
||||
|
||||
.. versionaddedold:: 1.9.4
|
||||
.. versionadded:: 1.9.4
|
||||
|
||||
.. method:: write
|
||||
|
||||
@@ -439,7 +439,7 @@ midi events to pygame events.
|
||||
|
||||
frequency_to_midi(27.5) == 21
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.midi.frequency_to_midi ##
|
||||
|
||||
@@ -454,7 +454,7 @@ midi events to pygame events.
|
||||
|
||||
midi_to_frequency(21) == 27.5
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.midi.midi_to_frequency ##
|
||||
|
||||
@@ -469,7 +469,7 @@ midi events to pygame events.
|
||||
|
||||
midi_to_ansi_note(21) == 'A0'
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.midi.midi_to_ansi_note ##
|
||||
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
| :sl:`pygame module for loading and playing sounds`
|
||||
|
||||
This module contains classes for loading Sound objects and controlling
|
||||
playback.
|
||||
playback. The mixer module is optional and depends on SDL_mixer. Your program
|
||||
should test that :mod:`pygame.mixer` is available and initialized before using
|
||||
it.
|
||||
|
||||
The mixer module has a limited number of channels for playback of sounds.
|
||||
Usually programs tell pygame to start playing audio and it selects an available
|
||||
@@ -28,7 +30,9 @@ streams the music from the files without loading music at once into memory.
|
||||
|
||||
The mixer module must be initialized like other pygame modules, but it has some
|
||||
extra conditions. The ``pygame.mixer.init()`` function takes several optional
|
||||
arguments to control the playback rate and sample size.
|
||||
arguments to control the playback rate and sample size. Pygame will default to
|
||||
reasonable values, but pygame cannot perform Sound resampling, so the mixer
|
||||
should be initialized to match the values of your audio resources.
|
||||
|
||||
``NOTE``: For less laggy sound use a smaller buffer size. The default
|
||||
is set to reduce the chance of scratchy sounds on some computers. You can
|
||||
@@ -36,26 +40,6 @@ change the default buffer by calling :func:`pygame.mixer.pre_init` before
|
||||
:func:`pygame.mixer.init` or :func:`pygame.init` is called. For example:
|
||||
``pygame.mixer.pre_init(44100,-16,2, 1024)``
|
||||
|
||||
The following file formats are supported
|
||||
|
||||
* ``WAV``
|
||||
|
||||
* ``MP3``
|
||||
|
||||
* ``OGG``
|
||||
|
||||
* ``FLAC``
|
||||
|
||||
* ``OPUS``
|
||||
|
||||
* ``WV`` (WavPack)
|
||||
|
||||
* ``MOD`` ("Module file" family of music file formats)
|
||||
|
||||
* ``MIDI`` (see the :func:`get_soundfont` and :func:`set_soundfont` methods)
|
||||
|
||||
.. versionadded:: 2.5.0 Loading WV (Relies on SDL_mixer 2.8.0+)
|
||||
|
||||
|
||||
.. function:: init
|
||||
|
||||
@@ -64,7 +48,7 @@ The following file formats are supported
|
||||
|
||||
Initialize the mixer module for Sound loading and playback. The default
|
||||
arguments can be overridden to provide specific audio mixing. Keyword
|
||||
arguments are accepted. For backwards compatibility, argument values of
|
||||
arguments are accepted. For backwards compatibility, argument values of
|
||||
0 are replaced with the startup defaults, except for ``allowedchanges``,
|
||||
where -1 is used. (startup defaults may be changed by a :func:`pre_init` call).
|
||||
|
||||
@@ -75,9 +59,6 @@ The following file formats are supported
|
||||
|
||||
The channels argument is used to specify whether to use mono or stereo. 1
|
||||
for mono and 2 for stereo.
|
||||
``NOTE``: The channels argument is not related to the number
|
||||
of channels for playback of sounds, that you can get with the function
|
||||
"get_num_channels" or set with the function "set_num_channels" (see below).
|
||||
|
||||
The buffer argument controls the number of internal samples used in the
|
||||
sound mixer. The default value should work for most cases. It can be lowered
|
||||
@@ -86,10 +67,6 @@ The following file formats are supported
|
||||
playback. The buffer size must be a power of two (if not it is rounded up to
|
||||
the next nearest power of 2).
|
||||
|
||||
The devicename parameter is the name of sound device to open for audio
|
||||
playback. Allowed device names will vary based on the host system.
|
||||
If left as ``None`` then a sensible default will be chosen for you.
|
||||
|
||||
Some platforms require the :mod:`pygame.mixer` module to be initialized
|
||||
after the display modules have initialized. The top level ``pygame.init()``
|
||||
takes care of this automatically, but cannot pass any arguments to the mixer
|
||||
@@ -100,7 +77,7 @@ The following file formats are supported
|
||||
what the hardware supports. For example a sound card may not
|
||||
support 16bit sound samples, so instead it will use 8bit samples internally.
|
||||
If AUDIO_ALLOW_FORMAT_CHANGE is supplied, then the requested format will
|
||||
change to the closest that SDL supports.
|
||||
change to the closest that SDL2 supports.
|
||||
|
||||
Apart from 0, allowedchanged accepts the following constants ORed together:
|
||||
|
||||
@@ -113,13 +90,13 @@ The following file formats are supported
|
||||
you cannot change the playback arguments without first calling
|
||||
``pygame.mixer.quit()``.
|
||||
|
||||
.. versionchangedold:: 1.8 The default ``buffersize`` changed from 1024 to 3072.
|
||||
.. versionchangedold:: 1.9.1 The default ``buffersize`` changed from 3072 to 4096.
|
||||
.. versionchangedold:: 2.0.0 The default ``buffersize`` changed from 4096 to 512.
|
||||
.. versionchangedold:: 2.0.0 The default ``frequency`` changed from 22050 to 44100.
|
||||
.. versionchangedold:: 2.0.0 ``size`` can be 32 (32-bit floats).
|
||||
.. versionchangedold:: 2.0.0 ``channels`` can also be 4 or 6.
|
||||
.. versionaddedold:: 2.0.0 ``allowedchanges``, ``devicename`` arguments added
|
||||
.. versionchanged:: 1.8 The default ``buffersize`` changed from 1024 to 3072.
|
||||
.. versionchanged:: 1.9.1 The default ``buffersize`` changed from 3072 to 4096.
|
||||
.. versionchanged:: 2.0.0 The default ``buffersize`` changed from 4096 to 512.
|
||||
.. versionchanged:: 2.0.0 The default ``frequency`` changed from 22050 to 44100.
|
||||
.. versionchanged:: 2.0.0 ``size`` can be 32 (32-bit floats).
|
||||
.. versionchanged:: 2.0.0 ``channels`` can also be 4 or 6.
|
||||
.. versionadded:: 2.0.0 ``allowedchanges``, ``devicename`` arguments added
|
||||
|
||||
.. ## pygame.mixer.init ##
|
||||
|
||||
@@ -135,11 +112,11 @@ The following file formats are supported
|
||||
For backwards compatibility, argument values of 0 are replaced with the
|
||||
startup defaults, except for ``allowedchanges``, where -1 is used.
|
||||
|
||||
.. versionchangedold:: 1.8 The default ``buffersize`` changed from 1024 to 3072.
|
||||
.. versionchangedold:: 1.9.1 The default ``buffersize`` changed from 3072 to 4096.
|
||||
.. versionchangedold:: 2.0.0 The default ``buffersize`` changed from 4096 to 512.
|
||||
.. versionchangedold:: 2.0.0 The default ``frequency`` changed from 22050 to 44100.
|
||||
.. versionaddedold:: 2.0.0 ``allowedchanges``, ``devicename`` arguments added
|
||||
.. versionchanged:: 1.8 The default ``buffersize`` changed from 1024 to 3072.
|
||||
.. versionchanged:: 1.9.1 The default ``buffersize`` changed from 3072 to 4096.
|
||||
.. versionchanged:: 2.0.0 The default ``buffersize`` changed from 4096 to 512.
|
||||
.. versionchanged:: 2.0.0 The default ``frequency`` changed from 22050 to 44100.
|
||||
.. versionadded:: 2.0.0 ``allowedchanges``, ``devicename`` arguments added
|
||||
|
||||
.. ## pygame.mixer.pre_init ##
|
||||
|
||||
@@ -157,25 +134,13 @@ The following file formats are supported
|
||||
.. function:: get_init
|
||||
|
||||
| :sl:`test if the mixer is initialized`
|
||||
| :sg:`get_init() -> (frequency, format, channels) | None`
|
||||
| :sg:`get_init() -> (frequency, format, channels)`
|
||||
|
||||
If the mixer is initialized, this returns the playback arguments it is
|
||||
using. If the mixer has not been initialized this returns ``None``.
|
||||
|
||||
.. ## pygame.mixer.get_init ##
|
||||
|
||||
.. function:: get_driver
|
||||
|
||||
| :sl:`get the name of the current audio backend driver`
|
||||
| :sg:`get_driver() -> str`
|
||||
|
||||
Pygame chooses one of many available audio backend drivers when it is
|
||||
initialized. This returns the internal name used for the backend. This
|
||||
function is intended to be used for getting diagnostic/debugging information.
|
||||
This can be controlled with ``SDL_AUDIODRIVER`` environment variable.
|
||||
|
||||
.. versionadded:: 2.5.0
|
||||
|
||||
.. function:: stop
|
||||
|
||||
| :sl:`stop playback of all sound channels`
|
||||
@@ -207,7 +172,7 @@ The following file formats are supported
|
||||
.. function:: fadeout
|
||||
|
||||
| :sl:`fade out the volume on all sounds before stopping`
|
||||
| :sg:`fadeout(time, /) -> None`
|
||||
| :sg:`fadeout(time) -> None`
|
||||
|
||||
This will fade out the volume on all active channels over the time argument
|
||||
in milliseconds. After the sound is muted the playback will stop.
|
||||
@@ -217,9 +182,9 @@ The following file formats are supported
|
||||
.. function:: set_num_channels
|
||||
|
||||
| :sl:`set the total number of playback channels`
|
||||
| :sg:`set_num_channels(count, /) -> None`
|
||||
| :sg:`set_num_channels(count) -> None`
|
||||
|
||||
Sets the number of available playback channels for the mixer. The default value is 8.
|
||||
Sets the number of available channels for the mixer. The default value is 8.
|
||||
The value can be increased or decreased. If the value is decreased, sounds
|
||||
playing on the truncated channels are stopped.
|
||||
|
||||
@@ -237,10 +202,10 @@ The following file formats are supported
|
||||
.. function:: set_reserved
|
||||
|
||||
| :sl:`reserve channels from being automatically used`
|
||||
| :sg:`set_reserved(count, /) -> count`
|
||||
| :sg:`set_reserved(count) -> count`
|
||||
|
||||
The mixer can reserve any number of channels that will not be automatically
|
||||
selected for playback by Sounds. This means that whenever you play a Sound
|
||||
selected for playback by Sounds. This means that whenever you play a Sound
|
||||
without specifying a channel, a reserved channel will never be used. If sounds
|
||||
are currently playing on the reserved channels they will not be stopped.
|
||||
|
||||
@@ -256,7 +221,7 @@ The following file formats are supported
|
||||
.. function:: find_channel
|
||||
|
||||
| :sl:`find an unused channel`
|
||||
| :sg:`find_channel(force=False) -> Channel | None`
|
||||
| :sg:`find_channel(force=False) -> Channel`
|
||||
|
||||
This will find and return an inactive Channel object. If there are no
|
||||
inactive Channels this function will return ``None``. If there are no
|
||||
@@ -265,50 +230,13 @@ The following file formats are supported
|
||||
|
||||
.. ## pygame.mixer.find_channel ##
|
||||
|
||||
.. function:: set_soundfont
|
||||
|
||||
| :sl:`set the soundfont for playing midi music`
|
||||
| :sg:`set_soundfont(path, /) -> None`
|
||||
|
||||
This sets the soundfont file to be used in the playback of midi music.
|
||||
The soundfont only affects the playback of ``MID``, ``MIDI``, and ``KAR`` file formats.
|
||||
The optional ``path`` argument, a string (or multiple strings separated by a semi-colon),
|
||||
must point to the soundfont file(s) to be searched for in order given if some
|
||||
are missing. If ``path`` is an empty string or the default (``None``), any specified soundfont paths
|
||||
will be cleared from the mixer.
|
||||
|
||||
Note on Windows, the mixer always uses the built-in soundfont instead of the one specified.
|
||||
|
||||
Function :func:`set_soundfont` calls underlying SDL_mixer function
|
||||
``Mix_SetSoundFonts``.
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. ## pygame.mixer.set_soundfont ##
|
||||
|
||||
.. function:: get_soundfont
|
||||
|
||||
| :sl:`get the soundfont for playing midi music`
|
||||
| :sg:`get_soundfont() -> paths`
|
||||
|
||||
This gets the soundfont filepaths as a string (each path is separated by a semi-colon)
|
||||
to be used in the playback of ``MID``, ``MIDI``, and ``KAR`` music file formats. If no
|
||||
soundfont is specified, the return type is ``None``.
|
||||
|
||||
Function :func:`get_soundfont` calls underlying SDL_mixer function
|
||||
``Mix_GetSoundFonts``.
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. ## pygame.mixer.get_soundfont ##
|
||||
|
||||
.. function:: get_busy
|
||||
|
||||
| :sl:`test if any sound is being mixed`
|
||||
| :sg:`get_busy() -> bool`
|
||||
|
||||
Returns ``True`` if the mixer is busy mixing any channels. If the mixer is
|
||||
idle or uninitialized then this returns ``False``.
|
||||
idle then this return ``False``.
|
||||
|
||||
.. ## pygame.mixer.get_busy ##
|
||||
|
||||
@@ -327,9 +255,9 @@ The following file formats are supported
|
||||
:rtype: tuple
|
||||
|
||||
.. note::
|
||||
The linked and compiled version numbers should be the same.
|
||||
The linked and compile version numbers should be the same.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.mixer.get_sdl_mixer_version ##
|
||||
|
||||
@@ -350,11 +278,11 @@ The following file formats are supported
|
||||
the initialize arguments for the mixer. A Unicode string can only be a file
|
||||
pathname. A bytes object can be either a pathname or a buffer object.
|
||||
Use the 'file' or 'buffer' keywords to avoid ambiguity; otherwise Sound may
|
||||
guess wrong. If the array keyword is used, the object is expected to export
|
||||
guess wrong. If the array keyword is used, the object is expected to export
|
||||
a new buffer interface (The object is checked for a buffer interface first.)
|
||||
|
||||
The Sound object represents actual sound sample data. Methods that change
|
||||
the state of the Sound object will impact all instances of the Sound playback.
|
||||
the state of the Sound object will the all instances of the Sound playback.
|
||||
A Sound object also exports a new buffer interface.
|
||||
|
||||
The Sound can be loaded from an ``OGG`` audio file or from an uncompressed
|
||||
@@ -369,17 +297,10 @@ The following file formats are supported
|
||||
an exception when different. Also, source samples are truncated to fit the
|
||||
audio sample size. This will not change.
|
||||
|
||||
.. note:: ``bytes(Sound)`` and ``bytearray(Sound)`` make use of the buffer
|
||||
interface, which is implemented internally by ``pygame.mixer.Sound``.
|
||||
Because of this, there is no need to directly implement ``__bytes__``.
|
||||
|
||||
.. versionaddedold:: 1.8 ``pygame.mixer.Sound(buffer)``
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.8 ``pygame.mixer.Sound(buffer)``
|
||||
.. versionadded:: 1.9.2
|
||||
:class:`pygame.mixer.Sound` keyword arguments and array interface support
|
||||
.. versionaddedold:: 2.0.1 pathlib.Path support on Python 3.
|
||||
|
||||
.. versionchanged:: 2.5.2 This class is also available through the ``pygame.Sound``
|
||||
alias.
|
||||
.. versionadded:: 2.0.1 pathlib.Path support on Python 3.
|
||||
|
||||
.. method:: play
|
||||
|
||||
@@ -420,7 +341,7 @@ The following file formats are supported
|
||||
.. method:: fadeout
|
||||
|
||||
| :sl:`stop sound playback after fading out`
|
||||
| :sg:`fadeout(time, /) -> None`
|
||||
| :sg:`fadeout(time) -> None`
|
||||
|
||||
This will stop playback of the sound after fading it out over the time
|
||||
argument in milliseconds. The Sound will fade and stop on all actively
|
||||
@@ -431,7 +352,7 @@ The following file formats are supported
|
||||
.. method:: set_volume
|
||||
|
||||
| :sl:`set the playback volume for this Sound`
|
||||
| :sg:`set_volume(value, /) -> None`
|
||||
| :sg:`set_volume(value) -> None`
|
||||
|
||||
This will set the playback volume (loudness) for this Sound. This will
|
||||
immediately affect the Sound if it is playing. It will also affect any
|
||||
@@ -442,25 +363,6 @@ The following file formats are supported
|
||||
| If value < 0.0, the volume will not be changed
|
||||
| If value > 1.0, the volume will be set to 1.0
|
||||
|
||||
.. note::
|
||||
The values are internally converted and kept as integer values in range [0, 128], which means
|
||||
that ``get_volume()`` may return a different volume than it was set to. For example,
|
||||
|
||||
>>> sound.set_volume(0.1)
|
||||
>>> sound.get_volume()
|
||||
0.09375
|
||||
|
||||
This is because when you ``set_volume(0.1)``, the volume is internally calculated like so
|
||||
|
||||
>>> int(0.1 * 128)
|
||||
12
|
||||
|
||||
This means that some of the precision is lost, so when you retrieve it again using ``get_volume()``,
|
||||
it is converted back to a ``float`` using that integer
|
||||
|
||||
>>> 12 / 128
|
||||
0.09375
|
||||
|
||||
.. ## Sound.set_volume ##
|
||||
|
||||
.. method:: get_volume
|
||||
@@ -468,10 +370,7 @@ The following file formats are supported
|
||||
| :sl:`get the playback volume`
|
||||
| :sg:`get_volume() -> value`
|
||||
|
||||
Return a value from 0.0 to 1.0 (inclusive) representing the volume for this Sound.
|
||||
|
||||
.. note::
|
||||
See :func:`Sound.set_volume` for more information regarding the returned value
|
||||
Return a value from 0.0 to 1.0 representing the volume for this Sound.
|
||||
|
||||
.. ## Sound.get_volume ##
|
||||
|
||||
@@ -500,30 +399,10 @@ The following file formats are supported
|
||||
|
||||
Return a copy of the Sound object buffer as a bytes.
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. ## Sound.get_raw ##
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`return a new Sound object that is a deep copy of this Sound`
|
||||
| :sg:`copy() -> Sound`
|
||||
| :sg:`copy.copy(original_sound) -> Sound`
|
||||
|
||||
Return a new Sound object that is a deep copy of this Sound. The new Sound
|
||||
will be just as if you loaded it from the same file on disk as you did the
|
||||
original Sound. If the copy fails, a ``TypeError`` or :meth:`pygame.error`
|
||||
exception will be raised.
|
||||
|
||||
If copying a subclass of ``mixer.Sound``, an instance of the same subclass
|
||||
will be returned.
|
||||
|
||||
Also note that this functions as ``Sound.__copy__``.
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
|
||||
.. ## Sound.copy ##
|
||||
|
||||
.. ## pygame.mixer.Sound ##
|
||||
|
||||
.. class:: Channel
|
||||
@@ -532,28 +411,12 @@ The following file formats are supported
|
||||
| :sg:`Channel(id) -> Channel`
|
||||
|
||||
Return a Channel object for one of the current channels. The id must be a
|
||||
value from 0 up to, but not including, ``pygame.mixer.get_num_channels()``.
|
||||
value from 0 to the value of ``pygame.mixer.get_num_channels()``.
|
||||
|
||||
The Channel object can be used to get fine control over the playback of
|
||||
Sounds. A channel can only playback a single Sound at time. Using channels
|
||||
is entirely optional since pygame can manage them by default.
|
||||
|
||||
.. versionchanged:: 2.1.4 This class is also available through the ``pygame.Channel``
|
||||
alias.
|
||||
.. versionchanged:: 2.4.0 It is now possible to create subclasses of ``pygame.mixer.Channel``
|
||||
|
||||
.. attribute:: id
|
||||
|
||||
| :sl:`get the channel id for the Channel object`
|
||||
| :sg:`id -> int`
|
||||
|
||||
This simply returns the channel id used to create the ``Channel`` instance
|
||||
as a read-only attribute
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Channel.id ##
|
||||
|
||||
.. method:: play
|
||||
|
||||
| :sl:`play a Sound on a specific Channel`
|
||||
@@ -607,59 +470,28 @@ The following file formats are supported
|
||||
.. method:: fadeout
|
||||
|
||||
| :sl:`stop playback after fading channel out`
|
||||
| :sg:`fadeout(time, /) -> None`
|
||||
| :sg:`fadeout(time) -> None`
|
||||
|
||||
Stop playback of a channel after fading out the sound over the given time
|
||||
argument in milliseconds.
|
||||
|
||||
.. ## Channel.fadeout ##
|
||||
|
||||
.. method:: set_source_location
|
||||
|
||||
| :sl:`set the position of a playing channel`
|
||||
| :sg:`set_source_location(angle, distance, /) -> None`
|
||||
|
||||
Set the position (angle, distance) of a playing channel.
|
||||
|
||||
`angle`: Angle in degrees.
|
||||
|
||||
`distance`: Range from 0 to 255.
|
||||
|
||||
.. warning:: This function currently fails and raises a
|
||||
:exc:`pygame.error` when using 7.1 surround sound.
|
||||
By default, the mixer module will use what the hardware is best
|
||||
suited for, so this leads to hardware specific exceptions when using
|
||||
this function.
|
||||
|
||||
One way of avoiding this is only using :func:`set_source_location`
|
||||
with forced stereo. For example:
|
||||
|
||||
::
|
||||
|
||||
pygame.mixer.pre_init(
|
||||
channels=2,
|
||||
allowedchanges=pygame.AUDIO_ALLOW_FREQUENCY_CHANGE,
|
||||
)
|
||||
pygame.init()
|
||||
|
||||
.. versionadded:: 2.3.0
|
||||
|
||||
.. ## Channel.set_source_location ##
|
||||
|
||||
.. method:: set_volume
|
||||
|
||||
| :sl:`set the volume of a playing channel`
|
||||
| :sg:`set_volume(value, /) -> None`
|
||||
| :sg:`set_volume(left, right, /) -> None`
|
||||
| :sg:`set_volume(value) -> None`
|
||||
| :sg:`set_volume(left, right) -> None`
|
||||
|
||||
Set the volume (loudness) of a playing sound. When a channel starts to
|
||||
play its volume value is reset. This only affects the current sound. The
|
||||
value argument is in the range of 0.0 to 1.0 (inclusive).
|
||||
value argument is between 0.0 and 1.0.
|
||||
|
||||
If one argument is passed, it will be the volume of both speakers. If two
|
||||
arguments are passed and the mixer is in stereo mode, the first argument
|
||||
will be the volume of the left speaker and the second will be the volume
|
||||
of the right speaker.
|
||||
of the right speaker. (If the second argument is ``None``, the first
|
||||
argument will be the volume of both speakers.)
|
||||
|
||||
If the channel is playing a Sound on which ``set_volume()`` has also been
|
||||
called, both calls are taken into account. For example:
|
||||
@@ -672,9 +504,6 @@ The following file formats are supported
|
||||
sound.set_volume(0.6) # Now plays at 60% (previous value replaced).
|
||||
channel.set_volume(0.5) # Now plays at 30% (0.6 * 0.5).
|
||||
|
||||
.. note::
|
||||
See :func:`Sound.set_volume` for more information regarding how the value is stored internally
|
||||
|
||||
.. ## Channel.set_volume ##
|
||||
|
||||
.. method:: get_volume
|
||||
@@ -682,15 +511,11 @@ The following file formats are supported
|
||||
| :sl:`get the volume of the playing channel`
|
||||
| :sg:`get_volume() -> value`
|
||||
|
||||
Return the volume of the channel for the current playing sound
|
||||
in the range of 0.0 to 1.0 (inclusive). This does
|
||||
Return the volume of the channel for the current playing sound. This does
|
||||
not take into account stereo separation used by
|
||||
:meth:`Channel.set_volume`. The Sound object also has its own volume
|
||||
which is mixed with the channel.
|
||||
|
||||
.. note::
|
||||
See :func:`Sound.set_volume` for more information regarding the returned value
|
||||
|
||||
.. ## Channel.get_volume ##
|
||||
|
||||
.. method:: get_busy
|
||||
@@ -706,7 +531,7 @@ The following file formats are supported
|
||||
.. method:: get_sound
|
||||
|
||||
| :sl:`get the currently playing Sound`
|
||||
| :sg:`get_sound() -> Sound | None`
|
||||
| :sg:`get_sound() -> Sound`
|
||||
|
||||
Return the actual Sound object currently playing on this channel. If the
|
||||
channel is idle ``None`` is returned.
|
||||
@@ -716,7 +541,7 @@ The following file formats are supported
|
||||
.. method:: queue
|
||||
|
||||
| :sl:`queue a Sound object to follow the current`
|
||||
| :sg:`queue(sound, /) -> None`
|
||||
| :sg:`queue(Sound) -> None`
|
||||
|
||||
When a Sound is queued on a Channel, it will begin playing immediately
|
||||
after the current Sound is finished. Each channel can only have a single
|
||||
@@ -732,7 +557,7 @@ The following file formats are supported
|
||||
.. method:: get_queue
|
||||
|
||||
| :sl:`return any Sound that is queued`
|
||||
| :sg:`get_queue() -> Sound | None`
|
||||
| :sg:`get_queue() -> Sound`
|
||||
|
||||
If a Sound is already queued on this channel it will be returned. Once
|
||||
the queued sound begins playback it will no longer be on the queue.
|
||||
@@ -743,7 +568,7 @@ The following file formats are supported
|
||||
|
||||
| :sl:`have the channel send an event when playback stops`
|
||||
| :sg:`set_endevent() -> None`
|
||||
| :sg:`set_endevent(type, /) -> None`
|
||||
| :sg:`set_endevent(type) -> None`
|
||||
|
||||
When an endevent is set for a channel, it will send an event to the
|
||||
pygame queue every time a sound finishes playing on that channel (not
|
||||
|
||||
@@ -3,5 +3,217 @@
|
||||
:mod:`pygame.mouse`
|
||||
===================
|
||||
|
||||
.. autopgmodule:: pygame.mouse
|
||||
:members:
|
||||
.. module:: pygame.mouse
|
||||
:synopsis: pygame module to work with the mouse
|
||||
|
||||
| :sl:`pygame module to work with the mouse`
|
||||
|
||||
The mouse functions can be used to get the current state of the mouse device.
|
||||
These functions can also alter the system cursor for the mouse.
|
||||
|
||||
When the display mode is set, the event queue will start receiving mouse
|
||||
events. The mouse buttons generate ``pygame.MOUSEBUTTONDOWN`` and
|
||||
``pygame.MOUSEBUTTONUP`` events when they are pressed and released. These
|
||||
events contain a button attribute representing which button was pressed. The
|
||||
mouse wheel will generate ``pygame.MOUSEBUTTONDOWN`` and
|
||||
``pygame.MOUSEBUTTONUP`` events when rolled. The button will be set to 4
|
||||
when the wheel is rolled up, and to button 5 when the wheel is rolled down.
|
||||
Whenever the mouse is moved it generates a ``pygame.MOUSEMOTION`` event. The
|
||||
mouse movement is broken into small and accurate motion events. As the mouse
|
||||
is moving many motion events will be placed on the queue. Mouse motion events
|
||||
that are not properly cleaned from the event queue are the primary reason the
|
||||
event queue fills up.
|
||||
|
||||
If the mouse cursor is hidden, and input is grabbed to the current display the
|
||||
mouse will enter a virtual input mode, where the relative movements of the
|
||||
mouse will never be stopped by the borders of the screen. See the functions
|
||||
``pygame.mouse.set_visible()`` and ``pygame.event.set_grab()`` to get this
|
||||
configured.
|
||||
|
||||
|
||||
**Mouse Wheel Behavior in pygame 2**
|
||||
|
||||
There is proper functionality for mouse wheel behaviour with pygame 2 supporting
|
||||
``pygame.MOUSEWHEEL`` events. The new events support horizontal and vertical
|
||||
scroll movements, with signed integer values representing the amount scrolled
|
||||
(``x`` and ``y``), as well as ``flipped`` direction (the set positive and
|
||||
negative values for each axis is flipped). Read more about SDL2
|
||||
input-related changes here `<https://wiki.libsdl.org/MigrationGuide#input>`_
|
||||
|
||||
In pygame 2, the mouse wheel functionality can be used by listening for the
|
||||
``pygame.MOUSEWHEEL`` type of an event (Bear in mind they still emit
|
||||
``pygame.MOUSEBUTTONDOWN`` events like in pygame 1.x, as well).
|
||||
When this event is triggered, a developer can access the appropriate ``Event`` object
|
||||
with ``pygame.event.get()``. The object can be used to access data about the mouse
|
||||
scroll, such as ``which`` (it will tell you what exact mouse device trigger the event).
|
||||
|
||||
.. code-block:: python
|
||||
:caption: Code example of mouse scroll (tested on 2.0.0.dev7)
|
||||
:name: test.py
|
||||
|
||||
# Taken from husano896's PR thread (slightly modified)
|
||||
import pygame
|
||||
from pygame.locals import *
|
||||
pygame.init()
|
||||
screen = pygame.display.set_mode((640, 480))
|
||||
clock = pygame.time.Clock()
|
||||
|
||||
def main():
|
||||
while True:
|
||||
for event in pygame.event.get():
|
||||
if event.type == QUIT:
|
||||
pygame.quit()
|
||||
return
|
||||
elif event.type == MOUSEWHEEL:
|
||||
print(event)
|
||||
print(event.x, event.y)
|
||||
print(event.flipped)
|
||||
print(event.which)
|
||||
# can access properties with
|
||||
# proper notation(ex: event.y)
|
||||
clock.tick(60)
|
||||
|
||||
# Execute game:
|
||||
main()
|
||||
|
||||
.. function:: get_pressed
|
||||
|
||||
| :sl:`get the state of the mouse buttons`
|
||||
| :sg:`get_pressed(num_buttons=3) -> (button1, button2, button3)`
|
||||
| :sg:`get_pressed(num_buttons=5) -> (button1, button2, button3, button4, button5)`
|
||||
|
||||
Returns a sequence of booleans representing the state of all the mouse
|
||||
buttons. A true value means the mouse is currently being pressed at the time
|
||||
of the call.
|
||||
|
||||
Note, to get all of the mouse events it is better to use either
|
||||
``pygame.event.wait()`` or ``pygame.event.get()`` and check all of those
|
||||
events to see if they are ``MOUSEBUTTONDOWN``, ``MOUSEBUTTONUP``, or
|
||||
``MOUSEMOTION``.
|
||||
|
||||
Note, that on ``X11`` some X servers use middle button emulation. When you
|
||||
click both buttons ``1`` and ``3`` at the same time a ``2`` button event
|
||||
can be emitted.
|
||||
|
||||
Note, remember to call ``pygame.event.get()`` before this function.
|
||||
Otherwise it will not work as expected.
|
||||
|
||||
To support five button mice, an optional parameter ``num_buttons`` has been
|
||||
added in pygame 2. When this is set to ``5``, ``button4`` and ``button5``
|
||||
are added to the returned tuple. Only ``3`` and ``5`` are valid values
|
||||
for this parameter.
|
||||
|
||||
.. versionchanged:: 2.0.0 ``num_buttons`` argument added
|
||||
|
||||
.. ## pygame.mouse.get_pressed ##
|
||||
|
||||
.. function:: get_pos
|
||||
|
||||
| :sl:`get the mouse cursor position`
|
||||
| :sg:`get_pos() -> (x, y)`
|
||||
|
||||
Returns the ``x`` and ``y`` position of the mouse cursor. The position is
|
||||
relative to the top-left corner of the display. The cursor position can be
|
||||
located outside of the display window, but is always constrained to the
|
||||
screen.
|
||||
|
||||
.. ## pygame.mouse.get_pos ##
|
||||
|
||||
.. function:: get_rel
|
||||
|
||||
| :sl:`get the amount of mouse movement`
|
||||
| :sg:`get_rel() -> (x, y)`
|
||||
|
||||
Returns the amount of movement in ``x`` and ``y`` since the previous call to
|
||||
this function. The relative movement of the mouse cursor is constrained to
|
||||
the edges of the screen, but see the virtual input mouse mode for a way
|
||||
around this. Virtual input mode is described at the top of the page.
|
||||
|
||||
.. ## pygame.mouse.get_rel ##
|
||||
|
||||
.. function:: set_pos
|
||||
|
||||
| :sl:`set the mouse cursor position`
|
||||
| :sg:`set_pos([x, y]) -> None`
|
||||
|
||||
Set the current mouse position to arguments given. If the mouse cursor is
|
||||
visible it will jump to the new coordinates. Moving the mouse will generate
|
||||
a new ``pygame.MOUSEMOTION`` event.
|
||||
|
||||
.. ## pygame.mouse.set_pos ##
|
||||
|
||||
.. function:: set_visible
|
||||
|
||||
| :sl:`hide or show the mouse cursor`
|
||||
| :sg:`set_visible(bool) -> bool`
|
||||
|
||||
If the bool argument is true, the mouse cursor will be visible. This will
|
||||
return the previous visible state of the cursor.
|
||||
|
||||
.. ## pygame.mouse.set_visible ##
|
||||
|
||||
.. function:: get_visible
|
||||
|
||||
| :sl:`get the current visibility state of the mouse cursor`
|
||||
| :sg:`get_visible() -> bool`
|
||||
|
||||
Get the current visibility state of the mouse cursor. ``True`` if the mouse is
|
||||
visible, ``False`` otherwise.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.mouse.get_visible ##
|
||||
|
||||
.. function:: get_focused
|
||||
|
||||
| :sl:`check if the display is receiving mouse input`
|
||||
| :sg:`get_focused() -> bool`
|
||||
|
||||
Returns true when pygame is receiving mouse input events (or, in windowing
|
||||
terminology, is "active" or has the "focus").
|
||||
|
||||
This method is most useful when working in a window. By contrast, in
|
||||
full-screen mode, this method always returns true.
|
||||
|
||||
Note: under ``MS`` Windows, the window that has the mouse focus also has the
|
||||
keyboard focus. But under X-Windows, one window can receive mouse events and
|
||||
another receive keyboard events. ``pygame.mouse.get_focused()`` indicates
|
||||
whether the pygame window receives mouse events.
|
||||
|
||||
.. ## pygame.mouse.get_focused ##
|
||||
|
||||
.. function:: set_cursor
|
||||
|
||||
| :sl:`set the mouse cursor to a new cursor`
|
||||
| :sg:`set_cursor(pygame.cursors.Cursor) -> None`
|
||||
| :sg:`set_cursor(size, hotspot, xormasks, andmasks) -> None`
|
||||
| :sg:`set_cursor(hotspot, surface) -> None`
|
||||
| :sg:`set_cursor(constant) -> None`
|
||||
|
||||
Set the mouse cursor to something new. This function accepts either an explicit
|
||||
``Cursor`` object or arguments to create a ``Cursor`` object.
|
||||
|
||||
See :class:`pygame.cursors.Cursor` for help creating cursors and for examples.
|
||||
|
||||
.. versionchanged:: 2.0.1
|
||||
|
||||
.. ## pygame.mouse.set_cursor ##
|
||||
|
||||
|
||||
.. function:: get_cursor
|
||||
|
||||
| :sl:`get the current mouse cursor`
|
||||
| :sg:`get_cursor() -> pygame.cursors.Cursor`
|
||||
|
||||
Get the information about the mouse system cursor. The return value contains
|
||||
the same data as the arguments passed into :func:`pygame.mouse.set_cursor()`.
|
||||
|
||||
.. note:: Code that unpacked a get_cursor() call into
|
||||
``size, hotspot, xormasks, andmasks`` will still work,
|
||||
assuming the call returns an old school type cursor.
|
||||
|
||||
.. versionchanged:: 2.0.1
|
||||
|
||||
.. ## pygame.mouse.get_cursor ##
|
||||
|
||||
.. ## pygame.mouse ##
|
||||
@@ -20,8 +20,6 @@ changed in pygame ``v2.0.2`` which got improved MP3 support. Consider using
|
||||
``OGG`` file format for music as that can give slightly better compression than
|
||||
MP3 in most cases.
|
||||
|
||||
For a complete list of supported file formats, see the :mod:`pygame.mixer` doc page.
|
||||
|
||||
.. function:: load
|
||||
|
||||
| :sl:`Load a music file for playback`
|
||||
@@ -35,8 +33,7 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
If you are loading from a file object, the namehint parameter can be used to specify
|
||||
the type of music data in the object. For example: :code:`load(fileobj, "ogg")`.
|
||||
|
||||
.. versionchangedold:: 2.0.2 Added optional ``namehint`` argument
|
||||
.. versionchanged:: 2.2.0 Raises ``FileNotFoundError`` instead of :exc:`pygame.error` if file cannot be found
|
||||
.. versionchanged:: 2.0.2 Added optional ``namehint`` argument
|
||||
|
||||
.. ## pygame.mixer.music.load ##
|
||||
|
||||
@@ -47,7 +44,7 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
|
||||
This closes resources like files for any music that may be loaded.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.mixer.music.load ##
|
||||
|
||||
@@ -59,18 +56,18 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
|
||||
This will play the loaded music stream. If the music is already playing it
|
||||
will be restarted.
|
||||
|
||||
``loops`` is an optional integer argument, which is ``0`` by default, which
|
||||
indicates how many times to repeat the music. The music repeats indefinitely if
|
||||
this argument is set to ``-1``.
|
||||
|
||||
``start`` is an optional float argument, which is ``0.0`` by default, which
|
||||
denotes the position in time from which the music starts playing. The starting
|
||||
position depends on the format of the music played. ``MP3`` and ``OGG`` use
|
||||
|
||||
``loops`` is an optional integer argument, which is ``0`` by default, which
|
||||
indicates how many times to repeat the music. The music repeats indefinitely if
|
||||
this argument is set to ``-1``.
|
||||
|
||||
``start`` is an optional float argument, which is ``0.0`` by default, which
|
||||
denotes the position in time from which the music starts playing. The starting
|
||||
position depends on the format of the music played. ``MP3`` and ``OGG`` use
|
||||
the position as time in seconds. For ``MP3`` files the start time position
|
||||
selected may not be accurate as things like variable bit rate encoding and ID3
|
||||
tags can throw off the timing calculations. For ``MOD`` music it is the pattern
|
||||
order number. Passing a start position will raise a NotImplementedError if
|
||||
tags can throw off the timing calculations. For ``MOD`` music it is the pattern
|
||||
order number. Passing a start position will raise a NotImplementedError if
|
||||
the start position cannot be set.
|
||||
|
||||
``fade_ms`` is an optional integer argument, which is ``0`` by default,
|
||||
@@ -78,8 +75,8 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
will fade up from volume level ``0.0`` to full volume (or the volume level
|
||||
previously set by :func:`set_volume`). The sample may end before the fade-in
|
||||
is complete. If the music is already streaming ``fade_ms`` is ignored.
|
||||
|
||||
.. versionchangedold:: 2.0.0 Added optional ``fade_ms`` argument
|
||||
|
||||
.. versionchanged:: 2.0.0 Added optional ``fade_ms`` argument
|
||||
|
||||
.. ## pygame.mixer.music.play ##
|
||||
|
||||
@@ -90,7 +87,7 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
|
||||
Resets playback of the current music to the beginning. If :func:`pause` has
|
||||
previously been used to pause the music, the music will remain paused.
|
||||
|
||||
|
||||
.. note:: :func:`rewind` supports a limited number of file types and notably
|
||||
``WAV`` files are NOT supported. For unsupported file types use :func:`play`
|
||||
which will restart the music that's already playing (note that this
|
||||
@@ -131,16 +128,16 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
.. function:: fadeout
|
||||
|
||||
| :sl:`stop music playback after fading out`
|
||||
| :sg:`fadeout(time, /) -> None`
|
||||
| :sg:`fadeout(time) -> None`
|
||||
|
||||
Fade out and stop the currently playing music.
|
||||
|
||||
The ``time`` argument denotes the integer milliseconds for which the
|
||||
The ``time`` argument denotes the integer milliseconds for which the
|
||||
fading effect is generated.
|
||||
|
||||
Note, that this function blocks until the music has faded out. Calls
|
||||
to :func:`fadeout` and :func:`set_volume` will have no effect during
|
||||
this time. If an event was set using :func:`set_endevent` it will be
|
||||
Note, that this function blocks until the music has faded out. Calls
|
||||
to :func:`fadeout` and :func:`set_volume` will have no effect during
|
||||
this time. If an event was set using :func:`set_endevent` it will be
|
||||
called after the music has faded.
|
||||
|
||||
.. ## pygame.mixer.music.fadeout ##
|
||||
@@ -148,19 +145,16 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
.. function:: set_volume
|
||||
|
||||
| :sl:`set the music volume`
|
||||
| :sg:`set_volume(volume, /) -> None`
|
||||
| :sg:`set_volume(volume) -> None`
|
||||
|
||||
Set the volume of the music playback.
|
||||
|
||||
The ``volume`` argument is a float between ``0.0`` and ``1.0`` that sets
|
||||
|
||||
The ``volume`` argument is a float between ``0.0`` and ``1.0`` that sets
|
||||
the volume level. When new music is loaded the volume is reset to full
|
||||
volume. If ``volume`` is a negative value it will be ignored and the
|
||||
volume will remain set at the current level. If the ``volume`` argument
|
||||
is greater than ``1.0``, the volume will be set to ``1.0``.
|
||||
|
||||
.. note::
|
||||
See :func:`mixer.Sound.set_volume()<pygame.mixer.Sound.set_volume>` for more information regarding how the value is stored internally
|
||||
|
||||
.. ## pygame.mixer.music.set_volume ##
|
||||
|
||||
.. function:: get_volume
|
||||
@@ -168,12 +162,9 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
| :sl:`get the music volume`
|
||||
| :sg:`get_volume() -> value`
|
||||
|
||||
Returns the current volume for the mixer. The value will be between ``0.0``
|
||||
Returns the current volume for the mixer. The value will be between ``0.0``
|
||||
and ``1.0``.
|
||||
|
||||
.. note::
|
||||
See :func:`mixer.Sound.set_volume()<pygame.mixer.Sound.set_volume>` for more information regarding the returned value
|
||||
|
||||
.. ## pygame.mixer.music.get_volume ##
|
||||
|
||||
.. function:: get_busy
|
||||
@@ -186,19 +177,19 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
False when the music is paused. In pygame 1 it returns True when the music
|
||||
is paused.
|
||||
|
||||
.. versionchangedold:: 2.0.1 Returns False when music paused.
|
||||
.. versionchanged:: 2.0.1 Returns False when music paused.
|
||||
|
||||
.. ## pygame.mixer.music.get_busy ##
|
||||
|
||||
.. function:: set_pos
|
||||
|
||||
| :sl:`set position to play from`
|
||||
| :sg:`set_pos(pos, /) -> None`
|
||||
| :sg:`set_pos(pos) -> None`
|
||||
|
||||
This sets the position in the music file where playback will start.
|
||||
The meaning of "pos", a float (or a number that can be converted to a float),
|
||||
depends on the music format.
|
||||
|
||||
|
||||
For ``MOD`` files, pos is the integer pattern number in the module.
|
||||
For ``OGG`` it is the absolute position, in seconds, from
|
||||
the beginning of the sound. For ``MP3`` files, it is the relative position,
|
||||
@@ -206,13 +197,13 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
file, first call :func:`rewind`.
|
||||
|
||||
Other file formats are unsupported. Newer versions of SDL_mixer have
|
||||
better positioning support than earlier ones. A :exc:`pygame.error` is
|
||||
raised if a particular format does not support positioning.
|
||||
better positioning support than earlier ones. An SDLError is raised if a
|
||||
particular format does not support positioning.
|
||||
|
||||
Function :func:`set_pos` calls underlying SDL_mixer function
|
||||
Function :func:`set_pos` calls underlining SDL_mixer function
|
||||
``Mix_SetMusicPosition``.
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. ## pygame.mixer.music.set_pos ##
|
||||
|
||||
@@ -225,8 +216,6 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
The returned time only represents how long the music has been playing; it
|
||||
does not take into account any starting position offsets.
|
||||
|
||||
Returns -1 if ``get_pos`` failed due to music not playing.
|
||||
|
||||
.. ## pygame.mixer.music.get_pos ##
|
||||
|
||||
.. function:: queue
|
||||
@@ -253,8 +242,7 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
pygame.mixer.music.play(5) # Plays six times, not five!
|
||||
pygame.mixer.music.queue('mozart.ogg')
|
||||
|
||||
.. versionchangedold:: 2.0.2 Added optional ``namehint`` argument
|
||||
.. versionchanged:: 2.2.0 Raises ``FileNotFoundError`` instead of :exc:`pygame.error` if file cannot be found
|
||||
.. versionchanged:: 2.0.2 Added optional ``namehint`` argument
|
||||
|
||||
.. ## pygame.mixer.music.queue ##
|
||||
|
||||
@@ -262,7 +250,7 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
|
||||
| :sl:`have the music send an event when playback stops`
|
||||
| :sg:`set_endevent() -> None`
|
||||
| :sg:`set_endevent(type, /) -> None`
|
||||
| :sg:`set_endevent(type) -> None`
|
||||
|
||||
This causes pygame to signal (by means of the event queue) when the music is
|
||||
done playing. The argument determines the type of event that will be queued.
|
||||
@@ -284,31 +272,3 @@ For a complete list of supported file formats, see the :mod:`pygame.mixer` doc p
|
||||
.. ## pygame.mixer.music.get_endevent ##
|
||||
|
||||
.. ## pygame.mixer.music ##
|
||||
|
||||
.. function:: get_metadata
|
||||
|
||||
| :sl:`get metadata of the specified or currently loaded music stream`
|
||||
| :sg:`get_metadata() -> dict`
|
||||
| :sg:`get_metadata(filename) -> dict`
|
||||
| :sg:`get_metadata(fileobj, namehint="") -> dict`
|
||||
|
||||
If no arguments are passed returns a dictionary containing metadata
|
||||
of the currently loaded music stream, raises an exception if a music stream is not loaded.
|
||||
Available keys are ``"title"``, ``"album"``, ``"artist"``, ``"copyright"``.
|
||||
Values are strings containing corresponding retrieved metadata.
|
||||
If particular metadata was not found the value is an empty string.
|
||||
Here is an example:
|
||||
``{'title': 'Small Tone', 'album': 'Tones', 'artist': 'Audacity Generator', 'copyright': ''}``
|
||||
|
||||
Refer to the :func:`pygame.mixer.music.load` function for arguments regarding specifying a file or a file-like object
|
||||
whose metadata you want to retrieve. For this function all arguments are optional,
|
||||
however, specifying only the ``namehint`` will raise an exception.
|
||||
|
||||
Since the underlying functionality was introduced in version 2.6.0 of SDL_mixer,
|
||||
calling this function with an older version of SDL_mixer will return a dictionary
|
||||
with all values being set to empty strings. You can find your version of SDL_mixer
|
||||
by using :func:`pygame.mixer.get_sdl_mixer_version`.
|
||||
|
||||
.. versionadded:: 2.1.4
|
||||
|
||||
.. ## pygame.mixer.music.get_metadata ##
|
||||
@@ -42,7 +42,7 @@
|
||||
if pxarray[0, 0] == surface.map_rgb((0, 0, 255)):
|
||||
...
|
||||
|
||||
When assigning to a range of pixels, a non tuple sequence of colors or
|
||||
When assigning to a range of of pixels, a non tuple sequence of colors or
|
||||
a PixelArray can be used as the value. For a sequence, the length must
|
||||
match the PixelArray width.
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
pxarray[::2] = (0, 0, 0) # Same as [::2, :]
|
||||
|
||||
During its lifetime, the PixelArray locks the surface, thus you explicitly
|
||||
have to close() it once it's not used any more and the surface should perform
|
||||
have to close() it once its not used any more and the surface should perform
|
||||
operations in the same scope. It is best to use it as a context manager
|
||||
using the with PixelArray(surf) as pixel_array: style. So it works on pypy too.
|
||||
|
||||
@@ -100,19 +100,19 @@
|
||||
copying is implemented it is suggested PixelArray to PixelArray copies be
|
||||
only between surfaces of identical format.
|
||||
|
||||
.. versionaddedold:: 1.9.4
|
||||
.. versionadded:: 1.9.4
|
||||
|
||||
- close() method was added. For explicitly cleaning up.
|
||||
- being able to use PixelArray as a context manager for cleanup.
|
||||
- both of these are useful for when working without reference counting (pypy).
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
- array struct interface
|
||||
- transpose method
|
||||
- broadcasting for a length 1 dimension
|
||||
|
||||
.. versionchangedold:: 1.9.2
|
||||
.. versionchanged:: 1.9.2
|
||||
|
||||
- A 2D PixelArray can have a length 1 dimension.
|
||||
Only an integer index on a 2D PixelArray returns a 1D array.
|
||||
@@ -120,27 +120,23 @@
|
||||
is a sequence of colors.
|
||||
|
||||
|
||||
.. versionaddedold: 1.8.0
|
||||
.. versionadded: 1.8.0
|
||||
Subscript support
|
||||
|
||||
.. versionaddedold: 1.8.1
|
||||
.. versionadded: 1.8.1
|
||||
Methods :meth:`make_surface`, :meth:`replace`, :meth:`extract`, and
|
||||
:meth:`compare`
|
||||
|
||||
.. versionaddedold: 1.9.2
|
||||
.. versionadded: 1.9.2
|
||||
Properties :attr:`itemsize`, :attr:`ndim`, :attr:`shape`,
|
||||
and :attr:`strides`
|
||||
|
||||
.. versionaddedold: 1.9.2
|
||||
.. versionadded: 1.9.2
|
||||
Array struct interface
|
||||
|
||||
.. versionaddedold: 1.9.4
|
||||
.. versionadded: 1.9.4
|
||||
Methods :meth:`close`
|
||||
|
||||
.. versionchanged:: 2.5.8
|
||||
Fixed incorrect color matching and writing on 24-bit surfaces whose
|
||||
byte layout did not match the platform default.
|
||||
|
||||
.. attribute:: surface
|
||||
|
||||
| :sl:`Gets the Surface the PixelArray uses.`
|
||||
@@ -158,7 +154,7 @@
|
||||
This is the same as :meth:`Surface.get_bytesize` for the
|
||||
pixel array's surface.
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. attribute:: ndim
|
||||
|
||||
@@ -167,7 +163,7 @@
|
||||
|
||||
A pixel array can be 1 or 2 dimensional.
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. attribute:: shape
|
||||
|
||||
@@ -177,7 +173,7 @@
|
||||
A tuple or length :attr:`ndim` giving the length of each
|
||||
dimension. Analogous to :meth:`Surface.get_size`.
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. attribute:: strides
|
||||
|
||||
@@ -189,7 +185,7 @@
|
||||
of that index from the start of the array. A stride is negative
|
||||
for an array that has is inverted (has a negative step).
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. method:: make_surface
|
||||
|
||||
@@ -205,7 +201,7 @@
|
||||
# Create a new surface flipped around the vertical axis.
|
||||
sf = pxarray[:,::-1].make_surface ()
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## PixelArray.make_surface ##
|
||||
|
||||
@@ -226,11 +222,7 @@
|
||||
This is an in place operation that directly affects the pixels of the
|
||||
PixelArray.
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
|
||||
.. versionchanged:: 2.5.8
|
||||
Fixed incorrect color matching and writing on 24-bit surfaces whose
|
||||
byte layout did not match the platform default.
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## PixelArray.replace ##
|
||||
|
||||
@@ -249,7 +241,7 @@
|
||||
extraction to take pixels with a similar, but not exactly identical
|
||||
color, into account as well.
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## PixelArray.extract ##
|
||||
|
||||
@@ -269,7 +261,7 @@
|
||||
comparison to mark pixels with a similar, but not exactly identical
|
||||
color, as white.
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## PixelArray.compare ##
|
||||
|
||||
@@ -283,7 +275,7 @@
|
||||
If an array is one dimensional, then a length 1 x dimension is added,
|
||||
resulting in a 2D pixel array.
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. ## PixelArray.transpose ##
|
||||
|
||||
@@ -295,7 +287,7 @@
|
||||
This method is for explicitly closing the PixelArray, and releasing
|
||||
a lock on the Surface.
|
||||
|
||||
.. versionaddedold:: 1.9.4
|
||||
.. versionadded:: 1.9.4
|
||||
|
||||
.. ## PixelArray.close ##
|
||||
|
||||
|
||||
@@ -3,5 +3,102 @@
|
||||
:mod:`pygame.pixelcopy`
|
||||
=======================
|
||||
|
||||
.. autopgmodule:: pygame.pixelcopy
|
||||
:members:
|
||||
.. module:: pygame.pixelcopy
|
||||
:synopsis: pygame module for general pixel array copying
|
||||
|
||||
| :sl:`pygame module for general pixel array copying`
|
||||
|
||||
The ``pygame.pixelcopy`` module contains functions for copying between
|
||||
surfaces and objects exporting an array structure interface. It is a backend
|
||||
for :mod:`pygame.surfarray`, adding NumPy support. But pixelcopy is more
|
||||
general, and intended for direct use.
|
||||
|
||||
The array struct interface exposes an array's data in a standard way.
|
||||
It was introduced in NumPy. In Python 2.7 and above it is replaced by the
|
||||
new buffer protocol, though the buffer protocol is still a work in progress.
|
||||
The array struct interface, on the other hand, is stable and works with earlier
|
||||
Python versions. So for now the array struct interface is the predominate way
|
||||
pygame handles array introspection.
|
||||
|
||||
For 2d arrays of integer pixel values, the values are mapped to the
|
||||
pixel format of the related surface. To get the actual color of a pixel
|
||||
value use :meth:`pygame.Surface.unmap_rgb`. 2d arrays can only be used
|
||||
directly between surfaces having the same pixel layout.
|
||||
|
||||
New in pygame 1.9.2.
|
||||
|
||||
.. function:: surface_to_array
|
||||
|
||||
| :sl:`copy surface pixels to an array object`
|
||||
| :sg:`surface_to_array(array, surface, kind='P', opaque=255, clear=0) -> None`
|
||||
|
||||
The surface_to_array function copies pixels from a Surface object
|
||||
to a 2D or 3D array. Depending on argument ``kind`` and the target array
|
||||
dimension, a copy may be raw pixel value, RGB, a color component slice,
|
||||
or colorkey alpha transparency value. Recognized ``kind`` values are the
|
||||
single character codes 'P', 'R', 'G', 'B', 'A', and 'C'. Kind codes are case
|
||||
insensitive, so 'p' is equivalent to 'P'. The first two dimensions
|
||||
of the target must be the surface size (w, h).
|
||||
|
||||
The default 'P' kind code does a direct raw integer pixel (mapped) value
|
||||
copy to a 2D array and a 'RGB' pixel component (unmapped) copy to a 3D array
|
||||
having shape (w, h, 3). For an 8 bit colormap surface this means the
|
||||
table index is copied to a 2D array, not the table value itself. A 2D
|
||||
array's item size must be at least as large as the surface's pixel
|
||||
byte size. The item size of a 3D array must be at least one byte.
|
||||
|
||||
For the 'R', 'G', 'B', and 'A' copy kinds a single color component
|
||||
of the unmapped surface pixels are copied to the target 2D array.
|
||||
For kind 'A' and surfaces with source alpha (the surface was created with
|
||||
the SRCALPHA flag), has a colorkey
|
||||
(set with :meth:`Surface.set_colorkey() <pygame.Surface.set_colorkey>`),
|
||||
or has a blanket alpha
|
||||
(set with :meth:`Surface.set_alpha() <pygame.Surface.set_alpha>`)
|
||||
then the alpha values are those expected for a SDL surface.
|
||||
If a surface has no explicit alpha value, then the target array
|
||||
is filled with the value of the optional ``opaque`` surface_to_array
|
||||
argument (default 255: not transparent).
|
||||
|
||||
Copy kind 'C' is a special case for alpha copy of a source surface
|
||||
with colorkey. Unlike the 'A' color component copy, the ``clear``
|
||||
argument value is used for colorkey matches, ``opaque`` otherwise.
|
||||
By default, a match has alpha 0 (totally transparent), while everything
|
||||
else is alpha 255 (totally opaque). It is a more general implementation
|
||||
of :meth:`pygame.surfarray.array_colorkey`.
|
||||
|
||||
Specific to surface_to_array, a ValueError is raised for target arrays
|
||||
with incorrect shape or item size. A TypeError is raised for an incorrect
|
||||
kind code. Surface specific problems, such as locking, raise a pygame.error.
|
||||
|
||||
.. ## pygame.pixelcopy.surface_to_array ##
|
||||
|
||||
.. function:: array_to_surface
|
||||
|
||||
| :sl:`copy an array object to a surface`
|
||||
| :sg:`array_to_surface(<surface>, <array>) -> None`
|
||||
|
||||
See :func:`pygame.surfarray.blit_array`.
|
||||
|
||||
.. ## pygame.pixelcopy.array_to_surface ##
|
||||
|
||||
.. function:: map_array
|
||||
|
||||
| :sl:`copy an array to another array, using surface format`
|
||||
| :sg:`map_array(<array>, <array>, <surface>) -> None`
|
||||
|
||||
Map an array of color element values - (w, h, ..., 3) - to an array of
|
||||
pixels - (w, h) according to the format of <surface>.
|
||||
|
||||
.. ## pygame.pixelcopy.map_array ##
|
||||
|
||||
.. function:: make_surface
|
||||
|
||||
| :sl:`Copy an array to a new surface`
|
||||
| :sg:`pygame.pixelcopy.make_surface(array) -> Surface`
|
||||
|
||||
Create a new Surface that best resembles the data and format of the array.
|
||||
The array can be 2D or 3D with any sized integer values.
|
||||
|
||||
.. ## pygame.pixelcopy.make_surface ##
|
||||
|
||||
.. ## pygame.pixelcopy ##
|
||||
@@ -21,15 +21,6 @@ imported. Be aware that some of the pygame modules are considered *optional*,
|
||||
and may not be available. In that case, pygame will provide a placeholder
|
||||
object instead of the module, which can be used to test for availability.
|
||||
|
||||
.. data:: IS_CE
|
||||
|
||||
| :sl:`exists if current pygame is pygame-ce`
|
||||
| :sg:`IS_CE = 1`
|
||||
|
||||
Use ``getattr(pygame, "IS_CE", False)`` to check if current pygame is pygame-ce
|
||||
|
||||
.. ## pygame.IS_CE ##
|
||||
|
||||
.. function:: init
|
||||
|
||||
| :sl:`initialize all imported pygame modules`
|
||||
@@ -43,7 +34,7 @@ object instead of the module, which can be used to test for availability.
|
||||
fail.
|
||||
|
||||
You may want to initialize the different modules separately to speed up your
|
||||
program or to not use modules your game does not require.
|
||||
program or remove the modules your game does not require.
|
||||
|
||||
It is safe to call this ``init()`` more than once as repeated calls will have
|
||||
no effect. This is true even if you have ``pygame.quit()`` all the modules.
|
||||
@@ -74,7 +65,7 @@ object instead of the module, which can be used to test for availability.
|
||||
|
||||
Returns ``True`` if pygame is currently initialized.
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.get_init ##
|
||||
|
||||
@@ -106,7 +97,7 @@ object instead of the module, which can be used to test for availability.
|
||||
.. function:: set_error
|
||||
|
||||
| :sl:`set the current error message`
|
||||
| :sg:`set_error(error_msg, /) -> None`
|
||||
| :sg:`set_error(error_msg) -> None`
|
||||
|
||||
SDL maintains an internal error message. This message will usually be
|
||||
given to you when :func:`pygame.error` is raised, so this function will
|
||||
@@ -126,9 +117,9 @@ object instead of the module, which can be used to test for availability.
|
||||
It can be used to detect which features may or may not be
|
||||
available through pygame.
|
||||
|
||||
.. versionaddedold:: 1.7.0
|
||||
.. versionadded:: 1.7.0
|
||||
|
||||
.. versionchanged:: 2.1.4 ``linked`` keyword argument added
|
||||
.. versionchanged:: 2.2.0 ``linked`` keyword argument added
|
||||
|
||||
.. ## pygame.get_sdl_version ##
|
||||
|
||||
@@ -140,14 +131,14 @@ object instead of the module, which can be used to test for availability.
|
||||
Returns the byte order of the SDL library. It returns ``1234`` for little
|
||||
endian byte order and ``4321`` for big endian byte order.
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.get_sdl_byteorder ##
|
||||
|
||||
.. function:: register_quit
|
||||
|
||||
| :sl:`register a function to be called when pygame quits`
|
||||
| :sg:`register_quit(callable, /) -> None`
|
||||
| :sg:`register_quit(callable) -> None`
|
||||
|
||||
When :func:`pygame.quit` is called, all registered quit functions are
|
||||
called. Pygame modules do this automatically when they are initializing, so
|
||||
@@ -177,9 +168,7 @@ object instead of the module, which can be used to test for availability.
|
||||
This function is used in encoding file paths. Keyword arguments are
|
||||
supported.
|
||||
|
||||
This function is not needed for normal pygame-ce usage.
|
||||
|
||||
.. versionaddedold:: 1.9.2 (primarily for use in unit tests)
|
||||
.. versionadded:: 1.9.2 (primarily for use in unit tests)
|
||||
|
||||
.. ## pygame.encode_string ##
|
||||
|
||||
@@ -199,31 +188,10 @@ object instead of the module, which can be used to test for availability.
|
||||
codec as returned by ``sys.getfilesystemencoding()``. Keyword arguments are
|
||||
supported.
|
||||
|
||||
This function is not needed for normal pygame-ce usage.
|
||||
|
||||
.. versionaddedold:: 1.9.2 (primarily for use in unit tests)
|
||||
.. versionadded:: 1.9.2 (primarily for use in unit tests)
|
||||
|
||||
.. ## pygame.encode_file_path ##
|
||||
|
||||
.. function:: print_debug_info
|
||||
|
||||
| :sl:`retrieves useful information for debugging and issue-reporting purposes`
|
||||
| :sg:`print_debug_info(filename=None) -> None`
|
||||
|
||||
Constructs a string containing details on the system, the python interpreter,
|
||||
the pygame version, and the linked and compiled versions of the libraries that
|
||||
pygame wraps. If ``filename`` is ``None``, then the string is printed into the
|
||||
console. Otherwise, the debug string is written to the specified file.
|
||||
|
||||
.. note::
|
||||
If ``pygame.freetype`` has not been initialized with :func:`pygame.init` or :func:`pygame.freetype.init`,
|
||||
then the linked and compiled versions of FreeType will be "Unk" since this information is not
|
||||
available before initialization.
|
||||
|
||||
.. versionadded:: 2.1.4
|
||||
|
||||
.. ## pygame.print_debug_info ##
|
||||
|
||||
|
||||
:mod:`pygame.version`
|
||||
=====================
|
||||
@@ -261,7 +229,7 @@ check which version of pygame has been imported.
|
||||
print('Warning, older version of pygame (%s)' % pygame.version.ver)
|
||||
disable_advanced_features = True
|
||||
|
||||
.. versionaddedold:: 1.9.6 Attributes ``major``, ``minor``, and ``patch``.
|
||||
.. versionadded:: 1.9.6 Attributes ``major``, ``minor``, and ``patch``.
|
||||
|
||||
::
|
||||
|
||||
@@ -269,11 +237,11 @@ check which version of pygame has been imported.
|
||||
vernum.minor == vernum[1]
|
||||
vernum.patch == vernum[2]
|
||||
|
||||
.. versionchangedold:: 1.9.6
|
||||
.. versionchanged:: 1.9.6
|
||||
``str(pygame.version.vernum)`` returns a string like ``"2.0.0"`` instead
|
||||
of ``"(2, 0, 0)"``.
|
||||
|
||||
.. versionchangedold:: 1.9.6
|
||||
.. versionchanged:: 1.9.6
|
||||
``repr(pygame.version.vernum)`` returns a string like
|
||||
``"PygameVersion(major=2, minor=0, patch=0)"`` instead of ``"(2, 0, 0)"``.
|
||||
|
||||
@@ -288,13 +256,13 @@ check which version of pygame has been imported.
|
||||
package was built. If the identifier ends with a plus sign '+' then the
|
||||
package contains uncommitted changes. Please include this revision number
|
||||
in bug reports, especially for non-release pygame builds.
|
||||
|
||||
Important note: pygame development has moved to github, this variable is
|
||||
|
||||
Important note: pygame development has moved to github, this variable is
|
||||
obsolete now. As soon as development shifted to github, this variable started
|
||||
returning an empty string ``""``.
|
||||
returning an empty string ``""``.
|
||||
It has always been returning an empty string since ``v1.9.5``.
|
||||
|
||||
.. versionchangedold:: 1.9.5
|
||||
|
||||
.. versionchanged:: 1.9.5
|
||||
Always returns an empty string ``""``.
|
||||
|
||||
.. ## pygame.version.rev ##
|
||||
@@ -302,7 +270,7 @@ check which version of pygame has been imported.
|
||||
.. data:: SDL
|
||||
|
||||
| :sl:`tupled integers of the SDL library version`
|
||||
| :sg:`SDL = '(2, 26, 5)'`
|
||||
| :sg:`SDL = '(2, 0, 12)'`
|
||||
|
||||
This is the SDL library version represented as an extended tuple. It also has
|
||||
attributes 'major', 'minor' & 'patch' that can be accessed like this:
|
||||
@@ -317,9 +285,9 @@ check which version of pygame has been imported.
|
||||
::
|
||||
|
||||
>>> pygame.version.SDL
|
||||
SDLVersion(major=2, minor=26, patch=5)
|
||||
SDLVersion(major=2, minor=0, patch=12)
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## pygame.version.SDL ##
|
||||
|
||||
@@ -401,7 +369,7 @@ available. Must be set before calling :func:`pygame.display.set_mode()`.
|
||||
This makes pygame use the SDL2 blitter for all alpha
|
||||
blending. The SDL2 blitter is sometimes faster than
|
||||
the default blitter but uses a different formula so
|
||||
the final colors may differ. Must be set before
|
||||
the final colours may differ. Must be set before
|
||||
:func:`pygame.init()` is called.
|
||||
|
||||
|
|
||||
@@ -433,7 +401,7 @@ do this. Must be set before importing pygame.
|
||||
::
|
||||
|
||||
PYGAME_CAMERA -
|
||||
Set to "opencv"
|
||||
Set to "opencv" or "vidcapture"
|
||||
|
||||
Forces the library backend used in the camera
|
||||
module, overriding the platform defaults. Must
|
||||
@@ -535,27 +503,3 @@ By default, when the window is not in focus, input devices do not get
|
||||
updated. However, using this environment variable it is possible to get
|
||||
joystick updates even when the window is in the background. Must be set
|
||||
before calling :func:`pygame.init()` or :func:`pygame.joystick.init()`.
|
||||
|
||||
|
|
||||
|
||||
::
|
||||
|
||||
SDL_MOUSE_TOUCH_EVENTS
|
||||
Set to "1" to make mouse events also generate touch events.
|
||||
|
||||
Useful for testing touch events on desktop platforms (e.g. with a trackpad)
|
||||
where this is set to 0 by default.
|
||||
|
||||
|
|
||||
|
||||
::
|
||||
|
||||
"SDL_WINDOWS_DPI_AWARENESS"
|
||||
Set to "permonitorv2" on windows 10 (and later) to declare the pygame
|
||||
window DPI aware and ignore the desktop scaling, "permonitor" for
|
||||
windows 8.1 and later DPI awareness and "system" for windows Vista
|
||||
and later DPI awareness (not per monitor). Finally set it to "unaware",
|
||||
to have the pygame window scale with the desktop scaling.
|
||||
|
||||
This hint only affects the windows platform, other platforms can control DPI awareness
|
||||
via a Window creation keyword parameter called "allow_high_dpi".
|
||||
@@ -8,32 +8,18 @@
|
||||
.. class:: Rect
|
||||
|
||||
| :sl:`pygame object for storing rectangular coordinates`
|
||||
| :sg:`Rect(left, top, width, height, /) -> Rect`
|
||||
| :sg:`Rect((left, top), (width, height), /) -> Rect`
|
||||
| :sg:`Rect(object, /) -> Rect`
|
||||
| :sg:`Rect() -> Rect`
|
||||
| :sg:`FRect(left, top, width, height, /) -> FRect`
|
||||
| :sg:`FRect((left, top), (width, height), /) -> FRect`
|
||||
| :sg:`FRect(object, /) -> FRect`
|
||||
| :sg:`FRect() -> FRect`
|
||||
|
||||
.. versionadded:: 2.2
|
||||
Added ``FRect`` class that is functionally identical to ``Rect`` but uses
|
||||
floats instead of integers, enabling fractional precision and avoiding
|
||||
truncation error while being interchangeable with standard Rects.
|
||||
| :sg:`Rect(left, top, width, height) -> Rect`
|
||||
| :sg:`Rect((left, top), (width, height)) -> Rect`
|
||||
| :sg:`Rect(object) -> Rect`
|
||||
|
||||
Pygame uses Rect objects to store and manipulate rectangular areas. A Rect
|
||||
can be created from a combination of left, top, width, and height values.
|
||||
Rects can also be created from python objects that are already a Rect or
|
||||
Rects can also be created from Python objects that are already a Rect or
|
||||
have an attribute named "rect".
|
||||
|
||||
Any pygame function that requires a Rect argument also accepts any of these
|
||||
Any Pygame function that requires a Rect argument also accepts any of these
|
||||
values to construct a Rect. This makes it easier to create Rects on the fly
|
||||
as arguments to functions.
|
||||
|
||||
If no arguments are given, a zero Rect will be created (x=0, y=0, w=0, h=0).
|
||||
This will only work when using the Rect/FRect class and not with functions
|
||||
that require a Rect argument.
|
||||
as arguments for functions.
|
||||
|
||||
The Rect functions that change the position or size of a Rect return a new
|
||||
copy of the Rect with the affected changes. The original Rect is not
|
||||
@@ -51,7 +37,7 @@
|
||||
topleft, bottomleft, topright, bottomright
|
||||
midtop, midleft, midbottom, midright
|
||||
center, centerx, centery
|
||||
size, width, height, relcenter
|
||||
size, width, height
|
||||
w,h
|
||||
|
||||
All of these attributes can be assigned to:
|
||||
@@ -61,7 +47,7 @@
|
||||
rect1.right = 10
|
||||
rect2.center = (20,30)
|
||||
|
||||
Assigning to size, width, height, or relcenter changes the dimensions of the rectangle;
|
||||
Assigning to size, width or height changes the dimensions of the rectangle;
|
||||
all other assignments move the rectangle without resizing it. Notice that
|
||||
some attributes are integers and others are pairs of integers.
|
||||
|
||||
@@ -89,32 +75,13 @@
|
||||
r = Rect(0, 1, 2, 3)
|
||||
x, y, w, h = r
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
.. versionadded:: 1.9.2
|
||||
The Rect class can be subclassed. Methods such as ``copy()`` and ``move()``
|
||||
will recognize this and return instances of the subclass.
|
||||
However, the subclass's ``__init__()`` method is not called,
|
||||
and ``__new__()`` is assumed to take no arguments. So these methods should be
|
||||
overridden if any extra attributes need to be copied.
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
``relcenter`` added to Rect / FRect. This will return a tuple containing half
|
||||
the Rect's size; the center relative to the topleft of the Rect.
|
||||
Setting it to a ``Point`` will modify the size of the rect to 2 times
|
||||
the ``Point`` given. Below you can find a code example of how it should work:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> my_rect = pygame.Rect(0, 0, 2, 2)
|
||||
>>> my_rect.relcenter
|
||||
(1, 1)
|
||||
>>> my_rect.relcenter = (128, 128)
|
||||
>>> my_rect.size
|
||||
(256, 256)
|
||||
|
||||
Beware of non-integer relative centers! For Rects (but not FRects), ``relcenter``
|
||||
will truncate the numbers in the returned tuple.
|
||||
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`copy the rectangle`
|
||||
@@ -129,7 +96,7 @@
|
||||
.. method:: move
|
||||
|
||||
| :sl:`moves the rectangle`
|
||||
| :sg:`move(x, y, /) -> Rect`
|
||||
| :sg:`move(x, y) -> Rect`
|
||||
|
||||
Returns a new rectangle that is moved by the given offset. The x and y
|
||||
arguments can be any integer value, positive or negative.
|
||||
@@ -139,33 +106,16 @@
|
||||
.. method:: move_ip
|
||||
|
||||
| :sl:`moves the rectangle, in place`
|
||||
| :sg:`move_ip(x, y, /) -> None`
|
||||
| :sg:`move_ip(x, y) -> None`
|
||||
|
||||
Same as the ``Rect.move()`` method, but operates in place.
|
||||
|
||||
.. ## Rect.move_ip ##
|
||||
|
||||
.. method:: move_to
|
||||
|
||||
| :sl:`moves the rectangle to the specified position`
|
||||
| :sg:`move_to(**kwargs) -> Rect`
|
||||
|
||||
Returns a new rectangle that is moved to the given position and optionally resized.
|
||||
You must provide keyword arguments to the method such as ``center``, ``left``,
|
||||
``midbottom``, ``size`` that correspond to the rectangle's attributes and the
|
||||
method will return a new rectangle whose specified attributes are set to the given value.
|
||||
|
||||
It is similar to :meth:`Surface.get_rect` but instead of a calling it as a surface method
|
||||
you call it as a rectangle method.
|
||||
|
||||
.. versionadded:: 2.4.0
|
||||
|
||||
.. ## Rect.move_to ##
|
||||
|
||||
.. method:: inflate
|
||||
|
||||
| :sl:`grow or shrink the rectangle size`
|
||||
| :sg:`inflate(x, y, /) -> Rect`
|
||||
| :sg:`inflate(x, y) -> Rect`
|
||||
|
||||
Returns a new rectangle with the size changed by the given offset. The
|
||||
rectangle remains centered around its current center. Negative values
|
||||
@@ -177,7 +127,7 @@
|
||||
.. method:: inflate_ip
|
||||
|
||||
| :sl:`grow or shrink the rectangle size, in place`
|
||||
| :sg:`inflate_ip(x, y, /) -> None`
|
||||
| :sg:`inflate_ip(x, y) -> None`
|
||||
|
||||
Same as the ``Rect.inflate()`` method, but operates in place.
|
||||
|
||||
@@ -186,53 +136,49 @@
|
||||
.. method:: scale_by
|
||||
|
||||
| :sl:`scale the rectangle by given a multiplier`
|
||||
| :sg:`scale_by(scale_by) -> Rect`
|
||||
| :sg:`scale_by(x, y) -> Rect`
|
||||
| :sg:`scale_by(scalar) -> Rect`
|
||||
| :sg:`scale_by(scalex, scaley) -> Rect`
|
||||
|
||||
Returns a new rectangle with the size scaled by the given multipliers.
|
||||
The rectangle remains centered around its current center. A single
|
||||
The rectangle remains centered around its current center. A single
|
||||
scalar or separate width and height scalars are allowed. Values above
|
||||
one will increase the size of the rectangle, whereas values between
|
||||
zero and one will decrease the size of the rectangle.
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. versionchanged:: 2.5.2 the argument ``scale_by`` can now be passed as a positional argument
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.scale_by ##
|
||||
|
||||
.. method:: scale_by_ip
|
||||
|
||||
| :sl:`grow or shrink the rectangle size, in place`
|
||||
| :sg:`scale_by_ip(scale_by) -> None`
|
||||
| :sg:`scale_by_ip(x, y) -> None`
|
||||
| :sg:`scale_by_ip(scalar) -> None`
|
||||
| :sg:`scale_by_ip(scalex, scaley) -> None`
|
||||
|
||||
Same as the ``Rect.scale_by()`` method, but operates in place.
|
||||
|
||||
.. versionadded:: 2.3.1
|
||||
|
||||
.. versionchanged:: 2.5.2 the argument ``scale_by`` can now be passed as a positional argument
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.scale_by_ip ##
|
||||
|
||||
.. method:: update
|
||||
|
||||
| :sl:`sets the position and size of the rectangle`
|
||||
| :sg:`update(left, top, width, height, /) -> None`
|
||||
| :sg:`update((left, top), (width, height), /) -> None`
|
||||
| :sg:`update(object, /) -> None`
|
||||
| :sg:`update(left, top, width, height) -> None`
|
||||
| :sg:`update((left, top), (width, height)) -> None`
|
||||
| :sg:`update(object) -> None`
|
||||
|
||||
Sets the position and size of the rectangle, in place. See
|
||||
parameters for :meth:`pygame.Rect` for the parameters of this function.
|
||||
|
||||
.. versionaddedold:: 2.0.1
|
||||
.. versionadded:: 2.0.1
|
||||
|
||||
.. ## Rect.update ##
|
||||
|
||||
.. method:: clamp
|
||||
|
||||
| :sl:`moves the rectangle inside another`
|
||||
| :sg:`clamp(rect, /) -> Rect`
|
||||
| :sg:`clamp(Rect) -> Rect`
|
||||
|
||||
Returns a new rectangle that is moved to be completely inside the
|
||||
argument Rect. If the rectangle is too large to fit inside, it is
|
||||
@@ -243,7 +189,7 @@
|
||||
.. method:: clamp_ip
|
||||
|
||||
| :sl:`moves the rectangle inside another, in place`
|
||||
| :sg:`clamp_ip(rect, /) -> None`
|
||||
| :sg:`clamp_ip(Rect) -> None`
|
||||
|
||||
Same as the ``Rect.clamp()`` method, but operates in place.
|
||||
|
||||
@@ -252,7 +198,7 @@
|
||||
.. method:: clip
|
||||
|
||||
| :sl:`crops a rectangle inside another`
|
||||
| :sg:`clip(rect, /) -> Rect`
|
||||
| :sg:`clip(Rect) -> Rect`
|
||||
|
||||
Returns a new rectangle that is cropped to be completely inside the
|
||||
argument Rect. If the two rectangles do not overlap to begin with, a Rect
|
||||
@@ -263,14 +209,14 @@
|
||||
.. method:: clipline
|
||||
|
||||
| :sl:`crops a line inside a rectangle`
|
||||
| :sg:`clipline(x1, y1, x2, y2, /) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline(x1, y1, x2, y2, /) -> ()`
|
||||
| :sg:`clipline((x1, y1), (x2, y2), /) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline((x1, y1), (x2, y2), /) -> ()`
|
||||
| :sg:`clipline((x1, y1, x2, y2), /) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline((x1, y1, x2, y2), /) -> ()`
|
||||
| :sg:`clipline(((x1, y1), (x2, y2)), /) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline(((x1, y1), (x2, y2)), /) -> ()`
|
||||
| :sg:`clipline(x1, y1, x2, y2) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline(x1, y1, x2, y2) -> ()`
|
||||
| :sg:`clipline((x1, y1), (x2, y2)) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline((x1, y1), (x2, y2)) -> ()`
|
||||
| :sg:`clipline((x1, y1, x2, y2)) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline((x1, y1, x2, y2)) -> ()`
|
||||
| :sg:`clipline(((x1, y1), (x2, y2))) -> ((cx1, cy1), (cx2, cy2))`
|
||||
| :sg:`clipline(((x1, y1), (x2, y2))) -> ()`
|
||||
|
||||
Returns the coordinates of a line that is cropped to be completely inside
|
||||
the rectangle. If the line does not overlap the rectangle, then an empty
|
||||
@@ -315,14 +261,16 @@
|
||||
else:
|
||||
print("No clipping. The line is fully outside the rect.")
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
|
||||
.. ## Rect.clipline ##
|
||||
|
||||
.. method:: union
|
||||
|
||||
| :sl:`joins two rectangles into one`
|
||||
| :sg:`union(rect, /) -> Rect`
|
||||
| :sg:`union(Rect) -> Rect`
|
||||
|
||||
Returns a new rectangle that completely covers the area of the two
|
||||
provided rectangles. There may be area inside the new Rect that is not
|
||||
@@ -333,7 +281,7 @@
|
||||
.. method:: union_ip
|
||||
|
||||
| :sl:`joins two rectangles into one, in place`
|
||||
| :sg:`union_ip(rect, /) -> None`
|
||||
| :sg:`union_ip(Rect) -> None`
|
||||
|
||||
Same as the ``Rect.union()`` method, but operates in place.
|
||||
|
||||
@@ -342,25 +290,29 @@
|
||||
.. method:: unionall
|
||||
|
||||
| :sl:`the union of many rectangles`
|
||||
| :sg:`unionall(rect_sequence, /) -> Rect`
|
||||
| :sg:`unionall(Rect_sequence) -> Rect`
|
||||
|
||||
Returns the union of one rectangle with a sequence of many rectangles.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.unionall ##
|
||||
|
||||
.. method:: unionall_ip
|
||||
|
||||
| :sl:`the union of many rectangles, in place`
|
||||
| :sg:`unionall_ip(rect_sequence, /) -> None`
|
||||
| :sg:`unionall_ip(Rect_sequence) -> None`
|
||||
|
||||
The same as the ``Rect.unionall()`` method, but operates in place.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.unionall_ip ##
|
||||
|
||||
.. method:: fit
|
||||
|
||||
| :sl:`resize and move a rectangle with aspect ratio`
|
||||
| :sg:`fit(rect, /) -> Rect`
|
||||
| :sg:`fit(Rect) -> Rect`
|
||||
|
||||
Returns a new rectangle that is moved and resized to fit another. The
|
||||
aspect ratio of the original Rect is preserved, so the new rectangle may
|
||||
@@ -382,7 +334,7 @@
|
||||
.. method:: contains
|
||||
|
||||
| :sl:`test if one rectangle is inside another`
|
||||
| :sg:`contains(rect, /) -> bool`
|
||||
| :sg:`contains(Rect) -> bool`
|
||||
|
||||
Returns true when the argument is completely inside the Rect.
|
||||
|
||||
@@ -391,8 +343,8 @@
|
||||
.. method:: collidepoint
|
||||
|
||||
| :sl:`test if a point is inside a rectangle`
|
||||
| :sg:`collidepoint(x, y, /) -> bool`
|
||||
| :sg:`collidepoint((x, y), /) -> bool`
|
||||
| :sg:`collidepoint(x, y) -> bool`
|
||||
| :sg:`collidepoint((x,y)) -> bool`
|
||||
|
||||
Returns true if the given point is inside the rectangle. A point along
|
||||
the right or bottom edge is not considered to be inside the rectangle.
|
||||
@@ -406,7 +358,7 @@
|
||||
.. method:: colliderect
|
||||
|
||||
| :sl:`test if two rectangles overlap`
|
||||
| :sg:`colliderect(rect, /) -> bool`
|
||||
| :sg:`colliderect(Rect) -> bool`
|
||||
|
||||
Returns true if any portion of either rectangle overlap (except the
|
||||
top+bottom or left+right edges).
|
||||
@@ -420,18 +372,20 @@
|
||||
.. method:: collidelist
|
||||
|
||||
| :sl:`test if one rectangle in a list intersects`
|
||||
| :sg:`collidelist(list, /) -> index`
|
||||
| :sg:`collidelist(list) -> index`
|
||||
|
||||
Test whether the rectangle collides with any in a sequence of rectangles.
|
||||
The index of the first collision found is returned. If no collisions are
|
||||
found an index of -1 is returned.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.collidelist ##
|
||||
|
||||
.. method:: collidelistall
|
||||
|
||||
| :sl:`test if all rectangles in a list intersect`
|
||||
| :sg:`collidelistall(list, /) -> indices`
|
||||
| :sg:`collidelistall(list) -> indices`
|
||||
|
||||
Returns a list of all the indices that contain rectangles that collide
|
||||
with the Rect. If no intersecting rectangles are found, an empty list is
|
||||
@@ -440,46 +394,46 @@
|
||||
Not only Rects are valid arguments, but these are all valid calls:
|
||||
|
||||
.. code-block:: python
|
||||
:linenos:
|
||||
|
||||
|
||||
Rect = pygame.Rect
|
||||
r = Rect(0, 0, 10, 10)
|
||||
|
||||
|
||||
list_of_rects = [Rect(1, 1, 1, 1), Rect(2, 2, 2, 2)]
|
||||
indices0 = r.collidelistall(list_of_rects)
|
||||
|
||||
|
||||
list_of_lists = [[1, 1, 1, 1], [2, 2, 2, 2]]
|
||||
indices1 = r.collidelistall(list_of_lists)
|
||||
|
||||
|
||||
list_of_tuples = [(1, 1, 1, 1), (2, 2, 2, 2)]
|
||||
indices2 = r.collidelistall(list_of_tuples)
|
||||
|
||||
|
||||
list_of_double_tuples = [((1, 1), (1, 1)), ((2, 2), (2, 2))]
|
||||
indices3 = r.collidelistall(list_of_double_tuples)
|
||||
|
||||
|
||||
class ObjectWithRectAttribute(object):
|
||||
def __init__(self, r):
|
||||
self.rect = r
|
||||
|
||||
|
||||
list_of_object_with_rect_attribute = [
|
||||
ObjectWithRectAttribute(Rect(1, 1, 1, 1)),
|
||||
ObjectWithRectAttribute(Rect(2, 2, 2, 2)),
|
||||
]
|
||||
indices4 = r.collidelistall(list_of_object_with_rect_attribute)
|
||||
|
||||
|
||||
class ObjectWithCallableRectAttribute(object):
|
||||
def __init__(self, r):
|
||||
self._rect = r
|
||||
|
||||
|
||||
def rect(self):
|
||||
return self._rect
|
||||
|
||||
|
||||
list_of_object_with_callable_rect = [
|
||||
ObjectWithCallableRectAttribute(Rect(1, 1, 1, 1)),
|
||||
ObjectWithCallableRectAttribute(Rect(2, 2, 2, 2)),
|
||||
]
|
||||
indices5 = r.collidelistall(list_of_object_with_callable_rect)
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.collidelistall ##
|
||||
|
||||
@@ -489,6 +443,9 @@
|
||||
| :sg:`collideobjects(rect_list) -> object`
|
||||
| :sg:`collideobjects(obj_list, key=func) -> object`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave collideobjects feedback with authors <https://github.com/pygame/pygame/pull/3026>`_
|
||||
|
||||
Test whether the rectangle collides with any object in the sequence.
|
||||
The object of the first collision found is returned. If no collisions are
|
||||
found then ``None`` is returned
|
||||
@@ -499,7 +456,6 @@
|
||||
of them.
|
||||
|
||||
.. code-block:: python
|
||||
:linenos:
|
||||
|
||||
r = Rect(1, 1, 10, 10)
|
||||
|
||||
@@ -547,6 +503,9 @@
|
||||
| :sg:`collideobjectsall(rect_list) -> objects`
|
||||
| :sg:`collideobjectsall(obj_list, key=func) -> objects`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave collideobjectsall feedback with authors <https://github.com/pygame/pygame/pull/3026>`_
|
||||
|
||||
Returns a list of all the objects that contain rectangles that collide
|
||||
with the Rect. If no intersecting objects are found, an empty list is
|
||||
returned.
|
||||
@@ -557,7 +516,6 @@
|
||||
of them.
|
||||
|
||||
.. code-block:: python
|
||||
:linenos:
|
||||
|
||||
r = Rect(1, 1, 10, 10)
|
||||
|
||||
@@ -604,14 +562,14 @@
|
||||
.. method:: collidedict
|
||||
|
||||
| :sl:`test if one rectangle in a dictionary intersects`
|
||||
| :sg:`collidedict(rect_dict) -> (key, value)`
|
||||
| :sg:`collidedict(rect_dict) -> None`
|
||||
| :sg:`collidedict(rect_dict, values=False) -> (key, value)`
|
||||
| :sg:`collidedict(rect_dict, values=False) -> None`
|
||||
| :sg:`collidedict(dict) -> (key, value)`
|
||||
| :sg:`collidedict(dict) -> None`
|
||||
| :sg:`collidedict(dict, use_values=0) -> (key, value)`
|
||||
| :sg:`collidedict(dict, use_values=0) -> None`
|
||||
|
||||
Returns the first key and value pair that intersects with the calling
|
||||
Rect object. If no collisions are found, ``None`` is returned. If
|
||||
``values`` is False (default) then the dict's keys will be used in the
|
||||
``use_values`` is 0 (default) then the dict's keys will be used in the
|
||||
collision detection, otherwise the dict's values will be used.
|
||||
|
||||
.. note ::
|
||||
@@ -619,22 +577,19 @@
|
||||
hashable), so they must be converted to a tuple.
|
||||
e.g. ``rect.collidedict({tuple(key_rect) : value})``
|
||||
|
||||
.. versionchanged:: 2.4.0
|
||||
``values`` is now accepted as a keyword argument. Type Stub updated
|
||||
to use boolean ``True`` or ``False``, but any truthy or falsy value
|
||||
will be valid.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.collidedict ##
|
||||
|
||||
.. method:: collidedictall
|
||||
|
||||
| :sl:`test if all rectangles in a dictionary intersect`
|
||||
| :sg:`collidedictall(rect_dict) -> [(key, value), ...]`
|
||||
| :sg:`collidedictall(rect_dict, values=False) -> [(key, value), ...]`
|
||||
| :sg:`collidedictall(dict) -> [(key, value), ...]`
|
||||
| :sg:`collidedictall(dict, use_values=0) -> [(key, value), ...]`
|
||||
|
||||
Returns a list of all the key and value pairs that intersect with the
|
||||
calling Rect object. If no collisions are found an empty list is returned.
|
||||
If ``values`` is False (default) then the dict's keys will be used in the
|
||||
If ``use_values`` is 0 (default) then the dict's keys will be used in the
|
||||
collision detection, otherwise the dict's values will be used.
|
||||
|
||||
.. note ::
|
||||
@@ -642,11 +597,8 @@
|
||||
hashable), so they must be converted to a tuple.
|
||||
e.g. ``rect.collidedictall({tuple(key_rect) : value})``
|
||||
|
||||
.. versionchanged:: 2.4.0
|
||||
``values`` is now accepted as a keyword argument. Type Stub updated
|
||||
to use boolean ``True`` or ``False``, but any truthy or falsy value
|
||||
will be valid.
|
||||
|
||||
.. versionchanged:: 2.5.0 Added support for keyword arguments.
|
||||
|
||||
.. ## Rect.collidedictall ##
|
||||
|
||||
.. ## pygame.Rect ##
|
||||
@@ -3,10 +3,13 @@
|
||||
:mod:`pygame.scrap`
|
||||
===================
|
||||
|
||||
.. autopgmodule:: pygame.scrap
|
||||
:members:
|
||||
.. module:: pygame.scrap
|
||||
:synopsis: pygame module for clipboard support.
|
||||
|
||||
**THE BELOW INFORMATION IS DEPRECATED IN PYGAME 2.2.0 AND WILL BE REMOVED IN THE FUTURE.**
|
||||
| :sl:`pygame module for clipboard support.`
|
||||
|
||||
**EXPERIMENTAL!**: This API may change or disappear in later pygame releases. If
|
||||
you use this, your code may break with the next pygame release.
|
||||
|
||||
The scrap module is for transferring data to/from the clipboard. This allows
|
||||
for cutting and pasting data between pygame and other applications. Some basic
|
||||
@@ -14,33 +17,57 @@ data (MIME) types are defined and registered:
|
||||
|
||||
::
|
||||
|
||||
"text/plain" Plain text (also accessible via the SCRAP_TEXT constant)
|
||||
"text/plain;charset=utf-8" UTF-8 encoded text
|
||||
pygame string
|
||||
constant value description
|
||||
--------------------------------------------------
|
||||
SCRAP_TEXT "text/plain" plain text
|
||||
SCRAP_BMP "image/bmp" BMP encoded image data
|
||||
SCRAP_PBM "image/pbm" PBM encoded image data
|
||||
SCRAP_PPM "image/ppm" PPM encoded image data
|
||||
|
||||
``pygame.SCRAP_PPM``, ``pygame.SCRAP_PBM`` and ``pygame.SCRAP_BMP`` are
|
||||
suitable for surface buffers to be shared with other applications.
|
||||
``pygame.SCRAP_TEXT`` is an alias for the plain text clipboard type.
|
||||
|
||||
Depending on the platform, additional types are automatically registered when
|
||||
data is placed into the clipboard to guarantee a consistent sharing behaviour
|
||||
with other applications. The following listed types can be used as strings to
|
||||
be passed to the respective :mod:`pygame.scrap` module functions.
|
||||
|
||||
For **Windows** platforms, these additional types are supported automatically
|
||||
and resolve to their internal definitions:
|
||||
|
||||
::
|
||||
|
||||
"image/bmp" BMP encoded image data (also accessible via the SCRAP_BMP constant)
|
||||
"text/plain;charset=utf-8" UTF-8 encoded text
|
||||
"audio/wav" WAV encoded audio
|
||||
"image/tiff" TIFF encoded image data
|
||||
|
||||
For **X11** platforms, these additional types are supported automatically and
|
||||
resolve to their internal definitions:
|
||||
|
||||
User defined types can be used on **Windows**, but the data might not be
|
||||
accessible by other applications unless they know what data type to look for.
|
||||
::
|
||||
|
||||
"text/plain;charset=utf-8" UTF-8 encoded text
|
||||
"UTF8_STRING" UTF-8 encoded text
|
||||
"COMPOUND_TEXT" COMPOUND text
|
||||
|
||||
User defined types can be used, but the data might not be accessible by other
|
||||
applications unless they know what data type to look for.
|
||||
Example: Data placed into the clipboard by
|
||||
``pygame.scrap.put("my_data_type", byte_data)`` can only be accessed by
|
||||
applications which query the clipboard for the ``"my_data_type"`` data type.
|
||||
|
||||
For an example of how the scrap module works refer to the examples page
|
||||
(:func:`pygame.examples.scrap_clipboard.main`) or the code directly in GitHub
|
||||
(`pygame/examples/scrap_clipboard.py <https://github.com/pygame-community/pygame-ce/blob/main/examples/scrap_clipboard.py>`_).
|
||||
(`pygame/examples/scrap_clipboard.py <https://github.com/pygame/pygame/blob/main/examples/scrap_clipboard.py>`_).
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. note::
|
||||
Non-text data is only supported on Windows. On other platforms only text is supported.
|
||||
The scrap module is currently only supported for Windows, X11 and Mac OS X.
|
||||
On Mac OS X only text works at the moment - other types may be supported in
|
||||
future releases.
|
||||
|
||||
.. function:: init
|
||||
|
||||
@@ -54,8 +81,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
.. note:: The scrap module requires :func:`pygame.display.set_mode()` be
|
||||
called before being initialized.
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
.. ## pygame.scrap.init ##
|
||||
|
||||
.. function:: get_init
|
||||
@@ -69,15 +94,14 @@ For an example of how the scrap module works refer to the examples page
|
||||
initialized, ``False`` otherwise
|
||||
:rtype: bool
|
||||
|
||||
.. versionaddedold:: 1.9.5
|
||||
.. deprecated:: 2.2.0
|
||||
.. versionadded:: 1.9.5
|
||||
|
||||
.. ## pygame.scrap.get_init ##
|
||||
|
||||
.. function:: get
|
||||
|
||||
| :sl:`Gets the data for the specified type from the clipboard.`
|
||||
| :sg:`get(type, /) -> bytes | None`
|
||||
| :sg:`get(type) -> bytes | None`
|
||||
|
||||
Retrieves the data for the specified type from the clipboard. The data is
|
||||
returned as a byte string and might need further processing (such as
|
||||
@@ -89,8 +113,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
no data for the given type is available
|
||||
:rtype: bytes | None
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
::
|
||||
|
||||
text = pygame.scrap.get(pygame.SCRAP_TEXT)
|
||||
@@ -115,8 +137,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
is no data in the clipboard an empty list is returned
|
||||
:rtype: list
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
::
|
||||
|
||||
for t in pygame.scrap.get_types():
|
||||
@@ -129,13 +149,13 @@ For an example of how the scrap module works refer to the examples page
|
||||
.. function:: put
|
||||
|
||||
| :sl:`Places data into the clipboard.`
|
||||
| :sg:`put(type, data, /) -> None`
|
||||
| :sg:`put(type, data) -> None`
|
||||
|
||||
Places data for a given clipboard type into the clipboard. The data must
|
||||
be a string buffer. The type is a string identifying the type of data to be
|
||||
placed into the clipboard. This can be one of the predefined
|
||||
``pygame.SCRAP_BMP`` or ``pygame.SCRAP_TEXT`` values or a user defined
|
||||
string identifier.
|
||||
``pygame.SCRAP_PBM``, ``pygame.SCRAP_PPM``, ``pygame.SCRAP_BMP`` or
|
||||
``pygame.SCRAP_TEXT`` values or a user defined string identifier.
|
||||
|
||||
:param string type: type identifier of the data to be placed into the
|
||||
clipboard
|
||||
@@ -144,8 +164,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
|
||||
:raises pygame.error: if unable to put the data into the clipboard
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
::
|
||||
|
||||
with open("example.bmp", "rb") as fp:
|
||||
@@ -160,7 +178,7 @@ For an example of how the scrap module works refer to the examples page
|
||||
.. function:: contains
|
||||
|
||||
| :sl:`Checks whether data for a given type is available in the clipboard.`
|
||||
| :sg:`contains(type, /) -> bool`
|
||||
| :sg:`contains(type) -> bool`
|
||||
|
||||
Checks whether data for the given type is currently available in the
|
||||
clipboard.
|
||||
@@ -171,8 +189,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
clipboard, ``False`` otherwise
|
||||
:rtype: bool
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
::
|
||||
|
||||
if pygame.scrap.contains(pygame.SCRAP_TEXT):
|
||||
@@ -194,8 +210,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
application, ``False`` if the pygame application still owns the clipboard
|
||||
:rtype: bool
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
::
|
||||
|
||||
if pygame.scrap.lost():
|
||||
@@ -206,7 +220,7 @@ For an example of how the scrap module works refer to the examples page
|
||||
.. function:: set_mode
|
||||
|
||||
| :sl:`Sets the clipboard access mode.`
|
||||
| :sg:`set_mode(mode, /) -> None`
|
||||
| :sg:`set_mode(mode) -> None`
|
||||
|
||||
Sets the access mode for the clipboard. This is only of interest for X11
|
||||
environments where clipboard modes ``pygame.SCRAP_SELECTION`` (for mouse
|
||||
@@ -221,7 +235,6 @@ For an example of how the scrap module works refer to the examples page
|
||||
:raises ValueError: if the ``mode`` parameter is not
|
||||
``pygame.SCRAP_CLIPBOARD`` or ``pygame.SCRAP_SELECTION``
|
||||
|
||||
.. deprecated:: 2.2.0
|
||||
|
||||
.. ## pygame.scrap.set_mode ##
|
||||
|
||||
.. ## pygame.scrap ##
|
||||
@@ -8,6 +8,9 @@
|
||||
|
||||
| :sl:`Pygame module to work with controllers.`
|
||||
|
||||
.. note::
|
||||
Use import pygame._sdl2.controller before using this module.
|
||||
|
||||
This module offers control over common controller types like the dualshock 4 or
|
||||
the xbox 360 controllers: They have two analog sticks, two triggers, two shoulder buttons,
|
||||
a dpad, 4 buttons on the side, 2 (or 3) buttons in the middle.
|
||||
@@ -19,7 +22,11 @@ always the leftmost button of the 4 buttons on the right.
|
||||
Controllers can generate the following events::
|
||||
|
||||
CONTROLLERAXISMOTION, CONTROLLERBUTTONDOWN, CONTROLLERBUTTONUP,
|
||||
CONTROLLERDEVICEREMAPPED, CONTROLLERDEVICEADDED, CONTROLLERDEVICEREMOVED,
|
||||
CONTROLLERDEVICEREMAPPED, CONTROLLERDEVICEADDED, CONTROLLERDEVICEREMOVED
|
||||
|
||||
Additionally if pygame is built with SDL 2.0.14 or higher the following events can also be generated
|
||||
(to get the version of sdl pygame is built with use :meth:`pygame.version.SDL`)::
|
||||
|
||||
CONTROLLERTOUCHPADDOWN, CONTROLLERTOUCHPADMOTION, CONTROLLERTOUCHPADUP
|
||||
|
||||
These events can be enabled/disabled by :meth:`pygame._sdl2.controller.set_eventstate`
|
||||
@@ -29,7 +36,7 @@ events related to controllers.
|
||||
.. note::
|
||||
See the :mod:`pygame.joystick` for a more versatile but more advanced api.
|
||||
|
||||
.. versionaddedold:: 2 This module requires SDL2.
|
||||
.. versionadded:: 2 This module requires SDL2.
|
||||
|
||||
.. function:: init
|
||||
|
||||
@@ -68,7 +75,7 @@ events related to controllers.
|
||||
.. note::
|
||||
Controllers can still generate joystick events, which will not be toggled by this function.
|
||||
|
||||
.. versionchangedold:: 2.0.2: Changed return type from int to None
|
||||
.. versionchanged:: 2.0.2: Changed return type from int to None
|
||||
|
||||
.. ## pygame._sdl2.controller.set_eventstate ##
|
||||
|
||||
@@ -80,7 +87,7 @@ events related to controllers.
|
||||
Returns the current state of events related to controllers, True meaning
|
||||
events will be posted.
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## pygame._sdl2.controller.get_eventstate ##
|
||||
|
||||
@@ -123,14 +130,6 @@ events related to controllers.
|
||||
``pygame._sdl2.controller.from_joystick``. Controllers are
|
||||
initialized on creation.
|
||||
|
||||
.. method:: init
|
||||
|
||||
| :sl:`Initialize the Controller`
|
||||
| :sg:`init() -> None`
|
||||
|
||||
Initialize a controller object. This should not be used much, since
|
||||
Controllers are initialised on creation.
|
||||
|
||||
.. method:: quit
|
||||
|
||||
| :sl:`uninitialize the Controller`
|
||||
@@ -224,7 +223,7 @@ events related to controllers.
|
||||
Returns a dict containing the mapping of the Controller. For more
|
||||
information see :meth:`Controller.set_mapping()`
|
||||
|
||||
.. versionchangedold:: 2.0.2: Return type changed from ``str`` to ``dict``
|
||||
.. versionchanged:: 2.0.2: Return type changed from ``str`` to ``dict``
|
||||
|
||||
.. ## Controller.get_mapping ##
|
||||
|
||||
@@ -233,7 +232,7 @@ events related to controllers.
|
||||
| :sl:`Assign a mapping to the controller`
|
||||
| :sg:`set_mapping(mapping) -> int`
|
||||
|
||||
Rebind buttons, axes, triggers and dpads. The mapping should be a
|
||||
Rebind buttons, axes, triggers and dpads. The mapping should be a
|
||||
dict containing all buttons, hats and axes. The easiest way to get this
|
||||
is to use the dict returned by :meth:`Controller.get_mapping`. To edit
|
||||
this mapping assign a value to the original button. The value of the
|
||||
@@ -253,8 +252,8 @@ events related to controllers.
|
||||
|
||||
The function will return 1 if a new mapping is added or 0 if an existing one is updated.
|
||||
|
||||
.. versionchangedold:: 2.0.2: Renamed from ``add_mapping`` to ``set_mapping``
|
||||
.. versionchangedold:: 2.0.2: Argument type changed from ``str`` to ``dict``
|
||||
.. versionchanged:: 2.0.2: Renamed from ``add_mapping`` to ``set_mapping``
|
||||
.. versionchanged:: 2.0.2: Argument type changed from ``str`` to ``dict``
|
||||
|
||||
.. ## Controller.set_mapping ##
|
||||
|
||||
@@ -270,9 +269,9 @@ events related to controllers.
|
||||
playing, then it will be overwritten.
|
||||
|
||||
Returns True if the rumble was played successfully or False if the
|
||||
controller does not support it.
|
||||
controller does not support it or :meth:`pygame.version.SDL` is below 2.0.9.
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## Controller.rumble ##
|
||||
|
||||
@@ -284,24 +283,8 @@ events related to controllers.
|
||||
Stops any rumble effect playing on the controller. See
|
||||
:meth:`Controller.rumble` for more information.
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## Controller.stop_rumble ##
|
||||
|
||||
.. method:: set_led
|
||||
|
||||
| :sl:`Set the LED color of the controller`
|
||||
| :sg:`set_led(color_arg) -> bool`
|
||||
|
||||
Set the color of the LED on the controller. The argument is a
|
||||
``pygame.Color``-compatible value (alpha being ignored). The
|
||||
controller's LED, if it has one, will be set to the input color.
|
||||
If the controller does not have an addressable LED, then this
|
||||
method will do nothing and return False. Returns True if the
|
||||
LED was set successfully.
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
|
||||
.. ## Controller.set_led ##
|
||||
|
||||
.. ## pygame._sdl2.controller ##
|
||||
@@ -7,543 +7,328 @@
|
||||
:synopsis: Experimental pygame module for porting new SDL video systems
|
||||
|
||||
.. warning::
|
||||
This module isn't ready for prime time yet, it's still in development.
|
||||
These docs are primarily meant to help the pygame developers and
|
||||
super-early adopters who are in communication with the developers.
|
||||
This API will change.
|
||||
This module isn't ready for prime time yet, it's still in development.
|
||||
These docs are primarily meant to help the pygame developers and super-early adopters
|
||||
who are in communication with the developers. This API will change.
|
||||
|
||||
| :sl:`Experimental pygame module for porting new SDL video systems`
|
||||
|
||||
.. class:: RendererDriverInfo
|
||||
|
||||
| :sl:`pygame object encapsulating Renderer driver information`
|
||||
|
||||
Attributes:
|
||||
|
||||
::
|
||||
|
||||
name
|
||||
flags
|
||||
num_texture_formats
|
||||
max_texture_width
|
||||
max_texture_height
|
||||
|
||||
.. function:: get_drivers
|
||||
|
||||
| :sl:`Yield info about the rendering drivers available for Renderer objects`
|
||||
| :sg:`get_drivers() -> Iterator[RendererDriverInfo]`
|
||||
|
||||
.. function:: get_grabbed_window
|
||||
|
||||
| :sl:`Get the window with input grab enabled`
|
||||
| :sg:`get_grabbed_window() -> Window or None`
|
||||
|
||||
Gets the :class:`Window` with input grab enabled, if input is grabbed,
|
||||
otherwise ``None`` is returned.
|
||||
|
||||
|
||||
.. class:: Window
|
||||
|
||||
| :sl:`pygame object that represents a window`
|
||||
| :sg:`Window(title="pygame", size=(640, 480), position=None, fullscreen=False, fullscreen_desktop=False, keywords) -> Window`
|
||||
|
||||
See :class:`pygame.Window`
|
||||
.. classmethod:: from_display_module
|
||||
|
||||
| :sl:`Creates window using window created by pygame.display.set_mode().`
|
||||
| :sg:`from_display_module() -> Window`
|
||||
|
||||
.. class:: Texture
|
||||
.. classmethod:: from_window
|
||||
|
||||
| :sl:`pygame object that represents a texture`
|
||||
| :sg:`Texture(renderer, size, depth=0, static=False, streaming=False, target=False, scale_quality=None) -> Texture`
|
||||
| :sl:`Create Window from another window. Could be from another UI toolkit.`
|
||||
| :sg:`from_window(other) -> Window`
|
||||
|
||||
Creates an empty texture.
|
||||
.. attribute:: grab
|
||||
|
||||
:param Renderer renderer: The rendering context for the texture.
|
||||
:param tuple size: The width and height for the texture.
|
||||
:param int depth: The pixel format (``0`` to use the default).
|
||||
:param bool static: Initialize the texture as static
|
||||
(changes rarely, not lockable).
|
||||
:param bool streaming: Initialize the texture as streaming
|
||||
(changes frequently, lockable).
|
||||
:param bool target: Initialize the texture as target
|
||||
(can be used as a rendering target).
|
||||
:param int scale_quality: Set the texture scale quality. Can be ``0``
|
||||
(nearest pixel sampling), ``1``
|
||||
(linear filtering, supported by OpenGL and Direct3D)
|
||||
and ``2`` (anisotropic filtering, supported by Direct3D).
|
||||
| :sl:`Gets or sets whether the mouse is confined to the window.`
|
||||
| :sg:`grab -> bool`
|
||||
|
||||
One of ``static``, ``streaming``, or ``target`` can be set
|
||||
to ``True``. If all are ``False``, then ``static`` is used.
|
||||
.. attribute:: relative_mouse
|
||||
|
||||
| :sl:`Gets or sets the window's relative mouse motion state.`
|
||||
| :sg:`relative_mouse -> bool`
|
||||
|
||||
:class:`Texture` objects provide a platform-agnostic API for working with GPU textures.
|
||||
They are stored in GPU video memory (VRAM), and are therefore very fast to
|
||||
rotate and resize when drawn onto a :class:`Renderer`
|
||||
(an object that manages a rendering context inside a :class:`Window`) on most GPUs.
|
||||
.. method:: set_windowed
|
||||
|
||||
Since textures are stored in GPU video memory, they aren't as easy to modify
|
||||
as the image data of :class:`pygame.Surface` objects, which reside in RAM.
|
||||
| :sl:`Enable windowed mode (exit fullscreen).`
|
||||
| :sg:`set_windowed() -> None`
|
||||
|
||||
Textures can be modified in 2 ways:
|
||||
.. method:: set_fullscreen
|
||||
|
||||
* By drawing other textures onto them, achieved by marking them as "target" textures and setting them as the rendering target of their Renderer object (if properly configured and supported).
|
||||
| :sl:`Enter fullscreen.`
|
||||
| :sg:`set_fullscreen(desktop=False) -> None`
|
||||
|
||||
* By updating them with a Surface.
|
||||
.. attribute:: title
|
||||
|
||||
.. note::
|
||||
A :class:`pygame.Surface`-to-:class:`Texture` update is generally
|
||||
considered a slow operation, as it requires image data to be uploaded from
|
||||
RAM to VRAM, which can have a notable overhead cost.
|
||||
| :sl:`Gets or sets whether the window title.`
|
||||
| :sg:`title -> string`
|
||||
|
||||
.. method:: destroy
|
||||
|
||||
| :sl:`Destroys the window.`
|
||||
| :sg:`destroy() -> None`
|
||||
|
||||
.. method:: hide
|
||||
|
||||
| :sl:`Hide the window.`
|
||||
| :sg:`hide() -> None`
|
||||
|
||||
.. method:: show
|
||||
|
||||
| :sl:`Show the window.`
|
||||
| :sg:`show() -> None`
|
||||
|
||||
.. method:: focus
|
||||
|
||||
| :sl:`Raise the window above other windows and set the input focus. The "input_only" argument is only supported on X11.`
|
||||
| :sg:`focus(input_only=False) -> None`
|
||||
|
||||
.. method:: restore
|
||||
|
||||
| :sl:`Restore the size and position of a minimized or maximized window.`
|
||||
| :sg:`restore() -> None`
|
||||
|
||||
.. method:: maximize
|
||||
|
||||
| :sl:`Maximize the window.`
|
||||
| :sg:`maximize() -> None`
|
||||
|
||||
.. method:: minimize
|
||||
|
||||
| :sl:`Minimize the window.`
|
||||
| :sg:`maximize() -> None`
|
||||
|
||||
.. attribute:: resizable
|
||||
|
||||
| :sl:`Gets and sets whether the window is resizable.`
|
||||
| :sg:`resizable -> bool`
|
||||
|
||||
.. attribute:: borderless
|
||||
|
||||
| :sl:`Add or remove the border from the window.`
|
||||
| :sg:`borderless -> bool`
|
||||
|
||||
.. method:: set_icon
|
||||
|
||||
| :sl:`Set the icon for the window.`
|
||||
| :sg:`set_icon(surface) -> None`
|
||||
|
||||
.. attribute:: id
|
||||
|
||||
| :sl:`Get the unique window ID. *Read-only*`
|
||||
| :sg:`id -> int`
|
||||
|
||||
.. attribute:: size
|
||||
|
||||
| :sl:`Gets and sets the window size.`
|
||||
| :sg:`size -> (int, int)`
|
||||
|
||||
.. attribute:: position
|
||||
|
||||
| :sl:`Gets and sets the window position.`
|
||||
| :sg:`position -> (int, int) or WINDOWPOS_CENTERED or WINDOWPOS_UNDEFINED`
|
||||
|
||||
.. attribute:: opacity
|
||||
|
||||
| :sl:`Gets and sets the window opacity. Between 0.0 (fully transparent) and 1.0 (fully opaque).`
|
||||
| :sg:`opacity -> float`
|
||||
|
||||
.. attribute:: display_index
|
||||
|
||||
| :sl:`Get the index of the display that owns the window. *Read-only*`
|
||||
| :sg:`display_index -> int`
|
||||
|
||||
.. method:: set_modal_for
|
||||
|
||||
| :sl:`Set the window as a modal for a parent window. This function is only supported on X11.`
|
||||
| :sg:`set_modal_for(Window) -> None`
|
||||
|
||||
.. class:: Texture
|
||||
|
||||
| :sl:`pygame object that representing a Texture.`
|
||||
| :sg:`Texture(renderer, size, depth=0, static=False, streaming=False, target=False) -> Texture`
|
||||
|
||||
.. staticmethod:: from_surface
|
||||
|
||||
| :sl:`Create a texture from an existing surface.`
|
||||
| :sg:`from_surface(renderer, surface) -> Texture`
|
||||
|
||||
.. attribute:: renderer
|
||||
|
||||
| :sl:`Get the renderer associated with the texture (**read-only**)`
|
||||
| :sl:`Gets the renderer associated with the Texture. *Read-only*`
|
||||
| :sg:`renderer -> Renderer`
|
||||
|
||||
.. attribute:: width
|
||||
|
||||
| :sl:`Get the width of the texture (**read-only**)`
|
||||
| :sl:`Gets the width of the Texture. *Read-only*`
|
||||
| :sg:`width -> int`
|
||||
|
||||
.. attribute:: height
|
||||
|
||||
| :sl:`Get the height of the texture (**read-only**)`
|
||||
| :sl:`Gets the height of the Texture. *Read-only*`
|
||||
| :sg:`height -> int`
|
||||
|
||||
.. attribute:: alpha
|
||||
|
||||
| :sl:`Get or set the additional alpha value multiplied into draw operations`
|
||||
| :sl:`Gets and sets an additional alpha value multiplied into render copy operations.`
|
||||
| :sg:`alpha -> int`
|
||||
|
||||
.. attribute:: blend_mode
|
||||
|
||||
| :sl:`Get or set the blend mode for texture drawing operations`
|
||||
| :sl:`Gets and sets the blend mode for the Texture.`
|
||||
| :sg:`blend_mode -> int`
|
||||
|
||||
Gets or sets the blend mode for the texture's drawing operations.
|
||||
Valid blend modes are any of the ``BLENDMODE_*`` constants or a custom one.
|
||||
|
||||
.. attribute:: color
|
||||
|
||||
| :sl:`Get or set the additional color value multiplied into texture drawing operations`
|
||||
| :sg:`color -> Color`
|
||||
|
||||
.. staticmethod:: from_surface
|
||||
|
||||
| :sl:`Create a texture from an existing surface`
|
||||
| :sg:`from_surface(renderer, surface) -> Texture`
|
||||
|
||||
:param Renderer renderer: Rendering context for the texture.
|
||||
:param Surface surface: The surface to create a texture from.
|
||||
| :sl:`Gets and sets an additional color value multiplied into render copy operations.`
|
||||
| :sg:`color -> color`
|
||||
|
||||
.. method:: get_rect
|
||||
|
||||
| :sl:`Get the rectangular area of the texture`
|
||||
| :sl:`Get the rectangular area of the texture.`
|
||||
| :sg:`get_rect(**kwargs) -> Rect`
|
||||
|
||||
Like :meth:`pygame.Surface.get_rect`, this method returns a **new**
|
||||
:class:`pygame.Rect` covering the entire texture. It will always
|
||||
have a ``topleft`` of ``(0, 0)`` with a ``width`` and ``height`` the same size as the
|
||||
texture.
|
||||
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`Copy a portion of the texture to the rendering target`
|
||||
| :sl:`Copy a portion of the texture to the rendering target.`
|
||||
| :sg:`draw(srcrect=None, dstrect=None, angle=0, origin=None, flip_x=False, flip_y=False) -> None`
|
||||
|
||||
:param srcrect: The source rectangle on the texture, or ``None`` for the
|
||||
entire texture.
|
||||
:param dstrect: The destination rectangle on the rendering target, or
|
||||
``None`` for the entire rendering target. The texture
|
||||
will be stretched to fill ``dstrect``.
|
||||
:param float angle: The angle (in degrees) to rotate dstrect around
|
||||
(clockwise).
|
||||
:param origin: The point around which dstrect will be rotated.
|
||||
If ``None``, it will equal the center:
|
||||
``(dstrect.w/2, dstrect.h/2)``.
|
||||
:param bool flip_x: Flip the drawn texture portion horizontally (x - axis).
|
||||
:param bool flip_y: Flip the drawn texture portion vertically (y - axis).
|
||||
|
||||
.. method:: draw_triangle
|
||||
|
||||
| :sl:`Copy a triangle portion of the texture to the rendering target using the given coordinates`
|
||||
| :sg:`draw_triangle(p1_xy, p2_xy, p3_xy, p1_uv=(0.0, 0.0), p2_uv=(1.0, 1.0), p3_uv=(0.0, 1.0), p1_mod=(255, 255, 255, 255), p2_mod=(255, 255, 255, 255), p3_mod=(255, 255, 255, 255)) -> None`
|
||||
|
||||
:param p1_xy: The first vertex coordinate on the rendering target.
|
||||
:param p2_xy: The second vertex coordinate on the rendering target.
|
||||
:param p3_xy: The third vertex coordinate on the rendering target.
|
||||
:param p1_uv: The first UV coordinate of the triangle portion.
|
||||
:param p2_uv: The second UV coordinate of the triangle portion.
|
||||
:param p3_uv: The third UV coordinate of the triangle portion.
|
||||
:param p1_mod: The first vertex color modulation.
|
||||
:param p2_mod: The second vertex color modulation.
|
||||
:param p3_mod: The third vertex color modulation.
|
||||
|
||||
.. method:: draw_quad
|
||||
|
||||
| :sl:`Copy a quad portion of the texture to the rendering target using the given coordinates`
|
||||
| :sg:`draw_quad(p1_xy, p2_xy, p3_xy, p4_xy, p1_uv=(0.0, 0.0), p2_uv=(1.0, 0.0), p3_uv=(1.0, 1.0), p4_uv=(0.0, 1.0), p1_mod=(255, 255, 255, 255), p2_mod=(255, 255, 255, 255), p3_mod=(255, 255, 255, 255), p4_mod=(255, 255, 255, 255)) -> None`
|
||||
|
||||
:param p1_xy: The first vertex coordinate on the rendering target.
|
||||
:param p2_xy: The second vertex coordinate on the rendering target.
|
||||
:param p3_xy: The third vertex coordinate on the rendering target.
|
||||
:param p4_xy: The fourth vertex coordinate on the rendering target.
|
||||
:param p1_uv: The first UV coordinate of the quad portion.
|
||||
:param p2_uv: The second UV coordinate of the quad portion.
|
||||
:param p3_uv: The third UV coordinate of the quad portion.
|
||||
:param p4_uv: The fourth UV coordinate of the quad portion.
|
||||
:param p1_mod: The first vertex color modulation.
|
||||
:param p2_mod: The second vertex color modulation.
|
||||
:param p3_mod: The third vertex color modulation.
|
||||
:param p4_mod: The fourth vertex color modulation.
|
||||
|
||||
.. method:: update
|
||||
|
||||
| :sl:`Update the texture with Surface (slow operation, use sparingly)`
|
||||
| :sl:`Update the texture with a Surface. WARNING: Slow operation, use sparingly.`
|
||||
| :sg:`update(surface, area=None) -> None`
|
||||
|
||||
:param Surface surface: The source surface.
|
||||
:param area: The rectangular area of the texture to update.
|
||||
|
||||
.. note::
|
||||
This is a fairly slow function, intended for use with static textures
|
||||
that do not change often.
|
||||
|
||||
If the texture is intended to be updated often, it is preferred to create
|
||||
the texture as streaming and use the locking functions.
|
||||
|
||||
While this function will work with streaming textures, for optimization
|
||||
reasons you may not get the pixels back if you lock the texture afterward.
|
||||
|
||||
|
||||
.. class:: Image
|
||||
|
||||
| :sl:`pygame object that represents a portion of a texture`
|
||||
| :sg:`Image(texture_or_image, srcrect=None) -> Image`
|
||||
| :sl:`Easy way to use a portion of a Texture without worrying about srcrect all the time.`
|
||||
| :sg:`Image(textureOrImage, srcrect=None) -> Image`
|
||||
|
||||
Creates an Image.
|
||||
.. method:: get_rect
|
||||
|
||||
:param Texture | Image texture_or_image: The Texture or an existing Image
|
||||
object to create the Image from.
|
||||
:param srcrect: The rectangular portion of the Texture or Image object
|
||||
passed to ``texture_or_image``.
|
||||
| :sl:`Get the rectangular area of the Image.`
|
||||
| :sg:`get_rect() -> Rect`
|
||||
|
||||
An :class:`Image` object represents a portion of a :class:`Texture`. Specifically,
|
||||
they can be used to store and manipulate arguments for :meth:`Texture.draw`
|
||||
in a more user-friendly way.
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`Copy a portion of the Image to the rendering target.`
|
||||
| :sg:`draw(srcrect=None, dstrect=None) -> None`
|
||||
|
||||
.. attribute:: angle
|
||||
|
||||
| :sl:`Get and set the angle the Image draws itself with`
|
||||
| :sl:`Gets and sets the angle the Image draws itself with.`
|
||||
| :sg:`angle -> float`
|
||||
|
||||
.. attribute:: origin
|
||||
|
||||
| :sl:`Gets and sets the origin. Origin=None means the Image will be rotated around its center.`
|
||||
| :sg:`origin -> (float, float) or None.`
|
||||
|
||||
.. attribute:: flip_x
|
||||
|
||||
| :sl:`Get or set whether the Image is flipped on the x axis`
|
||||
| :sl:`Gets and sets whether the Image is flipped on the x axis.`
|
||||
| :sg:`flip_x -> bool`
|
||||
|
||||
.. attribute:: flip_y
|
||||
|
||||
| :sl:`Get or set whether the Image is flipped on the y axis`
|
||||
| :sl:`Gets and sets whether the Image is flipped on the y axis.`
|
||||
| :sg:`flip_y -> bool`
|
||||
|
||||
.. attribute:: color
|
||||
|
||||
| :sl:`Get or set the Image color modifier`
|
||||
| :sl:`Gets and sets the Image color modifier.`
|
||||
| :sg:`color -> Color`
|
||||
|
||||
.. attribute:: alpha
|
||||
|
||||
| :sl:`Get or set the Image alpha modifier (0-255)`
|
||||
| :sl:`Gets and sets the Image alpha modifier.`
|
||||
| :sg:`alpha -> float`
|
||||
|
||||
.. attribute:: blend_mode
|
||||
|
||||
| :sl:`Get or set the blend mode for the Image`
|
||||
| :sl:`Gets and sets the blend mode for the Image.`
|
||||
| :sg:`blend_mode -> int`
|
||||
|
||||
.. attribute:: texture
|
||||
|
||||
| :sl:`Get or set the Texture the Image is based on`
|
||||
| :sl:`Gets and sets the Texture the Image is based on.`
|
||||
| :sg:`texture -> Texture`
|
||||
|
||||
.. attribute:: srcrect
|
||||
|
||||
| :sl:`Get or set the Rect the Image is based on`
|
||||
| :sl:`Gets and sets the Rect the Image is based on.`
|
||||
| :sg:`srcrect -> Rect`
|
||||
|
||||
.. attribute:: origin
|
||||
|
||||
| :sl:`Get or set the Image's origin of rotation`
|
||||
| :sg:`origin -> (float, float) or None`
|
||||
|
||||
Gets or sets the Image's origin of rotation, a 2D point relative to
|
||||
the topleft coordinates of the Image's rectangular area.
|
||||
|
||||
An origin of ``None`` means no origin was set and the Image will be
|
||||
rotated around its center.
|
||||
|
||||
.. method:: get_rect
|
||||
|
||||
| :sl:`Get the rectangular area of the Image`
|
||||
| :sg:`get_rect() -> Rect`
|
||||
|
||||
.. note::
|
||||
The returned :class:`Rect` object might contain position information
|
||||
relative to the bounds of the :class:`Texture` or Image object it was
|
||||
created from.
|
||||
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`Copy a portion of the Image to the rendering target`
|
||||
| :sg:`draw(srcrect=None, dstrect=None) -> None`
|
||||
|
||||
:param srcrect: Source rectangle specifying a sub-Image, or ``None`` for the
|
||||
entire Image.
|
||||
:param dstrect: Destination rectangle or position on the render target,
|
||||
or ``None`` for entire target. The Image is stretched to
|
||||
fill dstrect.
|
||||
|
||||
|
||||
.. class:: Renderer
|
||||
|
||||
| :sl:`pygame object wrapping a 2D rendering context for a window`
|
||||
| :sl:`Create a 2D rendering context for a window.`
|
||||
| :sg:`Renderer(window, index=-1, accelerated=-1, vsync=False, target_texture=False) -> Renderer`
|
||||
|
||||
Creates a 2D rendering context for a window.
|
||||
|
||||
:param Window window: The window onto which the rendering context should be
|
||||
placed.
|
||||
:param int index: The index of rendering driver to initialize, or ``-1`` to init
|
||||
the first supporting the requested options.
|
||||
:param int accelerated: If 1, the renderer uses hardware acceleration.
|
||||
if 0, the renderer is a software fallback.
|
||||
``-1`` gives precedence to renderers using hardware
|
||||
acceleration.
|
||||
:param bool vsync: If ``True`` :meth:`Renderer.present` is synchronized with
|
||||
the refresh rate.
|
||||
:param bool target_texture: Whether the renderer should support setting
|
||||
:class:`Texture` objects as target textures, to
|
||||
enable drawing onto them.
|
||||
|
||||
|
||||
:class:`Renderer` objects provide a cross-platform API for rendering 2D
|
||||
graphics onto a :class:`Window`, by using either Metal (macOS), OpenGL
|
||||
(macOS, Windows, Linux) or Direct3D (Windows) rendering drivers, depending
|
||||
on what is set or is available on a system during their creation.
|
||||
|
||||
They can be used to draw both :class:`Texture` objects and simple points,
|
||||
lines and rectangles (which are colored based on :attr:`Renderer.draw_color`).
|
||||
|
||||
If configured correctly and supported by an underlying rendering driver, Renderer
|
||||
objects can have a :class:`Texture` object temporarily set as a target texture
|
||||
(the Texture object must have been created with target texture usage support),
|
||||
which allows those textures to be drawn onto.
|
||||
|
||||
To present drawn content onto the window, :meth:`Renderer.present` should be
|
||||
called. :meth:`Renderer.clear` should be called to clear any drawn content
|
||||
with the set Renderer draw color.
|
||||
|
||||
When things are drawn onto Renderer objects, an internal batching system is
|
||||
used by default to batch those "draw calls" together, to have all of them be
|
||||
processed in one go when :meth:`Renderer.present` is called. This is unlike
|
||||
:class:`pygame.Surface` objects, on which modifications via blitting occur
|
||||
immediately, but lends well to the behavior of GPUs, as draw calls can be
|
||||
expensive on lower-end models.
|
||||
|
||||
.. attribute:: draw_blend_mode
|
||||
|
||||
| :sl:`Get or set the blend mode used for primitive drawing operations`
|
||||
| :sg:`draw_blend_mode -> int`
|
||||
|
||||
.. attribute:: draw_color
|
||||
|
||||
| :sl:`Get or set the color used for primitive drawing operations`
|
||||
| :sg:`draw_color -> Color`
|
||||
|
||||
.. attribute:: logical_size
|
||||
|
||||
| :sl:`Get or set the logical Renderer size (a device independent resolution for rendering)`
|
||||
| :sg:`logical_size -> (int width, int height)`
|
||||
|
||||
Note: When the rendering target is the main window, and ``logical_size``
|
||||
has not been set before, it will contain ``(0, 0)`` and not the size of
|
||||
the window.
|
||||
|
||||
.. attribute:: scale
|
||||
|
||||
| :sl:`Get the drawing scale for the current rendering target`
|
||||
| :sg:`scale -> (float, float)`
|
||||
|
||||
.. attribute:: target
|
||||
|
||||
| :sl:`Get or set the current rendering target`
|
||||
| :sg:`target -> Texture or None`
|
||||
|
||||
Gets or sets the current rendering target.
|
||||
A value of ``None`` means that no custom rendering target was set and the
|
||||
Renderer's window will be used as the target.
|
||||
|
||||
.. classmethod:: from_window
|
||||
|
||||
| :sl:`Create a Renderer from an existing window`
|
||||
| :sl:`Easy way to create a Renderer.`
|
||||
| :sg:`from_window(window) -> Renderer`
|
||||
|
||||
.. attribute:: draw_blend_mode
|
||||
|
||||
| :sl:`Gets and sets the blend mode used by the drawing functions.`
|
||||
| :sg:`draw_blend_mode -> int`
|
||||
|
||||
.. attribute:: draw_color
|
||||
|
||||
| :sl:`Gets and sets the color used by the drawing functions.`
|
||||
| :sg:`draw_color -> Color`
|
||||
|
||||
.. method:: clear
|
||||
|
||||
| :sl:`Clear the current rendering target with the drawing color`
|
||||
| :sl:`Clear the current rendering target with the drawing color.`
|
||||
| :sg:`clear() -> None`
|
||||
|
||||
.. method:: present
|
||||
|
||||
| :sl:`Update the screen with any rendering performed since the previous call`
|
||||
| :sg:`present() -> None`
|
||||
|
||||
Presents the composed backbuffer to the screen.
|
||||
Updates the screen with any rendering performed since the previous call.
|
||||
| :sl:`Updates the screen with any new rendering since previous call.`
|
||||
| :sg:`present() -> None`
|
||||
|
||||
.. method:: get_viewport
|
||||
|
||||
| :sl:`Get the drawing area on the rendering target`
|
||||
| :sl:`Returns the drawing area on the target.`
|
||||
| :sg:`get_viewport() -> Rect`
|
||||
|
||||
.. method:: set_viewport
|
||||
|
||||
| :sl:`Set the drawing area on the rendering target`
|
||||
| :sl:`Set the drawing area on the target. If area is None, the entire target will be used.`
|
||||
| :sg:`set_viewport(area) -> None`
|
||||
|
||||
:param area: A :class:`pygame.Rect` or tuple representing the
|
||||
drawing area on the target, or ``None`` to use the
|
||||
entire area of the current rendering target.
|
||||
.. attribute:: logical_size
|
||||
|
||||
.. method:: coordinates_to_window
|
||||
| :sl:`Gets and sets the logical size.`
|
||||
| :sg:`logical_size -> (int width, int height)`
|
||||
|
||||
| :sl:`Translates renderer coordinates to window coordinates`
|
||||
| :sg:`coordinates_to_window(point) -> (float, float)`
|
||||
.. attribute:: scale
|
||||
|
||||
:param point: The coordinates in render space.
|
||||
| :sl:`Gets and sets the scale.`
|
||||
| :sg:`scale -> (float x_scale, float y_scale)`
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
.. attribute:: target
|
||||
|
||||
|
||||
.. method:: coordinates_from_window
|
||||
|
||||
| :sl:`Translates window coordinates to renderer coordinates`
|
||||
| :sg:`coordinates_from_window(point) -> (float, float)`
|
||||
|
||||
:param point: The coordinates in window space.
|
||||
|
||||
.. versionadded:: 2.5.6
|
||||
| :sl:`Gets and sets the render target. None represents the default target (the renderer).`
|
||||
| :sg:`target -> Texture or None`
|
||||
|
||||
.. method:: blit
|
||||
|
||||
| :sl:`Draw textures using a Surface-like API`
|
||||
| :sl:`For compatibility purposes. Textures created by different Renderers cannot be shared!`
|
||||
| :sg:`blit(source, dest, area=None, special_flags=0)-> Rect`
|
||||
|
||||
For compatibility purposes. Draws :class:`Texture` objects onto the
|
||||
Renderer using a method signature similar to :meth:`pygame.Surface.blit`.
|
||||
|
||||
:param source: A :class:`Texture` or :class:`Image` to draw.
|
||||
:param dest: The drawing destination on the rendering target.
|
||||
:param area: The portion of the source texture or image to draw from.
|
||||
:param special_flags: have no effect at this moment.
|
||||
|
||||
.. note:: Textures created by different Renderers cannot shared with each other!
|
||||
|
||||
.. method:: draw_line
|
||||
|
||||
| :sl:`Draw a line`
|
||||
| :sl:`Draws a line.`
|
||||
| :sg:`draw_line(p1, p2) -> None`
|
||||
|
||||
:param p1: The line start point.
|
||||
:param p2: The line end point.
|
||||
|
||||
.. method:: draw_point
|
||||
|
||||
| :sl:`Draw a point`
|
||||
| :sl:`Draws a point.`
|
||||
| :sg:`draw_point(point) -> None`
|
||||
|
||||
:param point: The point's coordinates.
|
||||
|
||||
.. method:: draw_rect
|
||||
|
||||
| :sl:`Draw a rectangle outline`
|
||||
| :sl:`Draws a rectangle.`
|
||||
| :sg:`draw_rect(rect)-> None`
|
||||
|
||||
:param rect: The :class:`pygame.Rect`-like rectangle to draw.
|
||||
|
||||
.. method:: fill_rect
|
||||
|
||||
| :sl:`Draw a filled rectangle`
|
||||
| :sl:`Fills a rectangle.`
|
||||
| :sg:`fill_rect(rect)-> None`
|
||||
|
||||
:param rect: The :class:`pygame.Rect`-like rectangle to draw.
|
||||
|
||||
.. method:: draw_triangle
|
||||
|
||||
| :sl:`Draw a triangle outline`
|
||||
| :sg:`draw_triangle(p1, p2, p3) -> None`
|
||||
|
||||
:param p1: The first triangle point.
|
||||
:param p2: The second triangle point.
|
||||
:param p2: The third triangle point.
|
||||
|
||||
.. method:: fill_triangle
|
||||
|
||||
| :sl:`Draw a filled triangle`
|
||||
| :sg:`fill_triangle(p1, p2, p3) -> None`
|
||||
|
||||
:param p1: The first triangle point.
|
||||
:param p2: The second triangle point.
|
||||
:param p2: The third triangle point.
|
||||
|
||||
.. method:: draw_quad
|
||||
|
||||
| :sl:`Draw a quad outline`
|
||||
| :sg:`draw_quad(p1, p2, p3, p4) -> None`
|
||||
|
||||
:param p1: The first quad point.
|
||||
:param p2: The second quad point.
|
||||
:param p2: The third quad point.
|
||||
:param p2: The fourth quad point.
|
||||
|
||||
.. method:: fill_quad
|
||||
|
||||
| :sl:`Draw a filled quad`
|
||||
| :sg:`fill_quad(p1, p2, p3, p4) -> None`
|
||||
|
||||
:param p1: The first quad point.
|
||||
:param p2: The second quad point.
|
||||
:param p2: The third quad point.
|
||||
:param p2: The fourth quad point.
|
||||
|
||||
.. method:: to_surface
|
||||
|
||||
| :sl:`Read pixels from current rendering target and create a Surface (slow operation, use sparingly)`
|
||||
| :sg:`to_surface(surface=None, area=None)-> Surface`
|
||||
|
||||
Read pixel data from the current rendering target and return a
|
||||
:class:`pygame.Surface` containing it.
|
||||
|
||||
:param Surface surface: A :class:`pygame.Surface` object to read the pixel
|
||||
data into. It must be large enough to fit the area, otherwise
|
||||
``ValueError`` is raised.
|
||||
If set to ``None``, a new surface will be created.
|
||||
:param area: The area of the screen to read pixels from. The area is
|
||||
clipped to fit inside the viewport.
|
||||
If ``None``, the entire viewport is used.
|
||||
|
||||
.. note::
|
||||
This is a very slow operation, due to the overhead of the VRAM to RAM
|
||||
data transfer and the cost of creating a potentially large
|
||||
:class:`pygame.Surface`. It should not be used frequently.
|
||||
|
||||
.. method:: compose_custom_blend_mode
|
||||
|
||||
| :sl:`Compose a custom blend mode`
|
||||
| :sg:`compose_custom_blend_mode(color_mode, alpha_mode) -> int`
|
||||
|
||||
Compose a custom blend mode.
|
||||
See https://wiki.libsdl.org/SDL2/SDL_ComposeCustomBlendMode for more information.
|
||||
|
||||
:param color_mode: A tuple ``(srcColorFactor, dstColorFactor, colorOperation)``
|
||||
:param alpha_mode: A tuple ``(srcAlphaFactor, dstAlphaFactor, alphaOperation)``
|
||||
|
||||
:return: A blend mode to be used with :meth:`Renderer.set_draw_blend_mode` and :meth:`Texture.set_blend_mode`.
|
||||
| :sl:`Read pixels from current render target and create a pygame.Surface. WARNING: Slow operation, use sparingly.`
|
||||
| :sg:`to_surface(surface=None, area=None)-> Surface`
|
||||
@@ -3,5 +3,93 @@
|
||||
:mod:`pygame.sndarray`
|
||||
======================
|
||||
|
||||
.. autopgmodule:: pygame.sndarray
|
||||
:members:
|
||||
.. module:: pygame.sndarray
|
||||
:synopsis: pygame module for accessing sound sample data
|
||||
|
||||
| :sl:`pygame module for accessing sound sample data`
|
||||
|
||||
Functions to convert between NumPy arrays and Sound objects. This
|
||||
module will only be functional when pygame can use the external NumPy
|
||||
package. If NumPy can't be imported, ``surfarray`` becomes a ``MissingModule``
|
||||
object.
|
||||
|
||||
Sound data is made of thousands of samples per second, and each sample is the
|
||||
amplitude of the wave at a particular moment in time. For example, in 22-kHz
|
||||
format, element number 5 of the array is the amplitude of the wave after
|
||||
5/22000 seconds.
|
||||
|
||||
The arrays are indexed by the ``X`` axis first, followed by the ``Y`` axis.
|
||||
Each sample is an 8-bit or 16-bit integer, depending on the data format. A
|
||||
stereo sound file has two values per sample, while a mono sound file only has
|
||||
one.
|
||||
|
||||
.. function:: array
|
||||
|
||||
| :sl:`copy Sound samples into an array`
|
||||
| :sg:`array(Sound) -> array`
|
||||
|
||||
Creates a new array for the sound data and copies the samples. The array
|
||||
will always be in the format returned from ``pygame.mixer.get_init()``.
|
||||
|
||||
.. ## pygame.sndarray.array ##
|
||||
|
||||
.. function:: samples
|
||||
|
||||
| :sl:`reference Sound samples into an array`
|
||||
| :sg:`samples(Sound) -> array`
|
||||
|
||||
Creates a new array that directly references the samples in a Sound object.
|
||||
Modifying the array will change the Sound. The array will always be in the
|
||||
format returned from ``pygame.mixer.get_init()``.
|
||||
|
||||
.. ## pygame.sndarray.samples ##
|
||||
|
||||
.. function:: make_sound
|
||||
|
||||
| :sl:`convert an array into a Sound object`
|
||||
| :sg:`make_sound(array) -> Sound`
|
||||
|
||||
Create a new playable Sound object from an array. The mixer module must be
|
||||
initialized and the array format must be similar to the mixer audio format.
|
||||
|
||||
.. ## pygame.sndarray.make_sound ##
|
||||
|
||||
.. function:: use_arraytype
|
||||
|
||||
| :sl:`Sets the array system to be used for sound arrays`
|
||||
| :sg:`use_arraytype (arraytype) -> None`
|
||||
|
||||
DEPRECATED: Uses the requested array type for the module functions. The
|
||||
only supported arraytype is ``'numpy'``. Other values will raise ValueError.
|
||||
Using this function will raise a ``DeprecationWarning``.
|
||||
.. ## pygame.sndarray.use_arraytype ##
|
||||
|
||||
.. function:: get_arraytype
|
||||
|
||||
| :sl:`Gets the currently active array type.`
|
||||
| :sg:`get_arraytype () -> str`
|
||||
|
||||
DEPRECATED: Returns the currently active array type. This will be a value of the
|
||||
``get_arraytypes()`` tuple and indicates which type of array module is used
|
||||
for the array creation. Using this function will raise a ``DeprecationWarning``.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.sndarray.get_arraytype ##
|
||||
|
||||
.. function:: get_arraytypes
|
||||
|
||||
| :sl:`Gets the array system types currently supported.`
|
||||
| :sg:`get_arraytypes () -> tuple`
|
||||
|
||||
DEPRECATED: Checks, which array systems are available and returns them as a tuple of
|
||||
strings. The values of the tuple can be used directly in the
|
||||
:func:`pygame.sndarray.use_arraytype` () method. If no supported array
|
||||
system could be found, None will be returned. Using this function will raise a
|
||||
``DeprecationWarning``.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.sndarray.get_arraytypes ##
|
||||
|
||||
.. ## pygame.sndarray ##
|
||||
@@ -1,115 +0,0 @@
|
||||
.. include:: common.txt
|
||||
|
||||
====================
|
||||
:mod:`special flags`
|
||||
====================
|
||||
|
||||
What Are Special Flags?
|
||||
=======================
|
||||
|
||||
**Special flags are a means of controlling how a** :class:`Surface` **is drawn onto another**.
|
||||
They can be used to create visual effects, such as glowing particles, or to perform surface
|
||||
masking or manipulation.
|
||||
They are used with the following methods:
|
||||
|
||||
- :meth:`pygame.Surface.blit`
|
||||
- :meth:`pygame.Surface.blits`
|
||||
- :meth:`pygame.Surface.fblits`
|
||||
- :meth:`pygame.Surface.fill`
|
||||
|
||||
Specifically they are passed as the ``special_flags`` argument of these methods by using
|
||||
``pygame.BLEND_*`` constants and allow you to choose how the colors of the surfaces are
|
||||
combined or blended together. Different flags can produce widely different results, so
|
||||
it is important to experiment to understand how they work.
|
||||
|
||||
By default, surfaces are drawn without any special flags, meaning they will be drawn based
|
||||
on their bit ``depth`` and ``colorkey``:
|
||||
|
||||
- If the ``Surface`` has a ``colorkey``, the pixels matching the ``colorkey`` will be transparent.
|
||||
|
||||
- If the ``Surface`` has a per-pixel or global alpha value, the alpha value will be used to blend the
|
||||
pixels with the ``Surface`` below.
|
||||
|
||||
- If the ``Surface`` doesn't have a ``colorkey`` or alpha value, the pixels will be opaque, meaning
|
||||
that the ``Surface`` will effectively overwrite the pixels of the ``Surface`` below.
|
||||
|
||||
The default drawing mode has its own flag: ``BLENDMODE_NONE`` (``0``).
|
||||
|
||||
Special Flags List
|
||||
==================
|
||||
|
||||
**Blending without Alpha Channel (RGB)**
|
||||
|
||||
----
|
||||
|
||||
.. versionaddedold:: 1.8 / 1.8.1
|
||||
|
||||
- ``BLEND_ADD`` / ``BLEND_RGB_ADD``
|
||||
Adds the source color channels to the destination color channels, clamped to a maximum of 255.
|
||||
The result color is always a lighter color or the same color.
|
||||
|
||||
- ``BLEND_SUB`` / ``BLEND_RGB_SUB``
|
||||
Subtracts the source color channels from the destination color channels, clamped to a minimum of 0.
|
||||
The result color is always a darker color or the same color.
|
||||
|
||||
- ``BLEND_MULT`` / ``BLEND_RGB_MULT``
|
||||
Multiplies the destination color channels by the source color channels, divided by 256 (or >> 8).
|
||||
The result color is always a darker color or the same color.
|
||||
|
||||
- ``BLEND_MIN`` / ``BLEND_RGB_MIN``
|
||||
Takes the minimum value between the source and destination color channels.
|
||||
|
||||
- ``BLEND_MAX`` / ``BLEND_RGB_MAX``
|
||||
Takes the maximum value of each color channel
|
||||
|
||||
**Blending with Alpha Channel (RGBA)**
|
||||
|
||||
----
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
|
||||
- ``BLEND_RGBA_ADD``
|
||||
Works like ``BLEND_RGB_ADD``, but also adds the alpha channel.
|
||||
|
||||
- ``BLEND_RGBA_SUB``
|
||||
Works like ``BLEND_RGB_SUB``, but also subtracts the alpha channel.
|
||||
|
||||
- ``BLEND_RGBA_MULT``
|
||||
Works like ``BLEND_RGB_MULT``, but also multiplies the alpha channel.
|
||||
|
||||
- ``BLEND_RGBA_MIN``
|
||||
Works like ``BLEND_RGB_MIN``, but also minimizes the alpha channel.
|
||||
|
||||
- ``BLEND_RGBA_MAX``
|
||||
Works like ``BLEND_RGB_MAX``, but also maximizes the alpha channel.
|
||||
|
||||
**Special Alpha Blending (RGBA)**
|
||||
|
||||
----
|
||||
|
||||
.. versionaddedold:: 1.9.2
|
||||
|
||||
- ``BLEND_PREMULTIPLIED``
|
||||
Uses premultiplied alpha blending for slightly faster blits and more
|
||||
accurate blending results when the color channels are already multiplied
|
||||
by the surface alpha channel.
|
||||
You should only use this blend mode if you previously premultiplied the Surface with
|
||||
:meth:`pygame.Surface.premul_alpha()`, or if you know that the Surface was already
|
||||
created or loaded in with premultiplied alpha colors. You can read more about the
|
||||
advantages of `premultiplied alpha blending
|
||||
here <https://en.wikipedia.org/wiki/Alpha_compositing>`_.
|
||||
|
||||
.. versionaddedold:: 2.0.0
|
||||
|
||||
- ``BLEND_ALPHA_SDL2``
|
||||
Uses the SDL2 blitter for alpha blending, which may give slightly different
|
||||
results compared to the default blitter used in Pygame 1. This algorithm uses
|
||||
different approximations for alpha blending and supports Run-Length Encoding
|
||||
(RLE) on alpha-blended surfaces.
|
||||
|
||||
**Other (RGB / RGBA)**
|
||||
|
||||
----
|
||||
|
||||
- ``BLENDMODE_NONE``
|
||||
It's the default drawing mode. It's equivalent to not passing any special flags.
|
||||
@@ -20,14 +20,15 @@ sprites. A game could create new types of Group classes that operate on
|
||||
specially customized Sprite instances they contain.
|
||||
|
||||
The basic Group class can draw the Sprites it contains to a Surface. The
|
||||
``Group.draw()`` method requires that each Sprite have a ``Sprite.image``
|
||||
attribute and a ``Sprite.rect``. The ``Group.clear()`` method requires these
|
||||
``Group.draw()`` method requires that each Sprite have a ``Surface.image``
|
||||
attribute and a ``Surface.rect``. The ``Group.clear()`` method requires these
|
||||
same attributes, and can be used to erase all the Sprites with background.
|
||||
There are also more advanced Groups: ``pygame.sprite.RenderUpdates()``.
|
||||
There are also more advanced Groups: ``pygame.sprite.RenderUpdates()`` and
|
||||
``pygame.sprite.OrderedUpdates()``.
|
||||
|
||||
Lastly, this module contains several collision functions. These help find
|
||||
sprites inside multiple groups that have intersecting bounding rectangles. To
|
||||
find the collisions, the Sprites are required to have a ``Sprite.rect``
|
||||
find the collisions, the Sprites are required to have a ``Surface.rect``
|
||||
attribute assigned.
|
||||
|
||||
The groups are designed for high efficiency in removing and adding Sprites to
|
||||
@@ -64,24 +65,24 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
adding the Sprite to Groups. For example:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
class Block(pygame.sprite.Sprite):
|
||||
|
||||
# Constructor. Pass in the color of the block,
|
||||
|
||||
# Constructor. Pass in the color of the block,
|
||||
# and its x and y position
|
||||
def __init__(self, color, width, height):
|
||||
# Call the parent class (Sprite) constructor
|
||||
pygame.sprite.Sprite.__init__(self)
|
||||
|
||||
pygame.sprite.Sprite.__init__(self)
|
||||
|
||||
# Create an image of the block, and fill it with a color.
|
||||
# This could also be an image loaded from the disk.
|
||||
self.image = pygame.Surface([width, height])
|
||||
self.image.fill(color)
|
||||
|
||||
|
||||
# Fetch the rectangle object that has the dimensions of the image
|
||||
# Update the position of this object by setting the values of rect.x and rect.y
|
||||
self.rect = self.image.get_rect()
|
||||
|
||||
self.rect = self.image.get_rect()
|
||||
|
||||
.. method:: update
|
||||
|
||||
| :sl:`method to control sprite behavior`
|
||||
@@ -91,7 +92,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
convenient "hook" that you can override. This method is called by
|
||||
``Group.update()`` with whatever arguments you give it.
|
||||
|
||||
There is no need to use this method if not using the convenience method
|
||||
It is not necessary to use this method if not using the convenience method
|
||||
by the same name in the Group class.
|
||||
|
||||
.. ## Sprite.update ##
|
||||
@@ -148,6 +149,11 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
|
||||
.. ## pygame.sprite.Sprite ##
|
||||
|
||||
.. class:: WeakSprite
|
||||
|
||||
| :sl:`A subclass of Sprite that references its Groups weakly. This means that any group this belongs to that is not referenced anywhere else is garbage collected automatically.`
|
||||
| :sg:`WeakSprite(*groups) -> WeakSprite`
|
||||
|
||||
.. class:: DirtySprite
|
||||
|
||||
| :sl:`A subclass of Sprite with more attributes and features.`
|
||||
@@ -202,8 +208,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
|
||||
A simple container for Sprite objects. This class can be inherited to create
|
||||
containers with more specific behaviors. The constructor takes any number of
|
||||
Sprite arguments to add to the Group. All sprites in groups are stored in the
|
||||
order they were added to the group. The group supports the following
|
||||
Sprite arguments to add to the Group. The group supports the following
|
||||
standard Python operations:
|
||||
|
||||
::
|
||||
@@ -213,6 +218,9 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
bool test if any Sprites are contained
|
||||
iter iterate through all the Sprites
|
||||
|
||||
The Sprites in the Group are ordered only on python 3.6 and higher.
|
||||
Below python 3.6 drawing and iterating over the Sprites is in no particular order.
|
||||
|
||||
.. method:: sprites
|
||||
|
||||
| :sl:`list of the Sprites this Group contains`
|
||||
@@ -244,7 +252,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
Add any number of Sprites to this Group. This will only add Sprites that
|
||||
are not already members of the Group.
|
||||
|
||||
Each sprite argument can also be an iterator containing Sprites.
|
||||
Each sprite argument can also be a iterator containing Sprites.
|
||||
|
||||
.. ## Group.add ##
|
||||
|
||||
@@ -256,7 +264,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
Remove any number of Sprites from the Group. This will only remove
|
||||
Sprites that are already members of the Group.
|
||||
|
||||
Each sprite argument can also be an iterator containing Sprites.
|
||||
Each sprite argument can also be a iterator containing Sprites.
|
||||
|
||||
.. ## Group.remove ##
|
||||
|
||||
@@ -269,7 +277,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
similar to using the "in" operator on the Group ("if sprite in group:
|
||||
..."), which tests if a single Sprite belongs to a Group.
|
||||
|
||||
Each sprite argument can also be an iterator containing Sprites.
|
||||
Each sprite argument can also be a iterator containing Sprites.
|
||||
|
||||
.. ## Group.has ##
|
||||
|
||||
@@ -291,17 +299,16 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`blit the Sprite images`
|
||||
| :sg:`draw(Surface, bgd=None, special_flags=0) -> list[Rect]`
|
||||
| :sg:`draw(Surface, bgsurf=None, special_flags=0) -> List[Rect]`
|
||||
|
||||
Draws the contained Sprites to the Surface argument. This uses the
|
||||
``Sprite.image`` attribute for the source surface, and ``Sprite.rect``
|
||||
for the position. ``special_flags`` is passed to ``Surface.blit()``.
|
||||
``bgd`` is unused in this method but ``LayeredDirty.draw()`` uses
|
||||
``bgsurf`` is unused in this method but ``LayeredDirty.draw()`` uses
|
||||
it.
|
||||
|
||||
The Group keeps sprites in the order they were added, they will be drawn in this order.
|
||||
|
||||
.. versionchanged:: 2.5.4 Added the ``bgd`` and ``special_flags`` arguments
|
||||
The Group does not keep sprites in any order, so the draw order is
|
||||
arbitrary.
|
||||
|
||||
.. ## Group.draw ##
|
||||
|
||||
@@ -340,6 +347,27 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
|
||||
.. ## pygame.sprite.Group ##
|
||||
|
||||
.. class:: WeakDirtySprite
|
||||
|
||||
| :sl:`A subclass of WeakSprite and DirtySprite that combines the benefits of both classes.`
|
||||
| :sg:`WeakDirtySprite(*groups) -> WeakDirtySprite`
|
||||
|
||||
.. class:: RenderPlain
|
||||
|
||||
| :sl:`Same as pygame.sprite.Group`
|
||||
|
||||
This class is an alias to ``pygame.sprite.Group()``. It has no additional functionality.
|
||||
|
||||
.. ## pygame.sprite.RenderClear ##
|
||||
|
||||
.. class:: RenderClear
|
||||
|
||||
| :sl:`Same as pygame.sprite.Group`
|
||||
|
||||
This class is an alias to ``pygame.sprite.Group()``. It has no additional functionality.
|
||||
|
||||
.. ## pygame.sprite.RenderClear ##
|
||||
|
||||
.. class:: RenderUpdates
|
||||
|
||||
| :sl:`Group sub-class that tracks dirty updates.`
|
||||
@@ -351,29 +379,38 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`blit the Sprite images and track changed areas`
|
||||
| :sg:`draw(surface, bgd=None, special_flags=0) -> Rect_list`
|
||||
| :sg:`draw(surface, bgsurf=None, special_flags=0) -> Rect_list`
|
||||
|
||||
Draws all the Sprites to the surface, the same as ``Group.draw()``. This
|
||||
method also returns a list of Rectangular areas on the screen that have
|
||||
been changed. The returned changes include areas of the screen that have
|
||||
been affected by previous ``Group.clear()`` calls. ``special_flags`` is
|
||||
passed to ``Surface.blit()``. ``bgd`` is unused in this method but
|
||||
``LayeredDirty.draw()`` uses it.
|
||||
passed to ``Surface.blit()``.
|
||||
|
||||
The returned Rect list should be passed to ``pygame.display.update()``.
|
||||
This will help performance on software driven display modes. This type of
|
||||
updating is usually only helpful on destinations with non-animating
|
||||
backgrounds.
|
||||
|
||||
.. versionchanged:: 2.5.4 Added the ``bgd`` and ``special_flags`` arguments
|
||||
|
||||
.. ## RenderUpdates.draw ##
|
||||
|
||||
.. ## pygame.sprite.RenderUpdates ##
|
||||
|
||||
.. function:: OrderedUpdates
|
||||
|
||||
| :sl:`RenderUpdates sub-class that draws Sprites in order of addition.`
|
||||
| :sg:`OrderedUpdates(*sprites) -> OrderedUpdates`
|
||||
|
||||
This class derives from ``pygame.sprite.RenderUpdates()``. It maintains the
|
||||
order in which the Sprites were added to the Group for rendering. This makes
|
||||
adding and removing Sprites from the Group a little slower than regular
|
||||
Groups.
|
||||
|
||||
.. ## pygame.sprite.OrderedUpdates ##
|
||||
|
||||
.. class:: LayeredUpdates
|
||||
|
||||
| :sl:`LayeredUpdates is a sprite group that handles layers and draws like RenderUpdates.`
|
||||
| :sl:`LayeredUpdates is a sprite group that handles layers and draws like OrderedUpdates.`
|
||||
| :sg:`LayeredUpdates(*sprites, **kwargs) -> LayeredUpdates`
|
||||
|
||||
This group is fully compatible with :class:`pygame.sprite.Sprite`.
|
||||
@@ -387,7 +424,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
has attribute layer nor \**kwarg then the default layer is used to add the
|
||||
sprites.
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. method:: add
|
||||
|
||||
@@ -403,7 +440,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
|
||||
.. method:: sprites
|
||||
|
||||
| :sl:`returns an ordered list of sprites (first back, last top).`
|
||||
| :sl:`returns a ordered list of sprites (first back, last top).`
|
||||
| :sg:`sprites() -> sprites`
|
||||
|
||||
.. ## LayeredUpdates.sprites ##
|
||||
@@ -411,9 +448,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`draw all sprites in the right order onto the passed surface.`
|
||||
| :sg:`draw(surface, bgd=None, special_flags=0) -> Rect_list`
|
||||
|
||||
.. versionchanged:: 2.5.4 Added the ``bgd`` and ``special_flags`` arguments
|
||||
| :sg:`draw(surface, bgsurf=None, special_flags=0) -> Rect_list`
|
||||
|
||||
.. ## LayeredUpdates.draw ##
|
||||
|
||||
@@ -556,18 +591,18 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
_time_threshold: threshold time for switching between dirty rect mode
|
||||
and fullscreen mode, defaults to 1000./80 == 1000./fps
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. method:: draw
|
||||
|
||||
| :sl:`draw all sprites in the right order onto the passed surface.`
|
||||
| :sg:`draw(surface, bgd=None, special_flags=None) -> Rect_list`
|
||||
| :sg:`draw(surface, bgsurf=None, special_flags=None) -> Rect_list`
|
||||
|
||||
You can pass the background too. If a background is already set, then the
|
||||
bgd argument has no effect. ``special_flags`` is passed to
|
||||
``Surface.blit()``.
|
||||
|
||||
.. versionchanged:: 2.5.4 Added the ``special_flags`` argument
|
||||
bgsurf argument has no effect. If present, the ``special_flags`` argument is
|
||||
always passed to ``Surface.blit()``, overriding ``DirtySprite.blendmode``.
|
||||
If ``special_flags`` is not present, ``DirtySprite.blendmode`` is passed
|
||||
to the ``Surface.blit()`` instead.
|
||||
|
||||
.. ## LayeredDirty.draw ##
|
||||
|
||||
@@ -617,7 +652,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
|
||||
DEPRECATED: Use set_timing_threshold() instead.
|
||||
|
||||
.. deprecatedold:: 2.1.1
|
||||
.. deprecated:: 2.1.1
|
||||
|
||||
.. ## LayeredDirty.set_timing_treshold ##
|
||||
|
||||
@@ -631,7 +666,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
method is taking so long to update the screen that the frame rate falls
|
||||
below 80 frames per second.
|
||||
|
||||
.. versionaddedold:: 2.1.1
|
||||
.. versionadded:: 2.1.1
|
||||
|
||||
:raises TypeError: if ``time_ms`` is not int or float
|
||||
|
||||
@@ -680,17 +715,17 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
collide_circle_ratio, collide_mask
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# See if the Sprite block has collided with anything in the Group block_list
|
||||
# The True flag will remove the sprite in block_list
|
||||
blocks_hit_list = pygame.sprite.spritecollide(player, block_list, True)
|
||||
|
||||
blocks_hit_list = pygame.sprite.spritecollide(player, block_list, True)
|
||||
|
||||
# Check the list of colliding sprites, and add one to the score for each one
|
||||
for block in blocks_hit_list:
|
||||
score +=1
|
||||
|
||||
|
||||
.. ## pygame.sprite.spritecollide ##
|
||||
|
||||
.. function:: collide_rect
|
||||
@@ -703,7 +738,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
callback function to the \*collide functions. Sprites must have a "rect"
|
||||
attributes.
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.sprite.collide_rect ##
|
||||
|
||||
@@ -721,7 +756,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
A ratio is a floating point number - 1.0 is the same size, 2.0 is twice as
|
||||
big, and 0.5 is half the size.
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## pygame.sprite.collide_rect_ratio ##
|
||||
|
||||
@@ -738,7 +773,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
\*collide functions. Sprites must have a "rect" and an optional "radius"
|
||||
attribute.
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## pygame.sprite.collide_circle ##
|
||||
|
||||
@@ -765,7 +800,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
the \*collide functions. Sprites must have a "rect" and an optional "radius"
|
||||
attribute.
|
||||
|
||||
.. versionaddedold:: 1.8.1
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## pygame.sprite.collide_circle_ratio ##
|
||||
|
||||
@@ -808,7 +843,7 @@ Sprites are not thread safe. So lock them yourself if using threads.
|
||||
collision
|
||||
:rtype: tuple(int, int) or NoneType
|
||||
|
||||
.. versionaddedold:: 1.8.0
|
||||
.. versionadded:: 1.8.0
|
||||
|
||||
.. ## pygame.sprite.collide_mask ##
|
||||
|
||||
|
||||
@@ -5,6 +5,945 @@
|
||||
|
||||
.. currentmodule:: pygame
|
||||
|
||||
.. autopgclass:: Surface
|
||||
:members:
|
||||
:private-members: +_pixels_address
|
||||
.. class:: Surface
|
||||
|
||||
| :sl:`pygame object for representing images`
|
||||
| :sg:`Surface((width, height), flags=0, depth=0, masks=None) -> Surface`
|
||||
| :sg:`Surface((width, height), flags=0, Surface) -> Surface`
|
||||
|
||||
A pygame Surface is used to represent any image. The Surface has a fixed
|
||||
resolution and pixel format. Surfaces with 8-bit pixels use a color palette
|
||||
to map to 24-bit color.
|
||||
|
||||
Call :meth:`pygame.Surface()` to create a new image object. The Surface will
|
||||
be cleared to all black. The only required arguments are the sizes. With no
|
||||
additional arguments, the Surface will be created in a format that best
|
||||
matches the display Surface.
|
||||
|
||||
The pixel format can be controlled by passing the bit depth or an existing
|
||||
Surface. The flags argument is a bitmask of additional features for the
|
||||
surface. You can pass any combination of these flags:
|
||||
|
||||
::
|
||||
|
||||
HWSURFACE (obsolete in pygame 2) creates the image in video memory
|
||||
SRCALPHA the pixel format will include a per-pixel alpha
|
||||
|
||||
Both flags are only a request, and may not be possible for all displays and
|
||||
formats.
|
||||
|
||||
Advance users can combine a set of bitmasks with a depth value. The masks
|
||||
are a set of 4 integers representing which bits in a pixel will represent
|
||||
each color. Normal Surfaces should not require the masks argument.
|
||||
|
||||
Surfaces can have many extra attributes like alpha planes, colorkeys, source
|
||||
rectangle clipping. These functions mainly effect how the Surface is blitted
|
||||
to other Surfaces. The blit routines will attempt to use hardware
|
||||
acceleration when possible, otherwise they will use highly optimized
|
||||
software blitting methods.
|
||||
|
||||
There are three types of transparency supported in pygame: colorkeys,
|
||||
surface alphas, and pixel alphas. Surface alphas can be mixed with
|
||||
colorkeys, but an image with per pixel alphas cannot use the other modes.
|
||||
Colorkey transparency makes a single color value transparent. Any pixels
|
||||
matching the colorkey will not be drawn. The surface alpha value is a single
|
||||
value that changes the transparency for the entire image. A surface alpha of
|
||||
255 is opaque, and a value of 0 is completely transparent.
|
||||
|
||||
Per pixel alphas are different because they store a transparency value for
|
||||
every pixel. This allows for the most precise transparency effects, but it
|
||||
also the slowest. Per pixel alphas cannot be mixed with surface alpha and
|
||||
colorkeys.
|
||||
|
||||
There is support for pixel access for the Surfaces. Pixel access on hardware
|
||||
surfaces is slow and not recommended. Pixels can be accessed using the
|
||||
:meth:`get_at()` and :meth:`set_at()` functions. These methods are fine for
|
||||
simple access, but will be considerably slow when doing of pixel work with
|
||||
them. If you plan on doing a lot of pixel level work, it is recommended to
|
||||
use a :class:`pygame.PixelArray`, which gives an array like view of the
|
||||
surface. For involved mathematical manipulations try the
|
||||
:mod:`pygame.surfarray` module (It's quite quick, but requires NumPy.)
|
||||
|
||||
Any functions that directly access a surface's pixel data will need that
|
||||
surface to be lock()'ed. These functions can :meth:`lock()` and
|
||||
:meth:`unlock()` the surfaces themselves without assistance. But, if a
|
||||
function will be called many times, there will be a lot of overhead for
|
||||
multiple locking and unlocking of the surface. It is best to lock the
|
||||
surface manually before making the function call many times, and then
|
||||
unlocking when you are finished. All functions that need a locked surface
|
||||
will say so in their docs. Remember to leave the Surface locked only while
|
||||
necessary.
|
||||
|
||||
Surface pixels are stored internally as a single number that has all the
|
||||
colors encoded into it. Use the :meth:`map_rgb()` and
|
||||
:meth:`unmap_rgb()` to convert between individual red, green, and blue
|
||||
values into a packed integer for that Surface.
|
||||
|
||||
Surfaces can also reference sections of other Surfaces. These are created
|
||||
with the :meth:`subsurface()` method. Any change to either Surface will
|
||||
effect the other.
|
||||
|
||||
Each Surface contains a clipping area. By default the clip area covers the
|
||||
entire Surface. If it is changed, all drawing operations will only effect
|
||||
the smaller area.
|
||||
|
||||
.. method:: blit
|
||||
|
||||
| :sl:`draw one image onto another`
|
||||
| :sg:`blit(source, dest, area=None, special_flags=0) -> Rect`
|
||||
|
||||
Draws a source Surface onto this Surface. The draw can be positioned with
|
||||
the dest argument. The dest argument can either be a pair of coordinates representing the position of
|
||||
the upper left corner of the blit or a Rect, where the upper left corner of the rectangle will be used as the
|
||||
position for the blit. The size of the destination rectangle does not
|
||||
effect the blit.
|
||||
|
||||
An optional area rectangle can be passed as well. This represents a
|
||||
smaller portion of the source Surface to draw.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
Optional ``special_flags``: ``BLEND_ADD``, ``BLEND_SUB``,
|
||||
``BLEND_MULT``, ``BLEND_MIN``, ``BLEND_MAX``.
|
||||
|
||||
.. versionadded:: 1.8.1
|
||||
Optional ``special_flags``: ``BLEND_RGBA_ADD``, ``BLEND_RGBA_SUB``,
|
||||
``BLEND_RGBA_MULT``, ``BLEND_RGBA_MIN``, ``BLEND_RGBA_MAX``
|
||||
``BLEND_RGB_ADD``, ``BLEND_RGB_SUB``, ``BLEND_RGB_MULT``,
|
||||
``BLEND_RGB_MIN``, ``BLEND_RGB_MAX``.
|
||||
|
||||
.. versionadded:: 1.9.2
|
||||
Optional ``special_flags``: ``BLEND_PREMULTIPLIED``
|
||||
|
||||
.. versionadded:: 2.0.0
|
||||
Optional ``special_flags``: ``BLEND_ALPHA_SDL2`` - Uses the SDL2 blitter for alpha blending,
|
||||
this gives different results than the default blitter, which is modelled after SDL1, due to
|
||||
different approximations used for the alpha blending formula. The SDL2 blitter also supports
|
||||
RLE on alpha blended surfaces which the pygame one does not.
|
||||
|
||||
The return rectangle is the area of the affected pixels, excluding any
|
||||
pixels outside the destination Surface, or outside the clipping area.
|
||||
|
||||
Pixel alphas will be ignored when blitting to an 8 bit Surface.
|
||||
|
||||
For a surface with colorkey or blanket alpha, a blit to self may give
|
||||
slightly different colors than a non self-blit.
|
||||
|
||||
.. ## Surface.blit ##
|
||||
|
||||
.. method:: blits
|
||||
|
||||
| :sl:`draw many images onto another`
|
||||
| :sg:`blits(blit_sequence=((source, dest), ...), doreturn=1) -> [Rect, ...] or None`
|
||||
| :sg:`blits(((source, dest, area), ...)) -> [Rect, ...]`
|
||||
| :sg:`blits(((source, dest, area, special_flags), ...)) -> [Rect, ...]`
|
||||
|
||||
Draws many surfaces onto this Surface. It takes a sequence as input,
|
||||
with each of the elements corresponding to the ones of :meth:`blit()`.
|
||||
It needs at minimum a sequence of (source, dest).
|
||||
|
||||
:param blit_sequence: a sequence of surfaces and arguments to blit them,
|
||||
they correspond to the :meth:`blit()` arguments
|
||||
:param doreturn: if ``True``, return a list of rects of the areas changed,
|
||||
otherwise return ``None``
|
||||
|
||||
:returns: a list of rects of the areas changed if ``doreturn`` is
|
||||
``True``, otherwise ``None``
|
||||
:rtype: list or None
|
||||
|
||||
New in pygame 1.9.4.
|
||||
|
||||
.. ## Surface.blits ##
|
||||
|
||||
|
||||
.. method:: convert
|
||||
|
||||
| :sl:`change the pixel format of an image`
|
||||
| :sg:`convert(Surface=None) -> Surface`
|
||||
| :sg:`convert(depth, flags=0) -> Surface`
|
||||
| :sg:`convert(masks, flags=0) -> Surface`
|
||||
|
||||
Creates a new copy of the Surface with the pixel format changed. The new
|
||||
pixel format can be determined from another existing Surface. Otherwise
|
||||
depth, flags, and masks arguments can be used, similar to the
|
||||
:meth:`pygame.Surface()` call.
|
||||
|
||||
If no arguments are passed the new Surface will have the same pixel
|
||||
format as the display Surface. This is always the fastest format for
|
||||
blitting. It is a good idea to convert all Surfaces before they are
|
||||
blitted many times.
|
||||
|
||||
The converted Surface will have no pixel alphas. They will be stripped if
|
||||
the original had them. See :meth:`convert_alpha()` for preserving or
|
||||
creating per-pixel alphas.
|
||||
|
||||
The new copy will have the same class as the copied surface. This lets
|
||||
as Surface subclass inherit this method without the need to override,
|
||||
unless subclass specific instance attributes also need copying.
|
||||
|
||||
.. ## Surface.convert ##
|
||||
|
||||
.. method:: convert_alpha
|
||||
|
||||
| :sl:`change the pixel format of an image including per pixel alphas`
|
||||
| :sg:`convert_alpha(Surface) -> Surface`
|
||||
| :sg:`convert_alpha() -> Surface`
|
||||
|
||||
Creates a new copy of the surface with the desired pixel format. The new
|
||||
surface will be in a format suited for quick blitting to the given format
|
||||
with per pixel alpha. If no surface is given, the new surface will be
|
||||
optimized for blitting to the current display.
|
||||
|
||||
Unlike the :meth:`convert()` method, the pixel format for the new
|
||||
image will not be exactly the same as the requested source, but it will
|
||||
be optimized for fast alpha blitting to the destination.
|
||||
|
||||
As with :meth:`convert()` the returned surface has the same class as
|
||||
the converted surface.
|
||||
|
||||
.. ## Surface.convert_alpha ##
|
||||
|
||||
.. method:: copy
|
||||
|
||||
| :sl:`create a new copy of a Surface`
|
||||
| :sg:`copy() -> Surface`
|
||||
|
||||
Makes a duplicate copy of a Surface. The new surface will have the same
|
||||
pixel formats, color palettes, transparency settings, and class as the
|
||||
original. If a Surface subclass also needs to copy any instance specific
|
||||
attributes then it should override ``copy()``.
|
||||
|
||||
.. ## Surface.copy ##
|
||||
|
||||
.. method:: fill
|
||||
|
||||
| :sl:`fill Surface with a solid color`
|
||||
| :sg:`fill(color, rect=None, special_flags=0) -> Rect`
|
||||
|
||||
Fill the Surface with a solid color. If no rect argument is given the
|
||||
entire Surface will be filled. The rect argument will limit the fill to a
|
||||
specific area. The fill will also be contained by the Surface clip area.
|
||||
|
||||
The color argument can be either a ``RGB`` sequence, a ``RGBA`` sequence
|
||||
or a mapped color index. If using ``RGBA``, the Alpha (A part of
|
||||
``RGBA``) is ignored unless the surface uses per pixel alpha (Surface has
|
||||
the ``SRCALPHA`` flag).
|
||||
|
||||
.. versionadded:: 1.8
|
||||
Optional ``special_flags``: ``BLEND_ADD``, ``BLEND_SUB``,
|
||||
``BLEND_MULT``, ``BLEND_MIN``, ``BLEND_MAX``.
|
||||
|
||||
.. versionadded:: 1.8.1
|
||||
Optional ``special_flags``: ``BLEND_RGBA_ADD``, ``BLEND_RGBA_SUB``,
|
||||
``BLEND_RGBA_MULT``, ``BLEND_RGBA_MIN``, ``BLEND_RGBA_MAX``
|
||||
``BLEND_RGB_ADD``, ``BLEND_RGB_SUB``, ``BLEND_RGB_MULT``,
|
||||
``BLEND_RGB_MIN``, ``BLEND_RGB_MAX``.
|
||||
|
||||
This will return the affected Surface area.
|
||||
|
||||
.. ## Surface.fill ##
|
||||
|
||||
.. method:: scroll
|
||||
|
||||
| :sl:`Shift the surface image in place`
|
||||
| :sg:`scroll(dx=0, dy=0) -> None`
|
||||
|
||||
Move the image by dx pixels right and dy pixels down. dx and dy may be
|
||||
negative for left and up scrolls respectively. Areas of the surface that
|
||||
are not overwritten retain their original pixel values. Scrolling is
|
||||
contained by the Surface clip area. It is safe to have dx and dy values
|
||||
that exceed the surface size.
|
||||
|
||||
.. versionadded:: 1.9
|
||||
|
||||
.. ## Surface.scroll ##
|
||||
|
||||
.. method:: set_colorkey
|
||||
|
||||
| :sl:`Set the transparent colorkey`
|
||||
| :sg:`set_colorkey(Color, flags=0) -> None`
|
||||
| :sg:`set_colorkey(None) -> None`
|
||||
|
||||
Set the current color key for the Surface. When blitting this Surface
|
||||
onto a destination, any pixels that have the same color as the colorkey
|
||||
will be transparent. The color can be an ``RGB`` color or a mapped color
|
||||
integer. If ``None`` is passed, the colorkey will be unset.
|
||||
|
||||
The colorkey will be ignored if the Surface is formatted to use per pixel
|
||||
alpha values. The colorkey can be mixed with the full Surface alpha
|
||||
value.
|
||||
|
||||
The optional flags argument can be set to ``pygame.RLEACCEL`` to provide
|
||||
better performance on non accelerated displays. An ``RLEACCEL`` Surface
|
||||
will be slower to modify, but quicker to blit as a source.
|
||||
|
||||
.. ## Surface.set_colorkey ##
|
||||
|
||||
.. method:: get_colorkey
|
||||
|
||||
| :sl:`Get the current transparent colorkey`
|
||||
| :sg:`get_colorkey() -> RGB or None`
|
||||
|
||||
Return the current colorkey value for the Surface. If the colorkey is not
|
||||
set then ``None`` is returned.
|
||||
|
||||
.. ## Surface.get_colorkey ##
|
||||
|
||||
.. method:: set_alpha
|
||||
|
||||
| :sl:`set the alpha value for the full Surface image`
|
||||
| :sg:`set_alpha(value, flags=0) -> None`
|
||||
| :sg:`set_alpha(None) -> None`
|
||||
|
||||
Set the current alpha value for the Surface. When blitting this Surface
|
||||
onto a destination, the pixels will be drawn slightly transparent. The
|
||||
alpha value is an integer from 0 to 255, 0 is fully transparent and 255
|
||||
is fully opaque. If ``None`` is passed for the alpha value, then alpha
|
||||
blending will be disabled, including per-pixel alpha.
|
||||
|
||||
This value is different than the per pixel Surface alpha. For a surface
|
||||
with per pixel alpha, blanket alpha is ignored and ``None`` is returned.
|
||||
|
||||
.. versionchanged:: 2.0 per-surface alpha can be combined with per-pixel
|
||||
alpha.
|
||||
|
||||
The optional flags argument can be set to ``pygame.RLEACCEL`` to provide
|
||||
better performance on non accelerated displays. An ``RLEACCEL`` Surface
|
||||
will be slower to modify, but quicker to blit as a source.
|
||||
|
||||
.. ## Surface.set_alpha ##
|
||||
|
||||
.. method:: get_alpha
|
||||
|
||||
| :sl:`get the current Surface transparency value`
|
||||
| :sg:`get_alpha() -> int_value`
|
||||
|
||||
Return the current alpha value for the Surface.
|
||||
|
||||
.. ## Surface.get_alpha ##
|
||||
|
||||
.. method:: lock
|
||||
|
||||
| :sl:`lock the Surface memory for pixel access`
|
||||
| :sg:`lock() -> None`
|
||||
|
||||
Lock the pixel data of a Surface for access. On accelerated Surfaces, the
|
||||
pixel data may be stored in volatile video memory or nonlinear compressed
|
||||
forms. When a Surface is locked the pixel memory becomes available to
|
||||
access by regular software. Code that reads or writes pixel values will
|
||||
need the Surface to be locked.
|
||||
|
||||
Surfaces should not remain locked for more than necessary. A locked
|
||||
Surface can often not be displayed or managed by pygame.
|
||||
|
||||
Not all Surfaces require locking. The :meth:`mustlock()` method can
|
||||
determine if it is actually required. There is no performance penalty for
|
||||
locking and unlocking a Surface that does not need it.
|
||||
|
||||
All pygame functions will automatically lock and unlock the Surface data
|
||||
as needed. If a section of code is going to make calls that will
|
||||
repeatedly lock and unlock the Surface many times, it can be helpful to
|
||||
wrap the block inside a lock and unlock pair.
|
||||
|
||||
It is safe to nest locking and unlocking calls. The surface will only be
|
||||
unlocked after the final lock is released.
|
||||
|
||||
.. ## Surface.lock ##
|
||||
|
||||
.. method:: unlock
|
||||
|
||||
| :sl:`unlock the Surface memory from pixel access`
|
||||
| :sg:`unlock() -> None`
|
||||
|
||||
Unlock the Surface pixel data after it has been locked. The unlocked
|
||||
Surface can once again be drawn and managed by pygame. See the
|
||||
:meth:`lock()` documentation for more details.
|
||||
|
||||
All pygame functions will automatically lock and unlock the Surface data
|
||||
as needed. If a section of code is going to make calls that will
|
||||
repeatedly lock and unlock the Surface many times, it can be helpful to
|
||||
wrap the block inside a lock and unlock pair.
|
||||
|
||||
It is safe to nest locking and unlocking calls. The surface will only be
|
||||
unlocked after the final lock is released.
|
||||
|
||||
.. ## Surface.unlock ##
|
||||
|
||||
.. method:: mustlock
|
||||
|
||||
| :sl:`test if the Surface requires locking`
|
||||
| :sg:`mustlock() -> bool`
|
||||
|
||||
Returns ``True`` if the Surface is required to be locked to access pixel
|
||||
data. Usually pure software Surfaces do not require locking. This method
|
||||
is rarely needed, since it is safe and quickest to just lock all Surfaces
|
||||
as needed.
|
||||
|
||||
All pygame functions will automatically lock and unlock the Surface data
|
||||
as needed. If a section of code is going to make calls that will
|
||||
repeatedly lock and unlock the Surface many times, it can be helpful to
|
||||
wrap the block inside a lock and unlock pair.
|
||||
|
||||
.. ## Surface.mustlock ##
|
||||
|
||||
.. method:: get_locked
|
||||
|
||||
| :sl:`test if the Surface is current locked`
|
||||
| :sg:`get_locked() -> bool`
|
||||
|
||||
Returns ``True`` when the Surface is locked. It doesn't matter how many
|
||||
times the Surface is locked.
|
||||
|
||||
.. ## Surface.get_locked ##
|
||||
|
||||
.. method:: get_locks
|
||||
|
||||
| :sl:`Gets the locks for the Surface`
|
||||
| :sg:`get_locks() -> tuple`
|
||||
|
||||
Returns the currently existing locks for the Surface.
|
||||
|
||||
.. ## Surface.get_locks ##
|
||||
|
||||
.. method:: get_at
|
||||
|
||||
| :sl:`get the color value at a single pixel`
|
||||
| :sg:`get_at((x, y)) -> Color`
|
||||
|
||||
Return a copy of the ``RGBA`` Color value at the given pixel. If the
|
||||
Surface has no per pixel alpha, then the alpha value will always be 255
|
||||
(opaque). If the pixel position is outside the area of the Surface an
|
||||
``IndexError`` exception will be raised.
|
||||
|
||||
Getting and setting pixels one at a time is generally too slow to be used
|
||||
in a game or realtime situation. It is better to use methods which
|
||||
operate on many pixels at a time like with the blit, fill and draw
|
||||
methods - or by using :mod:`pygame.surfarray`/:mod:`pygame.PixelArray`.
|
||||
|
||||
This function will temporarily lock and unlock the Surface as needed.
|
||||
|
||||
.. versionadded:: 1.9
|
||||
Returning a Color instead of tuple. Use ``tuple(surf.get_at((x,y)))``
|
||||
if you want a tuple, and not a Color. This should only matter if
|
||||
you want to use the color as a key in a dict.
|
||||
|
||||
.. ## Surface.get_at ##
|
||||
|
||||
.. method:: set_at
|
||||
|
||||
| :sl:`set the color value for a single pixel`
|
||||
| :sg:`set_at((x, y), Color) -> None`
|
||||
|
||||
Set the ``RGBA`` or mapped integer color value for a single pixel. If the
|
||||
Surface does not have per pixel alphas, the alpha value is ignored.
|
||||
Setting pixels outside the Surface area or outside the Surface clipping
|
||||
will have no effect.
|
||||
|
||||
Getting and setting pixels one at a time is generally too slow to be used
|
||||
in a game or realtime situation.
|
||||
|
||||
This function will temporarily lock and unlock the Surface as needed.
|
||||
|
||||
.. note:: If the surface is palettized, the pixel color will be set to the
|
||||
most similar color in the palette.
|
||||
|
||||
.. ## Surface.set_at ##
|
||||
|
||||
.. method:: get_at_mapped
|
||||
|
||||
| :sl:`get the mapped color value at a single pixel`
|
||||
| :sg:`get_at_mapped((x, y)) -> Color`
|
||||
|
||||
Return the integer value of the given pixel. If the pixel position is
|
||||
outside the area of the Surface an ``IndexError`` exception will be
|
||||
raised.
|
||||
|
||||
This method is intended for pygame unit testing. It unlikely has any use
|
||||
in an application.
|
||||
|
||||
This function will temporarily lock and unlock the Surface as needed.
|
||||
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. ## Surface.get_at_mapped ##
|
||||
|
||||
.. method:: get_palette
|
||||
|
||||
| :sl:`get the color index palette for an 8-bit Surface`
|
||||
| :sg:`get_palette() -> [RGB, RGB, RGB, ...]`
|
||||
|
||||
Return a list of up to 256 color elements that represent the indexed
|
||||
colors used in an 8-bit Surface. The returned list is a copy of the
|
||||
palette, and changes will have no effect on the Surface.
|
||||
|
||||
Returning a list of ``Color(with length 3)`` instances instead of tuples.
|
||||
|
||||
.. versionadded:: 1.9
|
||||
|
||||
.. ## Surface.get_palette ##
|
||||
|
||||
.. method:: get_palette_at
|
||||
|
||||
| :sl:`get the color for a single entry in a palette`
|
||||
| :sg:`get_palette_at(index) -> RGB`
|
||||
|
||||
Returns the red, green, and blue color values for a single index in a
|
||||
Surface palette. The index should be a value from 0 to 255.
|
||||
|
||||
.. versionadded:: 1.9
|
||||
Returning ``Color(with length 3)`` instance instead of a tuple.
|
||||
|
||||
.. ## Surface.get_palette_at ##
|
||||
|
||||
.. method:: set_palette
|
||||
|
||||
| :sl:`set the color palette for an 8-bit Surface`
|
||||
| :sg:`set_palette([RGB, RGB, RGB, ...]) -> None`
|
||||
|
||||
Set the full palette for an 8-bit Surface. This will replace the colors in
|
||||
the existing palette. A partial palette can be passed and only the first
|
||||
colors in the original palette will be changed.
|
||||
|
||||
This function has no effect on a Surface with more than 8-bits per pixel.
|
||||
|
||||
.. ## Surface.set_palette ##
|
||||
|
||||
.. method:: set_palette_at
|
||||
|
||||
| :sl:`set the color for a single index in an 8-bit Surface palette`
|
||||
| :sg:`set_palette_at(index, RGB) -> None`
|
||||
|
||||
Set the palette value for a single entry in a Surface palette. The index
|
||||
should be a value from 0 to 255.
|
||||
|
||||
This function has no effect on a Surface with more than 8-bits per pixel.
|
||||
|
||||
.. ## Surface.set_palette_at ##
|
||||
|
||||
.. method:: map_rgb
|
||||
|
||||
| :sl:`convert a color into a mapped color value`
|
||||
| :sg:`map_rgb(Color) -> mapped_int`
|
||||
|
||||
Convert an ``RGBA`` color into the mapped integer value for this Surface.
|
||||
The returned integer will contain no more bits than the bit depth of the
|
||||
Surface. Mapped color values are not often used inside pygame, but can be
|
||||
passed to most functions that require a Surface and a color.
|
||||
|
||||
See the Surface object documentation for more information about colors
|
||||
and pixel formats.
|
||||
|
||||
.. ## Surface.map_rgb ##
|
||||
|
||||
.. method:: unmap_rgb
|
||||
|
||||
| :sl:`convert a mapped integer color value into a Color`
|
||||
| :sg:`unmap_rgb(mapped_int) -> Color`
|
||||
|
||||
Convert an mapped integer color into the ``RGB`` color components for
|
||||
this Surface. Mapped color values are not often used inside pygame, but
|
||||
can be passed to most functions that require a Surface and a color.
|
||||
|
||||
See the Surface object documentation for more information about colors
|
||||
and pixel formats.
|
||||
|
||||
.. ## Surface.unmap_rgb ##
|
||||
|
||||
.. method:: set_clip
|
||||
|
||||
| :sl:`set the current clipping area of the Surface`
|
||||
| :sg:`set_clip(rect) -> None`
|
||||
| :sg:`set_clip(None) -> None`
|
||||
|
||||
Each Surface has an active clipping area. This is a rectangle that
|
||||
represents the only pixels on the Surface that can be modified. If
|
||||
``None`` is passed for the rectangle the full Surface will be available
|
||||
for changes.
|
||||
|
||||
The clipping area is always restricted to the area of the Surface itself.
|
||||
If the clip rectangle is too large it will be shrunk to fit inside the
|
||||
Surface.
|
||||
|
||||
.. ## Surface.set_clip ##
|
||||
|
||||
.. method:: get_clip
|
||||
|
||||
| :sl:`get the current clipping area of the Surface`
|
||||
| :sg:`get_clip() -> Rect`
|
||||
|
||||
Return a rectangle of the current clipping area. The Surface will always
|
||||
return a valid rectangle that will never be outside the bounds of the
|
||||
image. If the Surface has had ``None`` set for the clipping area, the
|
||||
Surface will return a rectangle with the full area of the Surface.
|
||||
|
||||
.. ## Surface.get_clip ##
|
||||
|
||||
.. method:: subsurface
|
||||
|
||||
| :sl:`create a new surface that references its parent`
|
||||
| :sg:`subsurface(Rect) -> Surface`
|
||||
|
||||
Returns a new Surface that shares its pixels with its new parent. The new
|
||||
Surface is considered a child of the original. Modifications to either
|
||||
Surface pixels will effect each other. Surface information like clipping
|
||||
area and color keys are unique to each Surface.
|
||||
|
||||
The new Surface will inherit the palette, color key, and alpha settings
|
||||
from its parent.
|
||||
|
||||
It is possible to have any number of subsurfaces and subsubsurfaces on
|
||||
the parent. It is also possible to subsurface the display Surface if the
|
||||
display mode is not hardware accelerated.
|
||||
|
||||
See :meth:`get_offset()` and :meth:`get_parent()` to learn more
|
||||
about the state of a subsurface.
|
||||
|
||||
A subsurface will have the same class as the parent surface.
|
||||
|
||||
.. ## Surface.subsurface ##
|
||||
|
||||
.. method:: get_parent
|
||||
|
||||
| :sl:`find the parent of a subsurface`
|
||||
| :sg:`get_parent() -> Surface`
|
||||
|
||||
Returns the parent Surface of a subsurface. If this is not a subsurface
|
||||
then ``None`` will be returned.
|
||||
|
||||
.. ## Surface.get_parent ##
|
||||
|
||||
.. method:: get_abs_parent
|
||||
|
||||
| :sl:`find the top level parent of a subsurface`
|
||||
| :sg:`get_abs_parent() -> Surface`
|
||||
|
||||
Returns the parent Surface of a subsurface. If this is not a subsurface
|
||||
then this surface will be returned.
|
||||
|
||||
.. ## Surface.get_abs_parent ##
|
||||
|
||||
.. method:: get_offset
|
||||
|
||||
| :sl:`find the position of a child subsurface inside a parent`
|
||||
| :sg:`get_offset() -> (x, y)`
|
||||
|
||||
Get the offset position of a child subsurface inside of a parent. If the
|
||||
Surface is not a subsurface this will return (0, 0).
|
||||
|
||||
.. ## Surface.get_offset ##
|
||||
|
||||
.. method:: get_abs_offset
|
||||
|
||||
| :sl:`find the absolute position of a child subsurface inside its top level parent`
|
||||
| :sg:`get_abs_offset() -> (x, y)`
|
||||
|
||||
Get the offset position of a child subsurface inside of its top level
|
||||
parent Surface. If the Surface is not a subsurface this will return (0,
|
||||
0).
|
||||
|
||||
.. ## Surface.get_abs_offset ##
|
||||
|
||||
.. method:: get_size
|
||||
|
||||
| :sl:`get the dimensions of the Surface`
|
||||
| :sg:`get_size() -> (width, height)`
|
||||
|
||||
Return the width and height of the Surface in pixels.
|
||||
|
||||
.. ## Surface.get_size ##
|
||||
|
||||
.. method:: get_width
|
||||
|
||||
| :sl:`get the width of the Surface`
|
||||
| :sg:`get_width() -> width`
|
||||
|
||||
Return the width of the Surface in pixels.
|
||||
|
||||
.. ## Surface.get_width ##
|
||||
|
||||
.. method:: get_height
|
||||
|
||||
| :sl:`get the height of the Surface`
|
||||
| :sg:`get_height() -> height`
|
||||
|
||||
Return the height of the Surface in pixels.
|
||||
|
||||
.. ## Surface.get_height ##
|
||||
|
||||
.. method:: get_rect
|
||||
|
||||
| :sl:`get the rectangular area of the Surface`
|
||||
| :sg:`get_rect(\**kwargs) -> Rect`
|
||||
|
||||
Returns a new rectangle covering the entire surface. This rectangle will
|
||||
always start at (0, 0) with a width and height the same size as the image.
|
||||
|
||||
You can pass keyword argument values to this function. These named values
|
||||
will be applied to the attributes of the Rect before it is returned. An
|
||||
example would be ``mysurf.get_rect(center=(100, 100))`` to create a
|
||||
rectangle for the Surface centered at a given position.
|
||||
|
||||
.. ## Surface.get_rect ##
|
||||
|
||||
.. method:: get_bitsize
|
||||
|
||||
| :sl:`get the bit depth of the Surface pixel format`
|
||||
| :sg:`get_bitsize() -> int`
|
||||
|
||||
Returns the number of bits used to represent each pixel. This value may
|
||||
not exactly fill the number of bytes used per pixel. For example a 15 bit
|
||||
Surface still requires a full 2 bytes.
|
||||
|
||||
.. ## Surface.get_bitsize ##
|
||||
|
||||
.. method:: get_bytesize
|
||||
|
||||
| :sl:`get the bytes used per Surface pixel`
|
||||
| :sg:`get_bytesize() -> int`
|
||||
|
||||
Return the number of bytes used per pixel.
|
||||
|
||||
.. ## Surface.get_bytesize ##
|
||||
|
||||
.. method:: get_flags
|
||||
|
||||
| :sl:`get the additional flags used for the Surface`
|
||||
| :sg:`get_flags() -> int`
|
||||
|
||||
Returns a set of current Surface features. Each feature is a bit in the
|
||||
flags bitmask. Typical flags are ``RLEACCEL``, ``SRCALPHA``, and
|
||||
``SRCCOLORKEY``.
|
||||
|
||||
Here is a more complete list of flags. A full list can be found in
|
||||
``SDL_video.h``
|
||||
|
||||
::
|
||||
|
||||
SWSURFACE 0x00000000 # Surface is in system memory
|
||||
HWSURFACE 0x00000001 # (obsolete in pygame 2) Surface is in video memory
|
||||
ASYNCBLIT 0x00000004 # (obsolete in pygame 2) Use asynchronous blits if possible
|
||||
|
||||
See :func:`pygame.display.set_mode()` for flags exclusive to the
|
||||
display surface.
|
||||
|
||||
Used internally (read-only)
|
||||
|
||||
::
|
||||
|
||||
HWACCEL 0x00000100 # Blit uses hardware acceleration
|
||||
SRCCOLORKEY 0x00001000 # Blit uses a source color key
|
||||
RLEACCELOK 0x00002000 # Private flag
|
||||
RLEACCEL 0x00004000 # Surface is RLE encoded
|
||||
SRCALPHA 0x00010000 # Blit uses source alpha blending
|
||||
PREALLOC 0x01000000 # Surface uses preallocated memory
|
||||
|
||||
.. ## Surface.get_flags ##
|
||||
|
||||
.. method:: get_pitch
|
||||
|
||||
| :sl:`get the number of bytes used per Surface row`
|
||||
| :sg:`get_pitch() -> int`
|
||||
|
||||
Return the number of bytes separating each row in the Surface. Surfaces
|
||||
in video memory are not always linearly packed. Subsurfaces will also
|
||||
have a larger pitch than their real width.
|
||||
|
||||
This value is not needed for normal pygame usage.
|
||||
|
||||
.. ## Surface.get_pitch ##
|
||||
|
||||
.. method:: get_masks
|
||||
|
||||
| :sl:`the bitmasks needed to convert between a color and a mapped integer`
|
||||
| :sg:`get_masks() -> (R, G, B, A)`
|
||||
|
||||
Returns the bitmasks used to isolate each color in a mapped integer.
|
||||
|
||||
This value is not needed for normal pygame usage.
|
||||
|
||||
.. ## Surface.get_masks ##
|
||||
|
||||
.. method:: set_masks
|
||||
|
||||
| :sl:`set the bitmasks needed to convert between a color and a mapped integer`
|
||||
| :sg:`set_masks((r,g,b,a)) -> None`
|
||||
|
||||
This is not needed for normal pygame usage.
|
||||
|
||||
.. note:: Starting in pygame 2.0, the masks are read-only and
|
||||
accordingly this method will raise a TypeError if called.
|
||||
|
||||
.. deprecated:: 2.0.0
|
||||
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## Surface.set_masks ##
|
||||
|
||||
.. method:: get_shifts
|
||||
|
||||
| :sl:`the bit shifts needed to convert between a color and a mapped integer`
|
||||
| :sg:`get_shifts() -> (R, G, B, A)`
|
||||
|
||||
Returns the pixel shifts need to convert between each color and a mapped
|
||||
integer.
|
||||
|
||||
This value is not needed for normal pygame usage.
|
||||
|
||||
.. ## Surface.get_shifts ##
|
||||
|
||||
.. method:: set_shifts
|
||||
|
||||
| :sl:`sets the bit shifts needed to convert between a color and a mapped integer`
|
||||
| :sg:`set_shifts((r,g,b,a)) -> None`
|
||||
|
||||
This is not needed for normal pygame usage.
|
||||
|
||||
.. note:: Starting in pygame 2.0, the shifts are read-only and
|
||||
accordingly this method will raise a TypeError if called.
|
||||
|
||||
.. deprecated:: 2.0.0
|
||||
|
||||
.. versionadded:: 1.8.1
|
||||
|
||||
.. ## Surface.set_shifts ##
|
||||
|
||||
.. method:: get_losses
|
||||
|
||||
| :sl:`the significant bits used to convert between a color and a mapped integer`
|
||||
| :sg:`get_losses() -> (R, G, B, A)`
|
||||
|
||||
Return the least significant number of bits stripped from each color in a
|
||||
mapped integer.
|
||||
|
||||
This value is not needed for normal pygame usage.
|
||||
|
||||
.. ## Surface.get_losses ##
|
||||
|
||||
.. method:: get_bounding_rect
|
||||
|
||||
| :sl:`find the smallest rect containing data`
|
||||
| :sg:`get_bounding_rect(min_alpha = 1) -> Rect`
|
||||
|
||||
Returns the smallest rectangular region that contains all the pixels in
|
||||
the surface that have an alpha value greater than or equal to the minimum
|
||||
alpha value.
|
||||
|
||||
This function will temporarily lock and unlock the Surface as needed.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## Surface.get_bounding_rect ##
|
||||
|
||||
.. method:: get_view
|
||||
|
||||
| :sl:`return a buffer view of the Surface's pixels.`
|
||||
| :sg:`get_view(<kind>='2') -> BufferProxy`
|
||||
|
||||
Return an object which exports a surface's internal pixel buffer as
|
||||
a C level array struct, Python level array interface or a C level
|
||||
buffer interface. The new buffer protocol is supported.
|
||||
|
||||
The kind argument is the length 1 string '0', '1', '2', '3',
|
||||
'r', 'g', 'b', or 'a'. The letters are case insensitive;
|
||||
'A' will work as well. The argument can be either a Unicode or byte (char)
|
||||
string. The default is '2'.
|
||||
|
||||
'0' returns a contiguous unstructured bytes view. No surface shape
|
||||
information is given. A ``ValueError`` is raised if the surface's pixels
|
||||
are discontinuous.
|
||||
|
||||
'1' returns a (surface-width * surface-height) array of continuous
|
||||
pixels. A ``ValueError`` is raised if the surface pixels are
|
||||
discontinuous.
|
||||
|
||||
'2' returns a (surface-width, surface-height) array of raw pixels.
|
||||
The pixels are surface-bytesize-d unsigned integers. The pixel format is
|
||||
surface specific. The 3 byte unsigned integers of 24 bit surfaces are
|
||||
unlikely accepted by anything other than other pygame functions.
|
||||
|
||||
'3' returns a (surface-width, surface-height, 3) array of ``RGB`` color
|
||||
components. Each of the red, green, and blue components are unsigned
|
||||
bytes. Only 24-bit and 32-bit surfaces are supported. The color
|
||||
components must be in either ``RGB`` or ``BGR`` order within the pixel.
|
||||
|
||||
'r' for red, 'g' for green, 'b' for blue, and 'a' for alpha return a
|
||||
(surface-width, surface-height) view of a single color component within a
|
||||
surface: a color plane. Color components are unsigned bytes. Both 24-bit
|
||||
and 32-bit surfaces support 'r', 'g', and 'b'. Only 32-bit surfaces with
|
||||
``SRCALPHA`` support 'a'.
|
||||
|
||||
The surface is locked only when an exposed interface is accessed.
|
||||
For new buffer interface accesses, the surface is unlocked once the
|
||||
last buffer view is released. For array interface and old buffer
|
||||
interface accesses, the surface remains locked until the BufferProxy
|
||||
object is released.
|
||||
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. method:: get_buffer
|
||||
|
||||
| :sl:`acquires a buffer object for the pixels of the Surface.`
|
||||
| :sg:`get_buffer() -> BufferProxy`
|
||||
|
||||
Return a buffer object for the pixels of the Surface. The buffer can be
|
||||
used for direct pixel access and manipulation. Surface pixel data is
|
||||
represented as an unstructured block of memory, with a start address
|
||||
and length in bytes. The data need not be contiguous. Any gaps are
|
||||
included in the length, but otherwise ignored.
|
||||
|
||||
This method implicitly locks the Surface. The lock will be released when
|
||||
the returned :mod:`pygame.BufferProxy` object is garbage collected.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## Surface.get_buffer ##
|
||||
|
||||
.. attribute:: _pixels_address
|
||||
|
||||
| :sl:`pixel buffer address`
|
||||
| :sg:`_pixels_address -> int`
|
||||
|
||||
The starting address of the surface's raw pixel bytes.
|
||||
|
||||
.. versionadded:: 1.9.2
|
||||
|
||||
.. method:: premul_alpha
|
||||
|
||||
| :sl:`returns a copy of the surface with the RGB channels pre-multiplied by the alpha channel.`
|
||||
| :sg:`premul_alpha() -> Surface`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave premul_alpha feedback with authors <https://github.com/pygame/pygame/pull/3276>`_
|
||||
|
||||
Returns a copy of the initial surface with the red, green and blue color channels multiplied
|
||||
by the alpha channel. This is intended to make it easier to work with the BLEND_PREMULTIPLED
|
||||
blend mode flag of the blit() method. Surfaces which have called this method will only look
|
||||
correct after blitting if the BLEND_PREMULTIPLED special flag is used.
|
||||
|
||||
It is worth noting that after calling this method, methods that return the colour of a pixel
|
||||
such as get_at() will return the alpha multiplied colour values. It is not possible to fully
|
||||
reverse an alpha multiplication of the colours in a surface as integer colour channel data
|
||||
is generally reduced by the operation (e.g. 255 x 0 = 0, from there it is not possible to reconstruct
|
||||
the original 255 from just the two remaining zeros in the colour and alpha channels).
|
||||
|
||||
If you call this method, and then call it again, it will multiply the colour channels by the alpha channel
|
||||
twice. There are many possible ways to obtain a surface with the colour channels pre-multiplied by the
|
||||
alpha channel in pygame, and it is not possible to tell the difference just from the information in the pixels.
|
||||
It is completely possible to have two identical surfaces - one intended for pre-multiplied alpha blending and
|
||||
one intended for normal blending. For this reason we do not store state on surfaces intended for pre-multiplied
|
||||
alpha blending.
|
||||
|
||||
Surfaces without an alpha channel cannot use this method and will return an error if you use
|
||||
it on them. It is best used on 32 bit surfaces (the default on most platforms) as the blitting
|
||||
on these surfaces can be accelerated by SIMD versions of the pre-multiplied blitter.
|
||||
|
||||
In general pre-multiplied alpha blitting is faster then 'straight alpha' blitting and produces
|
||||
superior results when blitting an alpha surface onto another surface with alpha - assuming both
|
||||
surfaces contain pre-multiplied alpha colours.
|
||||
|
||||
.. versionadded:: 2.2.0
|
||||
|
||||
.. ## Surface.premul_alpha ##
|
||||
|
||||
.. ## pygame.Surface ##
|
||||
|
||||
|
||||
@@ -30,13 +30,11 @@ specific pixel value of a color. Integer pixel values can only be used directly
|
||||
between surfaces with matching pixel layouts (see :class:`pygame.Surface`).
|
||||
|
||||
All functions that refer to "array" will copy the surface information to a new
|
||||
NumPy array. All functions that refer to "pixels" will directly reference the
|
||||
numpy array. All functions that refer to "pixels" will directly reference the
|
||||
pixels from the surface and any changes performed to the array will make changes
|
||||
in the surface. As this last functions share memory with the surface, this one
|
||||
will be locked during the lifetime of the array.
|
||||
|
||||
.. versionchanged:: 2.5.6 surfarray module is lazily loaded to avoid an expensive NumPy import when unnecessary
|
||||
|
||||
.. function:: array2d
|
||||
|
||||
| :sl:`Copy pixels into a 2d array`
|
||||
@@ -151,7 +149,7 @@ will be locked during the lifetime of the array.
|
||||
the :meth:`pygame.Surface.lock` - lock the Surface memory for pixel
|
||||
access method).
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## pygame.surfarray.array_red ##
|
||||
|
||||
@@ -185,7 +183,7 @@ will be locked during the lifetime of the array.
|
||||
the :meth:`pygame.Surface.lock` - lock the Surface memory for pixel
|
||||
access method).
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## pygame.surfarray.array_green ##
|
||||
|
||||
@@ -219,7 +217,7 @@ will be locked during the lifetime of the array.
|
||||
the :meth:`pygame.Surface.lock` - lock the Surface memory for pixel
|
||||
access method).
|
||||
|
||||
.. versionaddedold:: 2.0.2
|
||||
.. versionadded:: 2.0.2
|
||||
|
||||
.. ## pygame.surfarray.array_blue ##
|
||||
|
||||
@@ -267,10 +265,6 @@ will be locked during the lifetime of the array.
|
||||
make_surface uses the array struct interface to acquire array properties,
|
||||
so is not limited to just NumPy arrays. See :mod:`pygame.pixelcopy`.
|
||||
|
||||
``float32``, ``float64`` and (where available) ``float96`` NumPy arrays
|
||||
are also accepted, but are first rounded to the nearest integer and
|
||||
copied into a new array before creating the surface.
|
||||
|
||||
New in pygame 1.9.2: array struct interface support.
|
||||
|
||||
.. ## pygame.surfarray.make_surface ##
|
||||
@@ -282,14 +276,8 @@ will be locked during the lifetime of the array.
|
||||
|
||||
Directly copy values from an array into a Surface. This is faster than
|
||||
converting the array into a Surface and blitting. The array must be the same
|
||||
dimensions as the Surface and will completely replace all pixel values.
|
||||
Accepted array types are integer, ASCII character and record arrays, as
|
||||
well as ``float32``, ``float64`` and (where available) ``float96`` NumPy
|
||||
arrays.
|
||||
|
||||
Float arrays are first rounded to the nearest integer and copied into
|
||||
a new array before blitting. This is significantly slower (on the order of 2x)
|
||||
versus passing an integer array.
|
||||
dimensions as the Surface and will completely replace all pixel values. Only
|
||||
integer, ASCII character and record arrays are accepted.
|
||||
|
||||
This function will temporarily lock the Surface as the new values are
|
||||
copied.
|
||||
@@ -327,7 +315,7 @@ will be locked during the lifetime of the array.
|
||||
``get_arraytypes()`` tuple and indicates which type of array module is used
|
||||
for the array creation. Using this function will raise a ``DeprecationWarning``.
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.surfarray.get_arraytype ##
|
||||
|
||||
@@ -342,7 +330,7 @@ will be locked during the lifetime of the array.
|
||||
system could be found, None will be returned. Using this function will raise a
|
||||
``DeprecationWarning``.
|
||||
|
||||
.. versionaddedold:: 1.8
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.surfarray.get_arraytypes ##
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
.. include:: common.txt
|
||||
|
||||
:mod:`pygame.system`
|
||||
====================
|
||||
|
||||
.. autopgmodule:: pygame.system
|
||||
:members:
|
||||
@@ -20,7 +20,7 @@ correspond to the :func:`pygame.tests.run` arguments.
|
||||
|
||||
The xxxx_test submodules of the tests package are unit test suites for
|
||||
individual parts of pygame. Each can also be run as a main program. This is
|
||||
useful if the test is interactive.
|
||||
useful if the test, such as cdrom_test, is interactive.
|
||||
|
||||
For pygame development the test suite can be run from a pygame distribution
|
||||
root directory. Program ``run_tests.py`` is provided for convenience, though
|
||||
@@ -29,12 +29,15 @@ test/go.py can be run directly.
|
||||
Module level tags control which modules are included in a unit test run. Tags
|
||||
are assigned to a unit test module with a corresponding <name>_tags.py module.
|
||||
The tags module has the global __tags__, a list of tag names. For example,
|
||||
``controller_test.py`` has a tag variable containing a tags list that
|
||||
has the 'interactive' string. The 'interactive' tag indicates ``controller_test.py``
|
||||
``cdrom_test.py`` has a tag file ``cdrom_tags.py`` containing a tags list that
|
||||
has the 'interactive' string. The 'interactive' tag indicates ``cdrom_test.py``
|
||||
expects user input. It is excluded from a ``run_tests.py`` or
|
||||
``pygame.tests.go`` run. Two other tags that are excluded are 'ignore' and
|
||||
'subprocess_ignore'. These two tags indicate unit tests that will not run on a
|
||||
particular platform, or for which no corresponding pygame module is available.
|
||||
``pygame.tests.go`` run.
|
||||
|
||||
Two other tags that are excluded are 'ignore' and 'subprocess_ignore'. These
|
||||
two tags indicate unit tests that will not run on a particular platform, or
|
||||
for which no corresponding pygame module is available.
|
||||
|
||||
The test runner will list each excluded module along with the tag responsible.
|
||||
|
||||
.. function:: run
|
||||
@@ -85,19 +88,21 @@ The test runner will list each excluded module along with the tag responsible.
|
||||
By default individual test modules are run in separate subprocesses. This
|
||||
recreates normal pygame usage where ``pygame.init()`` and ``pygame.quit()``
|
||||
are called only once per program execution, and avoids unfortunate
|
||||
interactions between test modules. Also, a time limit is placed on test
|
||||
execution, so frozen tests are killed when their time allotment expired. Use
|
||||
the single process option if threading is not working properly or if tests
|
||||
are taking too long. It is not guaranteed that all tests will pass in single
|
||||
process mode.
|
||||
interactions between test modules.
|
||||
|
||||
A time limit is placed on test execution ensuring that any frozen tests
|
||||
processes are killed when their time allotment is expired. Use the single
|
||||
process option if threading is not working properly or if tests are taking
|
||||
too long. It is not guaranteed that all tests will pass in single process
|
||||
mode.
|
||||
|
||||
Tests are run in a randomized order if the randomize argument is True or a
|
||||
seed argument is provided. If no seed integer is provided then the system
|
||||
time is used.
|
||||
time is used for the randomization seed value.
|
||||
|
||||
Individual test modules may have a __tags__ attribute, a list of tag strings
|
||||
used to selectively omit modules from a run. By default only 'interactive'
|
||||
modules such as controller_test are ignored. An interactive module must be run
|
||||
modules such as cdrom_test are ignored. An interactive module must be run
|
||||
from the console as a Python program.
|
||||
|
||||
This function can only be called once per Python session. It is not
|
||||
|
||||
@@ -3,5 +3,163 @@
|
||||
:mod:`pygame.time`
|
||||
==================
|
||||
|
||||
.. autopgmodule:: pygame.time
|
||||
:members:
|
||||
.. module:: pygame.time
|
||||
:synopsis: pygame module for monitoring time
|
||||
|
||||
| :sl:`pygame module for monitoring time`
|
||||
|
||||
Times in pygame are represented in milliseconds (1/1000 seconds). Most
|
||||
platforms have a limited time resolution of around 10 milliseconds. This
|
||||
resolution, in milliseconds, is given in the ``TIMER_RESOLUTION`` constant.
|
||||
|
||||
.. function:: get_ticks
|
||||
|
||||
| :sl:`get the time in milliseconds`
|
||||
| :sg:`get_ticks() -> milliseconds`
|
||||
|
||||
Return the number of milliseconds since ``pygame.init()`` was called. Before
|
||||
pygame is initialized this will always be 0.
|
||||
|
||||
.. ## pygame.time.get_ticks ##
|
||||
|
||||
.. function:: wait
|
||||
|
||||
| :sl:`pause the program for an amount of time`
|
||||
| :sg:`wait(milliseconds) -> time`
|
||||
|
||||
Will pause for a given number of milliseconds. This function sleeps the
|
||||
process to share the processor with other programs. A program that waits for
|
||||
even a few milliseconds will consume very little processor time. It is
|
||||
slightly less accurate than the ``pygame.time.delay()`` function.
|
||||
|
||||
This returns the actual number of milliseconds used.
|
||||
|
||||
.. ## pygame.time.wait ##
|
||||
|
||||
.. function:: delay
|
||||
|
||||
| :sl:`pause the program for an amount of time`
|
||||
| :sg:`delay(milliseconds) -> time`
|
||||
|
||||
Will pause for a given number of milliseconds. This function will use the
|
||||
processor (rather than sleeping) in order to make the delay more accurate
|
||||
than ``pygame.time.wait()``.
|
||||
|
||||
This returns the actual number of milliseconds used.
|
||||
|
||||
.. ## pygame.time.delay ##
|
||||
|
||||
.. function:: set_timer
|
||||
|
||||
| :sl:`repeatedly create an event on the event queue`
|
||||
| :sg:`set_timer(event, millis) -> None`
|
||||
| :sg:`set_timer(event, millis, loops=0) -> None`
|
||||
|
||||
Set an event to appear on the event queue every given number of milliseconds.
|
||||
The first event will not appear until the amount of time has passed.
|
||||
|
||||
The ``event`` attribute can be a ``pygame.event.Event`` object or an integer
|
||||
type that denotes an event.
|
||||
|
||||
``loops`` is an integer that denotes the number of events posted. If 0 (default)
|
||||
then the events will keep getting posted, unless explicitly stopped.
|
||||
|
||||
To disable the timer for such an event, call the function again with the same
|
||||
event argument with ``millis`` argument set to 0.
|
||||
|
||||
It is also worth mentioning that a particular event type can only be put on a
|
||||
timer once. In other words, there cannot be two timers for the same event type.
|
||||
Setting an event timer for a particular event discards the old one for that
|
||||
event type.
|
||||
|
||||
``loops`` replaces the ``once`` argument, and this does not break backward
|
||||
compatibility
|
||||
|
||||
.. versionadded:: 2.0.0.dev3 once argument added.
|
||||
.. versionchanged:: 2.0.1 event argument supports ``pygame.event.Event`` object
|
||||
.. versionadded:: 2.0.1 added loops argument to replace once argument
|
||||
|
||||
.. ## pygame.time.set_timer ##
|
||||
|
||||
.. class:: Clock
|
||||
|
||||
| :sl:`create an object to help track time`
|
||||
| :sg:`Clock() -> Clock`
|
||||
|
||||
Creates a new Clock object that can be used to track an amount of time. The
|
||||
clock also provides several functions to help control a game's framerate.
|
||||
|
||||
.. method:: tick
|
||||
|
||||
| :sl:`update the clock`
|
||||
| :sg:`tick(framerate=0) -> milliseconds`
|
||||
|
||||
This method should be called once per frame. It will compute how many
|
||||
milliseconds have passed since the previous call.
|
||||
|
||||
If you pass the optional framerate argument the function will delay to
|
||||
keep the game running slower than the given ticks per second. This can be
|
||||
used to help limit the runtime speed of a game. By calling
|
||||
``Clock.tick(40)`` once per frame, the program will never run at more
|
||||
than 40 frames per second.
|
||||
|
||||
Note that this function uses SDL_Delay function which is not accurate on
|
||||
every platform, but does not use much CPU. Use tick_busy_loop if you want
|
||||
an accurate timer, and don't mind chewing CPU.
|
||||
|
||||
.. ## Clock.tick ##
|
||||
|
||||
.. method:: tick_busy_loop
|
||||
|
||||
| :sl:`update the clock`
|
||||
| :sg:`tick_busy_loop(framerate=0) -> milliseconds`
|
||||
|
||||
This method should be called once per frame. It will compute how many
|
||||
milliseconds have passed since the previous call.
|
||||
|
||||
If you pass the optional framerate argument the function will delay to
|
||||
keep the game running slower than the given ticks per second. This can be
|
||||
used to help limit the runtime speed of a game. By calling
|
||||
``Clock.tick_busy_loop(40)`` once per frame, the program will never run at
|
||||
more than 40 frames per second.
|
||||
|
||||
Note that this function uses :func:`pygame.time.delay`, which uses lots
|
||||
of CPU in a busy loop to make sure that timing is more accurate.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## Clock.tick_busy_loop ##
|
||||
|
||||
.. method:: get_time
|
||||
|
||||
| :sl:`time used in the previous tick`
|
||||
| :sg:`get_time() -> milliseconds`
|
||||
|
||||
The number of milliseconds that passed between the previous two calls to
|
||||
``Clock.tick()``.
|
||||
|
||||
.. ## Clock.get_time ##
|
||||
|
||||
.. method:: get_rawtime
|
||||
|
||||
| :sl:`actual time used in the previous tick`
|
||||
| :sg:`get_rawtime() -> milliseconds`
|
||||
|
||||
Similar to ``Clock.get_time()``, but does not include any time used
|
||||
while ``Clock.tick()`` was delaying to limit the framerate.
|
||||
|
||||
.. ## Clock.get_rawtime ##
|
||||
|
||||
.. method:: get_fps
|
||||
|
||||
| :sl:`compute the clock framerate`
|
||||
| :sg:`get_fps() -> float`
|
||||
|
||||
Compute your game's framerate (in frames per second). It is computed by
|
||||
averaging the last ten calls to ``Clock.tick()``.
|
||||
|
||||
.. ## Clock.get_fps ##
|
||||
|
||||
.. ## pygame.time.Clock ##
|
||||
|
||||
.. ## pygame.time ##
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
| :sl:`pygame module to work with touch input`
|
||||
|
||||
.. versionaddedold:: 2 This module requires SDL2.
|
||||
.. versionadded:: 2 This module requires SDL2.
|
||||
|
||||
.. function:: get_num_devices
|
||||
|
||||
@@ -44,15 +44,14 @@
|
||||
.. function:: get_finger
|
||||
|
||||
| :sl:`get information about an active finger`
|
||||
| :sg:`get_finger(touchid, index) -> dict | None`
|
||||
| :sg:`get_finger(touchid, index) -> int`
|
||||
|
||||
:param int touchid: The touch device id.
|
||||
:param int index: The index of the finger to return
|
||||
information about, between 0 and the
|
||||
:func:`number of active fingers <pygame._sdl2.touch.get_num_fingers()>`.
|
||||
|
||||
Return a dict for the finger ``index`` active on ``touchid``, or ``None`` if the
|
||||
object does not exist.
|
||||
Return a dict for the finger ``index`` active on ``touchid``.
|
||||
The dict contains these keys:
|
||||
|
||||
::
|
||||
|
||||
@@ -3,5 +3,323 @@
|
||||
:mod:`pygame.transform`
|
||||
=======================
|
||||
|
||||
.. autopgmodule:: pygame.transform
|
||||
:members:
|
||||
.. module:: pygame.transform
|
||||
:synopsis: pygame module to transform surfaces
|
||||
|
||||
| :sl:`pygame module to transform surfaces`
|
||||
|
||||
A Surface transform is an operation that moves or resizes the pixels. All these
|
||||
functions take a Surface to operate on and return a new Surface with the
|
||||
results.
|
||||
|
||||
Some of the transforms are considered destructive. These means every time they
|
||||
are performed they lose pixel data. Common examples of this are resizing and
|
||||
rotating. For this reason, it is better to re-transform the original surface
|
||||
than to keep transforming an image multiple times. (For example, suppose you
|
||||
are animating a bouncing spring which expands and contracts. If you applied the
|
||||
size changes incrementally to the previous images, you would lose detail.
|
||||
Instead, always begin with the original image and scale to the desired size.)
|
||||
|
||||
.. versionchanged:: 2.0.2 transform functions now support keyword arguments.
|
||||
|
||||
.. function:: flip
|
||||
|
||||
| :sl:`flip vertically and horizontally`
|
||||
| :sg:`flip(surface, flip_x, flip_y) -> Surface`
|
||||
|
||||
This can flip a Surface either vertically, horizontally, or both.
|
||||
The arguments ``flip_x`` and ``flip_y`` are booleans that control whether
|
||||
to flip each axis. Flipping a Surface is non-destructive and returns a new
|
||||
Surface with the same dimensions.
|
||||
|
||||
.. ## pygame.transform.flip ##
|
||||
|
||||
.. function:: scale
|
||||
|
||||
| :sl:`resize to new resolution`
|
||||
| :sg:`scale(surface, size, dest_surface=None) -> Surface`
|
||||
|
||||
Resizes the Surface to a new size, given as (width, height).
|
||||
This is a fast scale operation that does not sample the results.
|
||||
|
||||
An optional destination surface can be used, rather than have it create a
|
||||
new one. This is quicker if you want to repeatedly scale something. However
|
||||
the destination must be the same size as the size (width, height) passed in. Also
|
||||
the destination surface must be the same format.
|
||||
|
||||
.. ## pygame.transform.scale ##
|
||||
|
||||
.. function:: scale_by
|
||||
|
||||
| :sl:`resize to new resolution, using scalar(s)`
|
||||
| :sg:`scale_by(surface, factor, dest_surface=None) -> Surface`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave scale_by feedback with authors <https://github.com/pygame/pygame/pull/2723>`_
|
||||
|
||||
Same as :func:`scale()`, but scales by some factor, rather than taking
|
||||
the new size explicitly. For example, :code:`transform.scale_by(surf, 3)`
|
||||
will triple the size of the surface in both dimensions. Optionally, the
|
||||
scale factor can be a sequence of two numbers, controlling x and y scaling
|
||||
separately. For example, :code:`transform.scale_by(surf, (2, 1))` doubles
|
||||
the image width but keeps the height the same.
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. ## pygame.transform.scale_by ##
|
||||
|
||||
.. function:: rotate
|
||||
|
||||
| :sl:`rotate an image`
|
||||
| :sg:`rotate(surface, angle) -> Surface`
|
||||
|
||||
Unfiltered counterclockwise rotation. The angle argument represents degrees
|
||||
and can be any floating point value. Negative angle amounts will rotate
|
||||
clockwise.
|
||||
|
||||
Unless rotating by 90 degree increments, the image will be padded larger to
|
||||
hold the new size. If the image has pixel alphas, the padded area will be
|
||||
transparent. Otherwise pygame will pick a color that matches the Surface
|
||||
colorkey or the topleft pixel value.
|
||||
|
||||
.. ## pygame.transform.rotate ##
|
||||
|
||||
.. function:: rotozoom
|
||||
|
||||
| :sl:`filtered scale and rotation`
|
||||
| :sg:`rotozoom(surface, angle, scale) -> Surface`
|
||||
|
||||
This is a combined scale and rotation transform. The resulting Surface will
|
||||
be a filtered 32-bit Surface. The scale argument is a floating point value
|
||||
that will be multiplied by the current resolution. The angle argument is a
|
||||
floating point value that represents the counterclockwise degrees to rotate.
|
||||
A negative rotation angle will rotate clockwise.
|
||||
|
||||
.. ## pygame.transform.rotozoom ##
|
||||
|
||||
.. function:: scale2x
|
||||
|
||||
| :sl:`specialized image doubler`
|
||||
| :sg:`scale2x(surface, dest_surface=None) -> Surface`
|
||||
|
||||
This will return a new image that is double the size of the original. It
|
||||
uses the AdvanceMAME Scale2X algorithm which does a 'jaggie-less' scale of
|
||||
bitmap graphics.
|
||||
|
||||
This really only has an effect on simple images with solid colors. On
|
||||
photographic and antialiased images it will look like a regular unfiltered
|
||||
scale.
|
||||
|
||||
An optional destination surface can be used, rather than have it create a
|
||||
new one. This is quicker if you want to repeatedly scale something. However
|
||||
the destination must be twice the size of the source surface passed in. Also
|
||||
the destination surface must be the same format.
|
||||
|
||||
.. ## pygame.transform.scale2x ##
|
||||
|
||||
.. function:: smoothscale
|
||||
|
||||
| :sl:`scale a surface to an arbitrary size smoothly`
|
||||
| :sg:`smoothscale(surface, size, dest_surface=None) -> Surface`
|
||||
|
||||
Uses one of two different algorithms for scaling each dimension of the input
|
||||
surface as required. For shrinkage, the output pixels are area averages of
|
||||
the colors they cover. For expansion, a bilinear filter is used. For the
|
||||
x86-64 and i686 architectures, optimized ``MMX`` routines are included and
|
||||
will run much faster than other machine types. The size is a 2 number
|
||||
sequence for (width, height). This function only works for 24-bit or 32-bit
|
||||
surfaces. An exception will be thrown if the input surface bit depth is less
|
||||
than 24.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.transform.smoothscale ##
|
||||
|
||||
.. function:: smoothscale_by
|
||||
|
||||
| :sl:`resize to new resolution, using scalar(s)`
|
||||
| :sg:`smoothscale_by(surface, factor, dest_surface=None) -> Surface`
|
||||
|
||||
**Experimental:** feature still in development available for testing and feedback. It may change.
|
||||
`Please leave smoothscale_by feedback with authors <https://github.com/pygame/pygame/pull/2723>`_
|
||||
|
||||
Same as :func:`smoothscale()`, but scales by some factor, rather than
|
||||
taking the new size explicitly. For example,
|
||||
:code:`transform.smoothscale_by(surf, 3)` will triple the size of the
|
||||
surface in both dimensions. Optionally, the scale factor can be a sequence
|
||||
of two numbers, controlling x and y scaling separately. For example,
|
||||
:code:`transform.smoothscale_by(surf, (2, 1))` doubles the image width but
|
||||
keeps the height the same.
|
||||
|
||||
.. versionadded:: 2.1.3
|
||||
|
||||
.. ## pygame.transform.smoothscale_by ##
|
||||
|
||||
.. function:: get_smoothscale_backend
|
||||
|
||||
| :sl:`return smoothscale filter version in use: 'GENERIC', 'MMX', or 'SSE'`
|
||||
| :sg:`get_smoothscale_backend() -> string`
|
||||
|
||||
Shows whether or not smoothscale is using ``MMX`` or ``SSE`` acceleration.
|
||||
If no acceleration is available then "GENERIC" is returned. For a x86
|
||||
processor the level of acceleration to use is determined at runtime.
|
||||
|
||||
This function is provided for pygame testing and debugging.
|
||||
|
||||
.. ## pygame.transform.get_smoothscale_backend ##
|
||||
|
||||
.. function:: set_smoothscale_backend
|
||||
|
||||
| :sl:`set smoothscale filter version to one of: 'GENERIC', 'MMX', or 'SSE'`
|
||||
| :sg:`set_smoothscale_backend(backend) -> None`
|
||||
|
||||
Sets smoothscale acceleration. Takes a string argument. A value of 'GENERIC'
|
||||
turns off acceleration. 'MMX' uses ``MMX`` instructions only. 'SSE' allows
|
||||
``SSE`` extensions as well. A value error is raised if type is not
|
||||
recognized or not supported by the current processor.
|
||||
|
||||
This function is provided for pygame testing and debugging. If smoothscale
|
||||
causes an invalid instruction error then it is a pygame/SDL bug that should
|
||||
be reported. Use this function as a temporary fix only.
|
||||
|
||||
.. ## pygame.transform.set_smoothscale_backend ##
|
||||
|
||||
.. function:: chop
|
||||
|
||||
| :sl:`gets a copy of an image with an interior area removed`
|
||||
| :sg:`chop(surface, rect) -> Surface`
|
||||
|
||||
Extracts a portion of an image. All vertical and horizontal pixels
|
||||
surrounding the given rectangle area are removed. The corner areas (diagonal
|
||||
to the rect) are then brought together. (The original image is not altered
|
||||
by this operation.)
|
||||
|
||||
``NOTE``: If you want a "crop" that returns the part of an image within a
|
||||
rect, you can blit with a rect to a new surface or copy a subsurface.
|
||||
|
||||
.. ## pygame.transform.chop ##
|
||||
|
||||
.. function:: laplacian
|
||||
|
||||
| :sl:`find edges in a surface`
|
||||
| :sg:`laplacian(surface, dest_surface=None) -> Surface`
|
||||
|
||||
Finds the edges in a surface using the laplacian algorithm.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
.. ## pygame.transform.laplacian ##
|
||||
|
||||
.. function:: average_surfaces
|
||||
|
||||
| :sl:`find the average surface from many surfaces.`
|
||||
| :sg:`average_surfaces(surfaces, dest_surface=None, palette_colors=1) -> Surface`
|
||||
|
||||
Takes a sequence of surfaces and returns a surface with average colors from
|
||||
each of the surfaces.
|
||||
|
||||
palette_colors - if true we average the colors in palette, otherwise we
|
||||
average the pixel values. This is useful if the surface is actually
|
||||
greyscale colors, and not palette colors.
|
||||
|
||||
Note, this function currently does not handle palette using surfaces
|
||||
correctly.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
.. versionadded:: 1.9 ``palette_colors`` argument
|
||||
|
||||
.. ## pygame.transform.average_surfaces ##
|
||||
|
||||
.. function:: average_color
|
||||
|
||||
| :sl:`finds the average color of a surface`
|
||||
| :sg:`average_color(surface, rect=None, consider_alpha=False) -> Color`
|
||||
|
||||
Finds the average color of a Surface or a region of a surface specified by a
|
||||
Rect, and returns it as a Color. If consider_alpha is set to True, then alpha is
|
||||
taken into account (removing the black artifacts).
|
||||
|
||||
.. versionadded:: 2.1.2 ``consider_alpha`` argument
|
||||
|
||||
.. ## pygame.transform.average_color ##
|
||||
|
||||
.. function:: grayscale
|
||||
|
||||
| :sl:`grayscale a surface`
|
||||
| :sg:`grayscale(surface, dest_surface=None) -> Surface`
|
||||
|
||||
Returns a grayscaled version of the original surface using the luminosity formula which weights red, green and blue according to their wavelengths.
|
||||
|
||||
An optional destination surface can be passed which is faster than creating a new Surface.
|
||||
This destination surface must have the same dimensions (width, height) and depth as the source Surface.
|
||||
|
||||
.. ## pygame.transform.grayscale ##
|
||||
|
||||
.. function:: threshold
|
||||
|
||||
| :sl:`finds which, and how many pixels in a surface are within a threshold of a 'search_color' or a 'search_surf'.`
|
||||
| :sg:`threshold(dest_surface, surface, search_color, threshold=(0,0,0,0), set_color=(0,0,0,0), set_behavior=1, search_surf=None, inverse_set=False) -> num_threshold_pixels`
|
||||
|
||||
This versatile function can be used for find colors in a 'surf' close to a 'search_color'
|
||||
or close to colors in a separate 'search_surf'.
|
||||
|
||||
It can also be used to transfer pixels into a 'dest_surf' that match or don't match.
|
||||
|
||||
By default it sets pixels in the 'dest_surf' where all of the pixels NOT within the
|
||||
threshold are changed to set_color. If inverse_set is optionally set to True,
|
||||
the pixels that ARE within the threshold are changed to set_color.
|
||||
|
||||
If the optional 'search_surf' surface is given, it is used to threshold against
|
||||
rather than the specified 'set_color'. That is, it will find each pixel in the
|
||||
'surf' that is within the 'threshold' of the pixel at the same coordinates
|
||||
of the 'search_surf'.
|
||||
|
||||
:param dest_surf: Surface we are changing. See 'set_behavior'.
|
||||
Should be None if counting (set_behavior is 0).
|
||||
:type dest_surf: pygame.Surface or None
|
||||
|
||||
:param pygame.Surface surf: Surface we are looking at.
|
||||
|
||||
:param pygame.Color search_color: Color we are searching for.
|
||||
|
||||
:param pygame.Color threshold: Within this distance from search_color (or search_surf).
|
||||
You can use a threshold of (r,g,b,a) where the r,g,b can have different
|
||||
thresholds. So you could use an r threshold of 40 and a blue threshold of 2
|
||||
if you like.
|
||||
|
||||
:param set_color: Color we set in dest_surf.
|
||||
:type set_color: pygame.Color or None
|
||||
|
||||
:param int set_behavior:
|
||||
- set_behavior=1 (default). Pixels in dest_surface will be changed to 'set_color'.
|
||||
- set_behavior=0 we do not change 'dest_surf', just count. Make dest_surf=None.
|
||||
- set_behavior=2 pixels set in 'dest_surf' will be from 'surf'.
|
||||
|
||||
:param search_surf:
|
||||
- search_surf=None (default). Search against 'search_color' instead.
|
||||
- search_surf=Surface. Look at the color in 'search_surf' rather than using 'search_color'.
|
||||
:type search_surf: pygame.Surface or None
|
||||
|
||||
:param bool inverse_set:
|
||||
- False, default. Pixels outside of threshold are changed.
|
||||
- True, Pixels within threshold are changed.
|
||||
|
||||
:rtype: int
|
||||
:returns: The number of pixels that are within the 'threshold' in 'surf'
|
||||
compared to either 'search_color' or `search_surf`.
|
||||
|
||||
:Examples:
|
||||
|
||||
See the threshold tests for a full of examples: https://github.com/pygame/pygame/blob/main/test/transform_test.py
|
||||
|
||||
.. literalinclude:: ../../../test/transform_test.py
|
||||
:pyobject: TransformModuleTest.test_threshold_dest_surf_not_change
|
||||
|
||||
|
||||
.. versionadded:: 1.8
|
||||
.. versionchanged:: 1.9.4
|
||||
Fixed a lot of bugs and added keyword arguments. Test your code.
|
||||
|
||||
.. ## pygame.transform.threshold ##
|
||||
|
||||
.. ## pygame.transform ##
|
||||
@@ -1,79 +0,0 @@
|
||||
.. include:: common.txt
|
||||
|
||||
:mod:`pygame.typing`
|
||||
====================
|
||||
|
||||
.. module:: pygame.typing
|
||||
:synopsis: pygame module providing common typehints
|
||||
|
||||
| :sl:`pygame module providing common typehints`
|
||||
|
||||
.. versionadded:: 2.5.2
|
||||
|
||||
A lot of pygame functions and methods allow the user to provide different types
|
||||
for the same value like colors or points. This module exports the most common
|
||||
type aliases for proper typehint annotations.
|
||||
|
||||
.. data:: FileLike
|
||||
|
||||
An object representing a file. This includes both path-like
|
||||
objects and file-like objects, i.e.:
|
||||
|
||||
* ``"my/string/path.txt"``
|
||||
* ``open("my/file/path.txt")``
|
||||
* ``pathlib.Path("my/pathlib/path.txt")``
|
||||
* ``io.BytesIO(b"my data: \x00\x01")``
|
||||
* ``b"my/bytes/path.txt"``
|
||||
* Any object implementing the path protocol or file protocol.
|
||||
|
||||
.. data:: SequenceLike
|
||||
|
||||
A variant of the standard ``Sequence`` ABC only requiring ``__getitem__``
|
||||
and ``__len__``. This includes custom sequences or builtin ones, i.e.:
|
||||
|
||||
* ``"abcdefg"``
|
||||
* ``[a, b, c, d, ...]``
|
||||
* ``(a, b, c, d, ...)``
|
||||
|
||||
Being a generic, subscribing it will signal further precision such as
|
||||
``SequenceLike[str]`` or ``SequenceLike[float]``.
|
||||
|
||||
.. data:: Point
|
||||
|
||||
A sequence of two numbers (floats or ints), i.e:
|
||||
|
||||
* ``pygame.Vector2(a, b)``
|
||||
* ``[a, b]``
|
||||
* ``(a, b)``
|
||||
|
||||
.. data:: IntPoint
|
||||
|
||||
A sequence of strictly two integers such as ``[a, b]`` or ``(a, b)``.
|
||||
|
||||
.. data:: ColorLike
|
||||
|
||||
An object representing a color such as a mapped integer, a string or
|
||||
a sequence of three or four integers in range 0-255, types supported by
|
||||
every function accepting a color argument. i.e.:
|
||||
|
||||
* ``pygame.Color(ColorLike)``
|
||||
* ``(r, g, b)``
|
||||
* ``(r, g, b, a)``
|
||||
* ``[r, g, b, a]``
|
||||
* ``"green"`` (:doc:`color_list`)
|
||||
* ``"#rrggbbaa"``
|
||||
* ``0`` (mapped color)
|
||||
|
||||
.. data:: RectLike
|
||||
|
||||
An object representing a rect such as a sequence of numbers or points
|
||||
or an object with a rect attribute or a method returning a rect. These types
|
||||
are supported by every function accepting a rect as argument. i.e.:
|
||||
|
||||
* ``(x, y, w, h)``
|
||||
* ``(Point, Point)``
|
||||
* ``pygame.Rect(RectLike)``
|
||||
* Any object with a ``.rect`` attribute which is a ``RectLike`` or a function
|
||||
returning a ``RectLike``
|
||||
|
||||
.. ## pygame.typing ##
|
||||
@@ -1,9 +0,0 @@
|
||||
.. include:: common.txt
|
||||
|
||||
:mod:`pygame.Window`
|
||||
=====================
|
||||
|
||||
.. currentmodule:: pygame
|
||||
|
||||
.. autopgclass:: pygame.Window
|
||||
:members:
|
||||
@@ -1,5 +1,12 @@
|
||||
/*
|
||||
* basic.css
|
||||
* ~~~~~~~~~
|
||||
*
|
||||
* Sphinx stylesheet -- basic theme.
|
||||
*
|
||||
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/* -- main layout ----------------------------------------------------------- */
|
||||
@@ -108,11 +115,15 @@ img {
|
||||
/* -- search page ----------------------------------------------------------- */
|
||||
|
||||
ul.search {
|
||||
margin-top: 10px;
|
||||
margin: 10px 0 0 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.search li {
|
||||
padding: 5px 0;
|
||||
padding: 5px 0 5px 20px;
|
||||
background-image: url(file.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 7px;
|
||||
}
|
||||
|
||||
ul.search li a {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<svg class="theme-icon" style="fill:#00ba10;" data-theme="dark-theme" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
||||
<path d="M10.895 7.574c0 7.55 5.179 13.67 11.567 13.67 1.588 0 3.101-0.38 4.479-1.063-1.695 4.46-5.996 7.636-11.051 7.636-6.533 0-11.83-5.297-11.83-11.83 0-4.82 2.888-8.959 7.023-10.803-0.116 0.778-0.188 1.573-0.188 2.39z"></path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 404 B |
@@ -1,5 +1,12 @@
|
||||
/*
|
||||
* doctools.js
|
||||
* ~~~~~~~~~~~
|
||||
*
|
||||
* Base JavaScript utilities for all Sphinx HTML documentation.
|
||||
*
|
||||
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const DOCUMENTATION_OPTIONS = {
|
||||
VERSION: '2.5.8',
|
||||
VERSION: '2.6.1',
|
||||
LANGUAGE: 'en',
|
||||
COLLAPSE_INDEX: false,
|
||||
BUILDER: 'html',
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/*
|
||||
* Sphinx stylesheet -- graphviz extension.
|
||||
*/
|
||||
|
||||
img.graphviz {
|
||||
border: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
object.graphviz {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -1,6 +1,13 @@
|
||||
/*
|
||||
* language_data.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* This script contains the language-specific data used by searchtools.js,
|
||||
* namely the list of stopwords, stemmer, scorer and splitter.
|
||||
*
|
||||
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<svg class="theme-icon" style="fill:#00ba10;" data-theme="light-theme" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
||||
<path d="M16 9c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7c0-3.859-3.141-7-7-7zM16 7c0.552 0 1-0.447 1-1v-2c0-0.552-0.448-1-1-1-0.553 0-1 0.448-1 1v2c0 0.553 0.447 1 1 1zM16 25c-0.553 0-1 0.448-1 1v2c0 0.553 0.447 1 1 1 0.552 0 1-0.447 1-1v-2c0-0.552-0.448-1-1-1zM23.776 9.635l1.414-1.414c0.391-0.391 0.391-1.023 0-1.414s-1.023-0.391-1.414 0l-1.414 1.414c-0.391 0.391-0.391 1.023 0 1.414s1.023 0.391 1.414 0zM8.221 22.366l-1.414 1.414c-0.391 0.391-0.391 1.023 0 1.414s1.023 0.391 1.414 0l1.414-1.414c0.391-0.393 0.391-1.023 0-1.414s-1.023-0.393-1.414 0zM7 16c0-0.552-0.448-1-1-1h-2c-0.553 0-1 0.448-1 1 0 0.553 0.447 1 1 1h2c0.552 0 1-0.447 1-1zM28 15h-2c-0.553 0-1 0.448-1 1 0 0.553 0.447 1 1 1h2c0.552 0 1-0.447 1-1 0-0.552-0.448-1-1-1zM8.22 9.635c0.391 0.391 1.023 0.391 1.414 0s0.391-1.023 0-1.414l-1.414-1.414c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.023 0 1.414l1.414 1.414zM23.779 22.363c-0.393-0.391-1.023-0.391-1.414 0s-0.393 1.023 0 1.414l1.414 1.414c0.391 0.391 1.023 0.391 1.414 0s0.391-1.023 0-1.414l-1.414-1.414z"></path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -67,35 +67,17 @@ div.body table.matrix th.stub {
|
||||
/* Let a float element be beside a code block */
|
||||
div.highlight-python.notranslate {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* -- page layout ----------------------------------------------------------- */
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
color: #000000;
|
||||
font-style: normal;
|
||||
font-family: sans-serif;
|
||||
background-color: #141414;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
border-style: none;
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
html {
|
||||
background-color: #aaeebb;
|
||||
height: 100vh;
|
||||
}
|
||||
html.dark-theme {
|
||||
background-color: #1E1E1E;
|
||||
}
|
||||
html.dark-theme body {
|
||||
color: #EEEEEE;
|
||||
}
|
||||
html:has(body.dark-theme) {
|
||||
background-color: #1E1E1E;
|
||||
}
|
||||
|
||||
div.header {
|
||||
@@ -108,10 +90,7 @@ div.header > div {
|
||||
border-collapse: collapse;
|
||||
background-color: #6aee28;
|
||||
}
|
||||
.dark-theme div.header > div {
|
||||
background-color: #141414;
|
||||
border: none;
|
||||
}
|
||||
|
||||
div.header .logo {
|
||||
background-color: #c2fc20;
|
||||
padding: 0.3em;
|
||||
@@ -120,17 +99,12 @@ div.header .logo {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
min-width: 214px;
|
||||
}
|
||||
.dark-theme div.header .logo {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
min-width: 214px;
|
||||
}
|
||||
|
||||
div.header .logo img {
|
||||
min-width: 200px;
|
||||
min-height: 60px;
|
||||
border-style: none;
|
||||
height: 80px;
|
||||
min-width: 156px;
|
||||
}
|
||||
|
||||
div.header .pagelinks {
|
||||
@@ -153,137 +127,13 @@ div.header p.bottom {
|
||||
div.header .pagelinks a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.dark-theme div.header .pagelinks a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
div.header .pagelinks a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.dark-theme div.header .pagelinks a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.pagelinks .top a {
|
||||
color: #000000;
|
||||
font-weight: 400;
|
||||
}
|
||||
.dark-theme .pagelinks .top a {
|
||||
color: #EEEEEE;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pagelinks .bottom a {
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme .pagelinks .bottom a {
|
||||
color: #2288ec;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dl .dt{
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme .dl .dt{
|
||||
color: #EEEEEE;
|
||||
}
|
||||
|
||||
.pagelinks .top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.pagelinks .top .nav-top-wrapper{
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.pagelinks .bottom b{
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme .pagelinks .bottom b{
|
||||
color: #00ba10;
|
||||
}
|
||||
|
||||
input[type="text"]{
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.dark-theme input[type="text"]{
|
||||
background-color: #292929;
|
||||
color: #EEEEEE;
|
||||
border-radius: ;
|
||||
border: none;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
input[type="text"]:focus{
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.dark-theme input[type="text"]:focus{
|
||||
background-color: #292929;
|
||||
}
|
||||
|
||||
|
||||
input[type="submit"]{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.searchbar-form{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.searchbar-button{
|
||||
background-color: transparent;
|
||||
width: 24px;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
/* fill: ; */
|
||||
cursor: pointer;
|
||||
}
|
||||
/*
|
||||
.dark-theme .searchbar-button{
|
||||
fill: ;
|
||||
}
|
||||
*/
|
||||
|
||||
div.document {
|
||||
background-color: #aaeebb;
|
||||
overflow: hidden;
|
||||
flex-grow: 1
|
||||
}
|
||||
.dark-theme div.document {
|
||||
background-color: #1E1E1E;
|
||||
}
|
||||
|
||||
.theme-icon {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
/* Ignore this, gets rid of minor positionaning difference*/
|
||||
.theme-icon[data-theme="light-theme"] {
|
||||
transform: translate(0, 2px);
|
||||
}
|
||||
.theme-icon[data-theme="dark-theme"] {
|
||||
transform: translate(-4px, 2px);
|
||||
}
|
||||
|
||||
/* Show the items when they are the same theme and not a theme-change icon */
|
||||
.light-theme *[data-theme="dark-theme"]{
|
||||
display: none;
|
||||
}
|
||||
.dark-theme *[data-theme="light-theme"]{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.flex-container {
|
||||
@@ -291,13 +141,6 @@ div.document {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 900px) {
|
||||
.pagelinks .top{
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 680px) {
|
||||
.flex-container {
|
||||
flex-direction: column;
|
||||
@@ -305,6 +148,7 @@ div.document {
|
||||
|
||||
div.header .logo {
|
||||
border-right: none;
|
||||
border-bottom: 3px solid black;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,7 +164,7 @@ div.document {
|
||||
|
||||
.toc td {
|
||||
display:block;
|
||||
width: 200%;
|
||||
width: min(200%, 100vw - 132px);
|
||||
}
|
||||
|
||||
.toc td:last-child {
|
||||
@@ -363,19 +207,13 @@ div.related {
|
||||
background-color: #6aee28;
|
||||
line-height: 30px;
|
||||
color: #000000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.dark-theme div.related {
|
||||
background-color: #141414;
|
||||
color: #00ba10;
|
||||
border-top: 3px solid black;
|
||||
border-bottom: 3px solid black;
|
||||
}
|
||||
|
||||
div.related a {
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme div.related a {
|
||||
color: #00ba10;
|
||||
}
|
||||
|
||||
div.sphinxsidebar {
|
||||
}
|
||||
@@ -429,15 +267,9 @@ div.sphinxsidebar input {
|
||||
/* -- body styles ----------------------------------------------------------- */
|
||||
|
||||
a {
|
||||
color: #000000;
|
||||
background-color: transparent;
|
||||
text-decoration: underline;
|
||||
color: #000000;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.dark-theme a {
|
||||
color: #2288ec;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
@@ -445,10 +277,6 @@ a:hover {
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
.dark-theme a:hover {
|
||||
color: #2288ec;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.5em 0;
|
||||
@@ -468,7 +296,7 @@ dl.definition {
|
||||
}
|
||||
|
||||
dt.title {
|
||||
font-family: 'consolas', monospace;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
dt tt {
|
||||
@@ -500,93 +328,7 @@ span.signature {
|
||||
}
|
||||
|
||||
span.pre {
|
||||
font-family: 'consolas', monospace;
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme span.pre {
|
||||
color: #00ba10;
|
||||
}
|
||||
|
||||
a.reference.internal span.pre {
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme a.reference.internal span.pre {
|
||||
color: #2288ec;
|
||||
}
|
||||
|
||||
a.tooltip.reference.internal span.pre {
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme a.tooltip.reference.internal span.pre {
|
||||
color: #00ba10;
|
||||
}
|
||||
|
||||
dt code span.pre {
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme dt code span.pre {
|
||||
color: #e1cd62;
|
||||
}
|
||||
.dark-theme dt.title code span.pre {
|
||||
color: #e1cd62;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
/* Not sure if I need to enable this
|
||||
dt code {
|
||||
background-color: transparent;
|
||||
}
|
||||
*/
|
||||
.dark-theme dt code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.highlight .o{
|
||||
color: #242424;
|
||||
}
|
||||
.dark-theme .highlight .o{
|
||||
color: #D4D4D4;
|
||||
}
|
||||
|
||||
.highlight .c1{
|
||||
color: #169d00;
|
||||
}
|
||||
.dark-theme .highlight .c1{
|
||||
color: #169d00;
|
||||
}
|
||||
|
||||
.highlight .kn, .highlight .k{
|
||||
color: #DE6C90;
|
||||
}
|
||||
.dark-theme .highlight .kn, .dark-theme .highlight .k{
|
||||
color: #DE6C90;
|
||||
}
|
||||
|
||||
.highlight .n{
|
||||
color: #333333;
|
||||
}
|
||||
.dark-theme .highlight .n{
|
||||
color: #CBCBCB;
|
||||
}
|
||||
.dark-theme .highlight .hll{
|
||||
background-color: #343434;
|
||||
}
|
||||
|
||||
/* Doc strings */
|
||||
.highlight .sd{
|
||||
color: #169d00;
|
||||
}
|
||||
.dark-theme .highlight .sd{
|
||||
color: #169d00;
|
||||
}
|
||||
|
||||
.dark-theme .highlight .nf,
|
||||
.dark-theme .highlight .fm {
|
||||
color: #fee32d;
|
||||
}
|
||||
|
||||
.dark-theme .highlight .nc {
|
||||
color: #50b0fa; font-weight: bold
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
code.download span.pre {
|
||||
@@ -613,8 +355,6 @@ div.body h6 {
|
||||
font-weight: bold;
|
||||
margin: 1em 0 0.5em;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
div.body h6 {
|
||||
@@ -625,19 +365,8 @@ div.body h6 {
|
||||
line-height: 130%;
|
||||
}
|
||||
|
||||
div.body h1 {
|
||||
font-size: 1.5em; color: #000000;
|
||||
}
|
||||
.dark-theme div.body h1 {
|
||||
color: #e1cd62;
|
||||
}
|
||||
div.body h2 {
|
||||
font-size: 1.4em;
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme div.body h2 {
|
||||
color: #00b800;
|
||||
}
|
||||
div.body h1 { font-size: 1.5em; }
|
||||
div.body h2 { font-size: 1.4em; }
|
||||
div.body h3 { font-size: 1.3em; }
|
||||
div.body h4 { font-size: 1.2em; }
|
||||
div.body h5 { font-size: 1.1em; }
|
||||
@@ -649,18 +378,11 @@ a.headerlink {
|
||||
padding: 0 4px 0 4px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.dark-theme a.headerlink {
|
||||
color: #68698b;
|
||||
}
|
||||
|
||||
a.headerlink:hover {
|
||||
background-color: #68698b;
|
||||
color: white;
|
||||
}
|
||||
.dark-theme a.headerlink:hover {
|
||||
background-color: #68698b;
|
||||
color: white;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-left: 2em;
|
||||
@@ -685,7 +407,7 @@ p.admonition-title:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
dl.definition div.seealso {
|
||||
dl.definition div.note, dl.definition div.seealso {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
@@ -700,18 +422,13 @@ dl.definition .admonition-title {
|
||||
|
||||
div.note {
|
||||
background-color: #eeeeee;
|
||||
border: 1px solid #eeeeee;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.note tt {
|
||||
background: #d6d6d6;
|
||||
}
|
||||
|
||||
.dark-theme div.note {
|
||||
background-color: #555349;
|
||||
border: 1px solid #6e6b5e;
|
||||
}
|
||||
|
||||
div.seealso {
|
||||
background-color: #ffc;
|
||||
border: 1px solid #ff6;
|
||||
@@ -726,16 +443,9 @@ div.caution {
|
||||
border: 1px solid #aabb88;
|
||||
}
|
||||
|
||||
.dark-theme div.caution {
|
||||
background-color: rgb(255 25 25 / 30%);
|
||||
border: 1px solid;
|
||||
border-color: rgb(255 60 60);
|
||||
}
|
||||
|
||||
div.warning {
|
||||
background-color: #ffaec4;
|
||||
background-color: #ffe4e4;
|
||||
border: 1px solid #f66;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.warning tt {
|
||||
@@ -752,24 +462,6 @@ p.linklist {
|
||||
dt:target,
|
||||
span.highlighted {
|
||||
background-color: #c7c695;
|
||||
padding-left: 0.4rem;
|
||||
}
|
||||
.dark-theme .section:target > h2,
|
||||
.dark-theme .section:target > h3,
|
||||
.dark-theme .section:target > h4,
|
||||
.dark-theme dt:target,
|
||||
.dark-theme span.highlighted {
|
||||
background-color: #0E5114;
|
||||
padding-left: 0.4rem;
|
||||
}
|
||||
|
||||
code {
|
||||
border-radius: 0.25em;
|
||||
padding: 0 0.2em 0;
|
||||
background-color: #eeffcc;
|
||||
}
|
||||
.dark-theme code {
|
||||
background-color: #141414;
|
||||
}
|
||||
|
||||
pre {
|
||||
@@ -779,20 +471,15 @@ pre {
|
||||
border-right: none;
|
||||
color: #333333;
|
||||
display: block;
|
||||
font-family: 'consolas', monospace;
|
||||
font-family: monospace;
|
||||
line-height: 120%;
|
||||
margin-bottom: 1em;
|
||||
padding: 5px 5px 5px 15px;
|
||||
text-align: justify;
|
||||
}
|
||||
.dark-theme pre {
|
||||
background-color: #141414;
|
||||
color: #CBCBCB;
|
||||
}
|
||||
|
||||
div.highlight pre {
|
||||
border: none;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
ul.simple {
|
||||
@@ -883,6 +570,7 @@ div.body span.codelineref {
|
||||
.py-class .pre,
|
||||
.reference.internal em {
|
||||
font-weight: bold;
|
||||
background-color: #90ee90;
|
||||
}
|
||||
|
||||
span.linenos {
|
||||
@@ -918,10 +606,6 @@ div.example div.break {
|
||||
|
||||
a.tooltip {
|
||||
text-decoration: underline;
|
||||
color: #000000;
|
||||
}
|
||||
.dark-theme a.tooltip {
|
||||
color: #00ba10;
|
||||
}
|
||||
|
||||
a.tooltip:hover {
|
||||
@@ -940,10 +624,6 @@ a.tooltip:hover {
|
||||
-webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
|
||||
-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.dark-theme .tooltip-content {
|
||||
background-color: #141414;
|
||||
border: 1px solid #00ba10;
|
||||
}
|
||||
|
||||
/* -- comments style --------------------------------------------------------- */
|
||||
|
||||
@@ -997,6 +677,10 @@ pre.commentContent {
|
||||
/* -- responsive design --------------------------------------------------------- */
|
||||
|
||||
@media only screen and (max-width: 680px) {
|
||||
/* Make tables be responsive-ish. */
|
||||
table, thead, tbody, th, td, tr {
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.body img.inlined-right {
|
||||
float: none;
|
||||
|
||||
@@ -1,289 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 1560 800" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g id="snake-body">
|
||||
<g id="snake_body_base" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M362.273,570.841C363.044,572.445 394.789,607.529 368.474,662.66C338.751,724.933 249.576,750.513 191.081,659.956C52.719,445.753 234.75,39.212 663.971,103.294C904.645,139.226 1046.89,311.203 1104.44,367.865C1137.92,400.827 1191.31,422.791 1199.59,421.555C1202.35,418.601 1214.29,417.702 1209.34,348.257C1202,245.212 1178.86,221.316 1179.63,214.281C1196.69,58.183 1406.72,12.137 1500.57,141.687C1541.08,197.606 1551.89,255.843 1547.17,262.701C1470.86,373.47 1438.1,446.717 1410.36,488.093C1393.32,513.502 1324.9,621.61 1207.75,623.767C1170.29,624.456 1076.69,611.426 973.642,511.843C861.734,403.696 781.514,292.361 567.047,289.841C456.894,288.546 357.369,371.25 342.061,476.745C335.049,525.068 342.686,543.859 362.273,570.841Z" style="fill:rgb(240,204,0);stroke:black;stroke-width:5px;"/>
|
||||
</g>
|
||||
<g id="snake_body_light" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M1244.8,224.652C1247.22,217.185 1248.51,209.384 1250.92,201.917C1252.1,198.263 1253.85,194.808 1255.56,191.374C1256.38,189.75 1260.63,181.248 1267.67,172.182C1268.77,170.762 1274.56,163.308 1283.08,155.846C1291.54,148.438 1299.7,143.665 1301.25,142.761C1311.02,137.042 1319.92,133.917 1321.62,133.322C1332.44,129.522 1341.85,128.182 1343.65,127.926C1355.24,126.275 1364.94,126.856 1366.79,126.967C1366.8,126.968 1378.6,128.274 1378.61,128.276C1382.48,129.11 1386.4,129.75 1390.23,130.778C1392.02,131.259 1401.41,133.782 1411.88,139.019C1413.51,139.831 1422.01,144.084 1431.08,151.118C1432.49,152.219 1439.95,158.003 1447.41,166.524C1448.59,167.872 1454.82,174.984 1460.5,184.69C1466.21,194.468 1469.34,203.371 1469.93,205.066C1473.73,215.894 1475.07,225.306 1475.33,227.103C1476.98,238.697 1476.4,248.403 1476.29,250.253C1475.81,258.158 1475.65,258.143 1474.34,265.951C1473.89,268.59 1473.36,271.628 1473.36,271.638C1473.36,271.64 1471.66,276.172 1469.61,281.375C1449.23,333.263 1429.07,367.991 1425.86,374.095C1387.36,447.314 1351.12,483.081 1332.25,499.531C1329.6,501.835 1308.85,525.959 1275.27,542.976C1230.56,565.636 1191.77,561.649 1173.9,558.939C1119.15,550.636 1074.05,517.054 1042.49,487.586C1037.11,482.567 1035.77,482.292 1007.07,454.141C977.474,425.111 934.267,381.647 890.652,347.953C844.517,312.312 808.127,293.176 769.435,278.008C769.309,277.958 758.03,273.346 738.637,267.296C718.805,261.111 705.202,258.047 702.841,257.343C687.667,252.818 663.972,246.414 635.871,241.733C635.076,241.6 616.204,238.997 593.837,238.329C559.826,237.311 533.915,241.349 525.858,242.669C525.798,242.679 518.716,243.914 509.741,246.079C465.257,256.813 440.179,274.192 433.795,278.029C403.01,296.531 384.967,317.909 374.719,331.371C360.148,350.511 349.211,371.826 341.88,393.941C341.274,395.769 340.296,397.569 337.833,404.075C324.786,438.535 323.708,467.047 323.681,480.805C323.608,518.538 334.816,540.264 337.51,545.512L337.463,545.445C339.755,552.464 344.062,558.715 346.354,565.734C347.473,569.16 347.525,572.871 347.595,576.474C347.665,580.054 347.385,583.657 346.773,587.185C346.162,590.713 345.215,594.199 343.945,597.547C342.666,600.915 341.068,604.182 339.164,607.241C337.23,610.345 334.996,613.286 332.486,615.947C332.475,615.959 323.967,623.347 323.96,623.351C320.686,625.194 317.579,627.368 314.139,628.876C310.791,630.344 307.27,631.458 303.697,632.234C300.177,632.998 296.564,633.404 292.962,633.474C289.383,633.544 285.781,633.263 282.253,632.652C278.725,632.041 275.238,631.093 271.889,629.823C268.519,628.545 265.251,626.947 262.191,625.043C259.084,623.11 256.14,620.877 253.477,618.367C249.684,614.795 243.246,606.252 242.417,605.151C206.274,557.191 197.398,501.461 194.982,485.016C192.92,470.977 192.275,456.77 192.163,454.305C189.966,405.89 198.605,367.575 202.845,350.649C202.846,350.645 204.633,344.798 207.243,337.427C230.56,271.59 266.123,231.074 278.125,217.858C300.015,193.756 326.645,171.193 358.532,152.178C358.885,151.968 373.122,143.553 393.541,134.712C445.507,112.212 490.833,106.71 509.281,104.361C574.055,96.115 628.197,103.18 653.746,107.048C657.647,107.639 692.084,111.147 739.466,123.107C741.412,123.598 757.81,128.477 777.168,135.427C779.791,136.368 794.351,141.482 818.662,151.762C884.839,179.746 935.477,213.386 994.615,264.781C1052.35,314.953 1098.82,367.499 1125.54,391.876C1125.59,391.918 1135.43,400.282 1147.38,408.116C1174.04,425.593 1188.68,426.027 1192.48,426.113L1192.48,426.104C1196.88,426.01 1204.88,425.234 1216.79,412.397C1219.79,409.168 1222.15,406.098 1223.42,404.401C1223.57,404.207 1223.6,404.219 1224.49,402.109C1230.57,387.819 1240.22,359.725 1244.91,312.152C1244.92,312.079 1245.94,297.534 1245.84,277.626C1245.69,250.845 1243.64,231.542 1243.67,231.335C1243.75,230.795 1243.78,230.798 1244.8,224.652Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Pygame-ce">
|
||||
<g id="Pygame_shadow" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M172.358,365.396C194.988,303.834 232.047,248.148 285.506,201.766C285.506,201.766 285.706,206.452 287.015,215.748C288.74,227.988 279.732,251.654 279.971,252.37C280.806,254.517 281.531,257.794 291.557,260.269C299.647,262.266 296.192,258.581 295.423,248.977C294.765,240.758 295.945,237.51 298.627,233.644C303.136,227.145 307.776,226.123 317.709,217.11C327,208.679 328.931,202.623 349.185,192.361C354.685,189.575 370.052,183.78 378.073,187.321C387.807,191.617 390.654,195.647 395.498,200.941C400.668,206.592 408.054,222.217 409.095,221.225C417.448,213.264 423.483,201.804 434.331,197.736C444.709,193.919 478.468,195.35 502.684,200.599C507.428,201.627 510.084,200.896 510.084,200.896C510.084,200.896 511.949,196.132 514.493,194.157C520.891,189.19 541.572,189.982 550.518,192.01C556.722,193.561 562.997,200.917 565.072,207.756C568.193,218.047 573.303,244.02 573.303,244.02C573.303,244.02 585.469,228.731 592.031,224.337C617.981,206.963 648.641,198.428 679.135,193.468C694.876,190.907 722.066,189.446 740.188,215.748C754.487,236.502 756.354,246.464 758.282,248.393C758.844,248.955 769.685,238.673 774.663,231.853C780.526,223.818 793.451,212.905 803.053,208.353C811.931,204.144 824.883,203.7 832.279,204.535C838.092,205.158 844.972,207.638 850.003,210.561C856.541,214.36 863.08,222.612 863.941,224.337C864.674,225.803 867.654,214.409 872.721,207.756C877.658,201.273 886.997,198.73 893.615,197.157C897.372,196.265 898.279,196.625 902.375,196.067C997.086,255.91 1067.82,335.452 1102.6,369.702C1121.87,388.672 1147.73,404 1167.8,413.358C1167.8,413.358 1161.57,426.799 1159.73,428.772C1140.89,448.921 1127.63,454.101 1099.01,457.586C1082.07,459.648 1062.39,455.927 1048.58,452.74C1036.66,449.989 1023.24,438.938 1014.17,430.724C997.877,415.965 989.609,389.684 989.223,386.867C982.719,418.053 944.2,460.741 909.442,434.131C893.695,422.075 889.254,396.068 887.737,384.53C886.818,377.545 890.039,359.098 887.379,357.69C884.736,356.248 882.787,359.918 881.695,361.415C877.765,366.802 876.968,369.163 871.275,372.959C868.482,374.774 864.514,378.933 852.282,391.165C782.523,331.754 701.341,288.657 567.047,287.078C468.722,285.923 376.308,353.441 347.258,442.609C347.258,442.609 338.464,453.382 319.923,457.072C290.043,463.018 261.319,461.67 232.394,452.74C199.94,442.721 168.924,406.392 183.222,371.123C185.547,365.386 193.751,355.951 198.53,350.739C194.616,354.89 182.903,361.212 172.358,365.396Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="Pygame" transform="matrix(1.19289,0,0,1.19289,-10.1906,36.483)">
|
||||
<g id="shadow_outline" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M446.083,428.557C430.438,439.977 404.513,447.031 385.555,450.803C351.903,457.5 316.842,453.812 284.266,443.755C247.716,432.472 212.785,391.558 228.887,351.837C231.507,345.376 240.746,334.75 246.128,328.88C248.565,326.295 250.1,324.653 250.1,324.653C250.1,324.653 248.483,326.311 246.128,328.88C239.045,336.391 224.342,351.853 217.49,358.1C200.114,373.944 175.999,378.478 153.392,380.25L154.064,396.64C154.263,401.47 154.678,406.366 153.922,411.14C152.136,422.427 138.526,425.078 131.625,431.528C128.573,434.38 127.439,438.839 124.611,441.915C113.624,453.865 96.498,456.522 81.115,456.424C66.874,456.289 59.754,455.618 51.962,453.603C46.401,452.136 40.315,450.122 36.147,445.824C31.991,441.538 29.818,435.015 28.452,429.42C24.337,412.566 21.857,399.252 19.988,381.997C19.182,374.608 17.839,363.726 17.167,357.815C15.017,341.29 13.405,286.612 14.211,259.743C14.639,244.553 14.578,230.507 18.976,215.615C22.267,204.471 33.585,192.606 44.445,184.989C54.989,170.03 76.974,156.546 93.867,151.741C107.756,147.79 126.516,146.3 140.745,145.801C163.456,145.004 184.623,147.945 208.52,153.207C227.058,157.289 239.278,165.107 255.091,175.509C271.818,157.713 299.746,139.337 326.196,151.9C332.107,154.721 344.306,166.382 345.781,176.852C347.723,190.637 337.579,217.29 337.848,218.096C338.788,220.514 339.605,224.204 350.897,226.992C360.008,229.241 356.116,225.091 355.25,214.275C354.509,205.018 355.838,201.36 358.859,197.006C363.937,189.687 369.162,188.536 380.349,178.386C390.813,168.891 392.987,162.07 415.798,150.513C421.992,147.375 439.298,140.849 448.332,144.837C459.294,149.676 462.5,154.214 467.956,160.176C473.779,166.54 482.097,184.137 483.269,183.019C492.676,174.054 499.472,161.148 511.69,156.566C523.378,152.267 561.397,153.879 588.669,159.791C594.013,160.949 597.004,160.125 597.004,160.125C597.004,160.125 599.104,154.76 601.97,152.536C609.175,146.942 632.466,147.834 642.542,150.118C649.528,151.864 656.595,160.148 658.932,167.851C662.447,179.441 668.202,208.692 668.202,208.692C668.202,208.692 681.904,191.473 689.294,186.525C718.519,166.958 753.049,157.345 787.391,151.759C805.119,148.876 835.741,147.23 856.15,176.852C872.254,200.226 874.356,211.445 876.528,213.617C877.161,214.25 889.37,202.67 894.976,194.989C901.579,185.94 916.135,173.65 926.95,168.523C936.947,163.783 951.535,163.283 959.864,164.224C966.411,164.925 974.159,167.718 979.824,171.01C987.188,175.289 994.552,184.583 995.522,186.525C996.347,188.176 999.704,175.344 1005.41,167.851C1010.97,160.55 1023.74,154.307 1031.19,152.536C1066.29,144.197 1100.45,151.412 1123.02,183.019C1127.25,188.93 1138.89,208.692 1138.89,208.692C1138.89,208.692 1165.01,183.286 1175.53,174.05C1182.12,168.269 1200.67,158.118 1209.12,155.481C1268.43,136.969 1328.89,170.649 1358.63,222.959C1370.14,243.212 1371.18,267.401 1373.26,289.896C1373.97,297.61 1374.55,299.828 1368.76,305.69C1367.38,307.088 1359.91,309.888 1360.87,310.456C1362.22,311.256 1370.29,313.789 1372.51,316.185C1377.62,321.709 1375.37,337.912 1373.56,344.025C1366.05,369.409 1355.27,388.28 1328.64,416.762C1307.42,439.455 1292.49,445.288 1260.26,449.212C1241.18,451.534 1219.01,447.344 1203.47,443.755C1190.04,440.656 1174.92,428.211 1164.71,418.961C1146.36,402.339 1137.05,372.74 1136.62,369.568C1129.29,404.691 1085.91,452.766 1046.77,422.797C1029.03,409.22 1024.03,379.93 1022.32,366.936C1021.29,359.069 1024.91,338.294 1021.92,336.708C1018.94,335.085 1016.75,339.218 1015.52,340.904C1011.09,346.971 1010.19,349.63 1003.78,353.904C1000.12,356.287 1000.9,361.504 1000.69,365.055C1000.47,368.947 996.583,401.33 985.553,416.749C974.076,432.791 936.316,443.153 923.877,438.818C889.7,426.905 879.115,368.234 879.115,368.234C879.115,368.234 874.338,434.496 798.198,445.824C764.23,450.878 712.126,438.156 694.685,428.557C665.478,412.483 663.363,401.821 662.147,393.564C654.259,424.764 640.579,432.86 618.601,442.074C605.841,447.424 568.19,452.324 549.306,452.324C533.997,452.324 519.758,448.365 505.299,439.184C487.91,428.143 478.602,413.658 479.421,382.28C473.465,406.749 461.727,417.136 446.083,428.557ZM565.562,352.038C565.013,351.022 564.605,349.934 564.21,348.849C563.195,346.059 567.178,345.026 569.113,344.883C570.21,344.802 571.318,344.903 572.414,344.8C573.587,344.69 577.111,343.85 577.727,343.941C578.689,344.083 578.957,345.295 578.965,346.065C578.979,347.483 578.663,349.497 578.033,350.788C576.903,353.106 574.15,353.645 571.876,354.053C567.846,354.59 566.771,354.322 565.562,352.038ZM1245.62,341.29C1244.21,340.763 1239.45,338.913 1240.01,337.967C1240.65,336.892 1246.99,337.11 1248.94,337.059C1252.79,336.96 1260.71,336.771 1261.74,337.797C1262.32,338.381 1260.78,340.517 1260.26,341.156C1257.71,344.112 1253.41,344.246 1245.62,341.29ZM157.557,266.729C157.557,259.474 155.408,256.787 146.541,253.294C144.916,252.633 143.25,252.058 141.549,251.628C140.272,251.305 138.957,251.095 137.64,251.044C136.883,251.015 136.099,251.114 135.394,251.392C133.347,252.199 134.549,255.025 134.991,256.279C136.528,260.637 138.949,264.79 142.51,267.804C146.809,2Line truncated
|
||||
</g>
|
||||
<g id="e">
|
||||
<path id="e_mid" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.143,255.637 847.1,252.2C843.25,239.518 846.7,190.7 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1005.8,179.4 1009,194 1009.7,207C1010.2,217 1010.1,218.8 1008.6,220.2C1004.6,224.3 989.2,226 957,226C935.5,226.1 902.8,224.6 901.1,223.6C900.7,223.3 899.4,223.7 898.4,224.5C896.8,225.6 896.5,227 896.6,232.7C896.8,240.8 898.2,243.9 904.2,249.6C910,255.1 914,257.4 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C948.3,257.2 950.1,254.9 954,247.9C957.6,241.1 959.3,240.3 971.5,239.6C976.5,239.2 984.7,238.5 989.8,237.9C1001.6,236.4 1009.8,237.1 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310ZM953.301,188.795C960.3,185.245 960.401,182.995 954.301,177.295C951.701,174.995 946.501,171.395 942.701,169.395C933.201,164.395 926.301,164.295 918.001,168.995C908.701,174.195 903.101,181.095 905.501,184.395C907.401,186.995 913.201,190.095 917.601,190.895C920.201,191.395 928.201,191.695 935.301,191.495C946.801,191.295 948.901,190.995 953.301,188.795Z" style="fill:rgb(199,198,149);fill-rule:nonzero;"/>
|
||||
<path id="e_bottom" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.643,256.913 847.099,252.006C846.316,249.515 845.963,246.467 845.849,244.662C845.849,244.662 850.035,243.131 852.171,241.133C854.492,238.961 857.52,234.318 859.421,233.824C863.646,232.725 867.463,245.149 868.323,245.671C869.184,246.193 878.128,246.496 879.014,245.471C883.406,240.386 890.428,236.145 893.431,240.239C895.241,242.707 897.537,247.018 900.157,248.101C901.106,248.493 902.327,248.032 902.327,248.032C902.327,248.032 904.74,250.108 904.913,250.268C910.341,255.292 914.39,257.524 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C947.145,257.97 949.06,256.059 951.478,252.215C952.245,250.997 957.62,253.098 965.253,249.516C976.375,244.298 977.437,240.052 981.251,242.813C985.726,246.054 987.611,245.008 993.844,245.324C1004.38,245.859 1005.31,237.213 1008.93,238.352C1010.13,238.732 1011.15,238.9 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310Z" style="fill:rgb(255,254,191);fill-rule:nonzero;"/>
|
||||
<path id="e_top" d="M1006.3,184.38C1006.56,185.396 1000.28,179.352 993.999,180.776C981.283,183.657 983.188,189.019 978.097,189.873C971.966,190.902 967.482,179.035 966.858,181.812C965.881,186.162 963.835,190.772 957.481,186.227C957.127,185.974 959.509,185.207 958.376,182.235C956.295,176.779 938.186,164.162 927.852,165.608C916.427,167.206 903.439,178.535 905.164,183.785C905.926,186.105 905.637,190.321 900.038,190.094C890.009,189.825 889.385,179.676 882.167,180.827C875.385,181.909 871.592,192.172 867.226,195.781C864.545,197.998 862.159,187.096 854.763,187.009C851.701,186.973 850.448,189.405 849.092,190.668C848.337,191.371 847.4,191.225 847.423,190.806C847.599,187.628 847.793,185.319 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1003.84,176.188 1005.16,179.888 1006.3,184.38Z" style="fill:rgb(148,147,111);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="m">
|
||||
<path id="m_mid" d="M846,189.4C847.264,199.322 847.132,207.189 846.485,223.235C845.823,239.664 843.607,254.573 843,256.9C839.9,269.1 836.1,276.7 830.4,282.3C822.8,289.6 816.5,291.9 807.4,290.5C803.4,289.9 801.9,288.9 796.1,283.2C787.9,275 784.4,268.1 783.6,258.5C782.9,251.3 783.7,244.8 788.4,220.7C789.7,213.6 791.2,203.5 791.5,198.1C792.2,188.9 792.1,188.1 789.6,183.2C785.1,174.3 780.1,174.3 778.5,183.3C776.4,195 768,227 765.9,231.5C761.1,241.7 753.7,244.1 746.1,238.1C742.3,235.1 734.2,223.5 722.7,205C720.2,200.8 716.4,195.5 714.4,193.1C711.1,189.3 710.6,189 709.2,190.4C707.2,192.4 705.325,202.128 708,210.6C709.2,214.4 720.1,235 722.5,238C723.8,239.6 728.2,248.1 732.1,256.5C736.5,265.9 735.5,282.2 729.9,293.3C726.9,299.2 720.3,305.8 715.1,308.1C709.1,310.8 696.3,311.2 690.7,308.7C685.6,306.5 676.2,296.8 672.4,290C664.1,275.2 657.7,253 655.9,233C652.6,197.5 661.7,158.7 676.7,143.6C685,135.3 697,130 707.8,130C713.8,130 715.3,130.4 720.9,133.8C724.4,135.8 729.1,139.7 731.4,142.4C737.5,149.7 738.575,152 741,152C743.425,152 744.906,146.517 747.035,140.264C748.982,134.546 748.673,131.427 753,127.1C761.5,118.6 788.3,115.5 803,121.2C817.6,126.9 831.9,143.9 838.9,163.7C841.5,171 844.877,180.584 846,189.4Z" style="fill:rgb(195,146,146);fill-rule:nonzero;"/>
|
||||
<path id="m_bottom2" d="M784.747,240.624C784.97,239.227 789.015,246.383 795.137,249.278C796.446,249.897 803.677,239.162 813.561,239.128C817.19,239.116 819.823,239.677 826.503,249.191C827.796,251.032 832.249,251.375 838.213,249.248C843.048,247.524 844.847,244.272 844.794,244.734C844.057,251.133 843.314,255.697 843,256.9C839.9,269.1 836.1,276.7 830.4,282.3C822.8,289.6 816.5,291.9 807.4,290.5C803.4,289.9 801.9,288.9 796.1,283.2C787.9,275 784.4,268.1 783.6,258.5C783.15,253.872 783.32,249.533 784.747,240.624Z" style="fill:rgb(255,191,191);fill-rule:nonzero;"/>
|
||||
<path id="m_bottom1" d="M672.4,290C666.334,279.184 658.271,249.256 658.271,249.256C662.429,251.073 664.693,251.869 667.029,250.052C669.744,247.94 671.843,239.75 675.661,241.393C678.732,242.716 682.602,250.331 685.225,251.574C689.194,253.455 692.039,244.353 695.927,244.091C704.321,243.523 709.548,245.795 712.551,240.915C714.756,237.332 719.169,239.268 719.746,239.748C722.402,241.958 722.921,249.45 726.902,250.295C728.356,250.603 728.653,249.306 728.653,249.306C728.653,249.306 730.964,254.053 732.1,256.5C736.5,265.9 735.5,282.2 729.9,293.3C726.9,299.2 720.3,305.8 715.1,308.1C709.1,310.8 696.3,311.2 690.7,308.7C685.6,306.5 676.2,296.8 672.4,290Z" style="fill:rgb(255,191,191);fill-rule:nonzero;"/>
|
||||
<path id="m_top" d="M844.298,180.688C844.359,180.966 841.662,182.5 840.768,183.543C837.468,187.395 839.789,194.766 836.494,196.652C833.606,198.305 831.293,196.178 830.836,195.771C826.592,191.993 822.374,181.476 813.086,182.034C805.358,182.498 800.722,191.352 795.553,190.302C792.373,189.656 790.05,184.081 789.6,183.2C787.042,178.142 784.793,176.364 782.536,176.673C781.816,176.772 780.123,177.75 779.092,180.869C778.99,181.437 777.228,179.526 776.236,180.688C772.776,184.74 771.742,182.295 771.115,183.105C768.828,186.058 766.691,186.108 764.352,185.654C761.643,185.128 759.828,180.544 759.828,180.544C759.331,185.186 759.057,192.943 752.243,187.914C748.327,185.023 745.465,181.004 740.929,180.841C734.103,180.597 726.77,184.734 726.659,187.963C726.4,195.484 723.064,195.512 722.43,195.489C718.648,195.354 714.293,189.111 712.821,187.219C711.032,184.92 702.674,177.92 699.949,179.305C690.386,184.166 697.318,189.758 692.972,195.58C691.83,197.109 688.043,197.584 685.191,195.83C680.903,193.193 677.354,187.35 677.112,187.093C674.504,184.33 672.556,184.316 670.228,183.052C668.574,182.154 666.941,180.418 666.46,178.651C666.083,177.265 659.974,178.43 659.974,178.43C659.974,178.43 663.822,165.252 666.314,159.702C669.302,153.05 672.802,147.524 676.7,143.6C685,135.3 697,130 707.8,130C713.8,130 715.3,130.4 720.9,133.8C724.4,135.8 729.1,139.7 731.4,142.4C737.5,149.7 738.527,152 741,152C743.473,152 744.902,146.528 747.091,140.104C749.033,134.405 748.787,131.313 753,127.1C761.5,118.6 788.3,115.5 803,121.2C817.6,126.9 831.9,143.9 838.9,163.7C841.5,171 842.201,171.134 844.298,180.688Z" style="fill:rgb(149,112,112);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="a">
|
||||
<path id="a_mid" d="M572,312.9C562.5,311.9 549,308.8 541.5,305.8C512.8,294.6 497.2,279.9 494,260.9C491.4,245.8 495.4,234 508.9,216.1C512.8,211 524,202.5 532.2,198.5C538.5,195.4 540.8,194.8 549.2,194.3C558.5,193.8 559.3,193.9 567.2,196.9C571.8,198.7 578,201.5 581.2,203.1C584.3,204.7 588.8,206.3 591.2,206.6C595.2,207.2 595.8,206.9 600,203.2C604.3,199.4 604.5,199 604.4,193.8C604.3,190.8 603.5,186.8 602.6,184.9C600.5,180.5 592,171 587.1,167.6C583.4,165 582.9,164.9 577.4,165.9C574.2,166.5 569.8,167.9 567.6,169.1C562.9,171.5 556.683,177 553,180C550.331,182.174 549.6,183.6 545.5,187.1C539.2,192.5 537,193.7 532.2,194.7C526.4,195.8 518,195.1 514.2,193.1C507.6,189.5 503.7,179.8 503.6,166.5C503.5,161.3 503.9,159.9 506.8,155.7C512.1,148.1 517.8,143.5 528.5,138.1C539,132.8 554.474,127.387 561.5,125.6C564.109,124.936 570.804,123.32 575.5,122.5C598.337,118.514 611.4,121 618.9,127.1C621.2,129 624.9,132.9 627.1,135.8C631.9,142.1 637.536,150.262 641,158.4C644.817,167.367 647.7,177.8 650,189.6C651.9,199.5 652.1,203.5 651.7,224.1C651.3,249.4 650.8,253.2 645,270.1C640,284.4 636.4,290.7 628.6,298.6C617.5,309.7 610.1,312.7 592,313.4C585.7,313.7 576.7,313.5 572,312.9ZM567.755,268.525C575.51,271.324 583.351,271.527 587.899,269.579C589.479,268.902 591.164,266.937 592.223,262.913C592.426,262.143 592.324,261.514 592.304,261.321C591.937,257.712 589.139,253.47 583.808,248.755C573.008,239.055 564.01,238.19 556.01,245.59C552.448,248.878 551.036,251.637 551.243,254.279C551.338,255.493 551.882,256.923 552.534,258.094C555.464,263.356 560.298,265.833 567.755,268.525Z" style="fill:rgb(149,150,199);fill-rule:nonzero;"/>
|
||||
<path id="a_bottom" d="M572,312.9C562.5,311.9 549,308.8 541.5,305.8C512.8,294.6 497.2,279.9 494,260.9C493.141,255.911 493.689,246.675 493.689,246.675C493.689,246.675 495.325,248.94 501.408,241.381C507.478,233.836 511.537,250.643 518.47,250.784C521.065,250.837 527.583,251.483 537.818,240.495C542.151,235.843 548.148,237.689 547.719,242.085C546.95,249.973 551.183,254.274 551.183,254.274C551.183,254.274 552.168,259.697 556.275,262.709C562.736,267.447 574.753,272.527 586.355,270.15C590.226,269.358 591.729,265.248 592.219,262.694C592.99,258.683 588.269,253.301 588.269,253.301C588.269,253.301 592.037,254.075 595.453,252.172C600.519,249.35 606.347,238.613 613.392,231.394C619.074,225.574 626.73,233.703 624.93,241.849C624.609,243.299 628.333,247.824 629.436,248.001C630.592,248.186 635.198,242.505 640.86,241.09C646.792,239.608 651.128,242.736 651.084,243.37C650.393,253.336 648.886,258.778 645,270.1C640,284.4 636.4,290.7 628.6,298.6C617.5,309.7 610.1,312.7 592,313.4C585.7,313.7 576.7,313.5 572,312.9Z" style="fill:rgb(191,192,255);fill-rule:nonzero;"/>
|
||||
<path id="a_top" d="M637.883,182.841C634.645,185.825 631.737,194.187 627.82,195.049C626.517,195.336 624.555,191.126 624.14,190.372C621.597,185.752 619.167,178.445 610.353,179.547C606.464,180.033 606.531,183.603 605.469,184.566C603.802,186.08 602.681,185.07 602.6,184.9C600.5,180.5 592,171 587.1,167.6C583.4,165 582.9,164.9 577.4,165.9C574.2,166.5 569.8,167.9 567.6,169.1C562.9,171.5 553,180 553,180C553,180 550.082,178.457 544.517,182.659C541.055,185.274 540.297,183.433 538.473,184.352C537.187,185 536.27,187.865 533.861,188.367C532.748,188.578 531.188,185.674 528.794,185.518C525.876,185.329 525.618,189.352 520.037,188.501C517.69,188.143 518.08,186.225 516.053,185.355C514.322,184.612 512.432,184.995 512.353,184.722C511.192,180.698 507.871,180.143 506.508,180.332C506.226,180.371 505.231,179.721 505.143,179.383C504.168,175.637 503.636,171.303 503.6,166.5C503.5,161.3 503.9,159.9 506.8,155.7C512.1,148.1 517.8,143.5 528.5,138.1C539,132.8 554.807,127.289 561.5,125.6C563.668,125.053 572.782,122.993 575.5,122.5C598.309,118.36 611.4,121 618.9,127.1C621.2,129 624.9,132.9 627.1,135.8C634.648,145.749 637.642,151.509 641,158.4C643.885,164.321 647.246,177.147 647.246,177.147C647.246,177.147 640.676,180.268 637.883,182.841Z" style="fill:rgb(104,105,139);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="g">
|
||||
<path id="g_mid" d="M362.735,219.125C362.435,219.125 360.2,185.6 360.2,185.6L359.8,174.1C359.2,159.7 360.2,152.2 363.6,147.3C365,145.2 367.3,141.3 368.7,138.5C371.8,132.3 376.3,127.5 381.5,124.7C387.7,121.4 405.8,121.7 425.5,125.5C433.8,127.1 442.5,128.4 445,128.4C449.2,128.5 449.5,128.3 449.5,125.8C449.5,121.8 452,120 459.1,119C466.5,117.9 474.8,119.3 477.9,122.1C480.9,125 485.7,142.9 488.4,162C495.4,211.7 492.6,270.8 482.4,291.2C477.5,300.8 463.1,309.2 447,311.7C433.2,313.8 406.2,313 396,310C382,306 373,298.9 367.5,287.6C362.8,277.8 361.3,267.8 362.8,256.5C364.3,244.8 366.1,241.3 371.4,239.9C377.3,238.2 384.8,237.8 390,238.9C392.5,239.5 396.6,240.2 399.2,240.5C402.8,241 404.9,242 407.6,244.6C411.2,248 411.3,248.1 410.7,254.1C409.9,260.8 411.3,265.3 415.1,268.9C417.9,271.5 422.9,271.6 430.8,269.4C442,266.2 448,261.9 451.2,254.9C453.7,249.2 455.4,234.6 454.5,226.3L453.7,219.5L452.5,222.9C451.1,227.1 447.7,229.8 442.4,231C434.9,232.7 408.3,234.2 392,233.8C371.8,233.4 369.2,232.5 365.2,224.3C363.8,221.4 363.135,219.125 362.735,219.125ZM432.9,194.5C444.8,188.4 446.3,164.7 435.4,156.1C430.1,151.9 412.4,153.9 408,159.2C405.3,162.5 403.1,169.4 402.4,177C401.4,187.4 405,192.8 415,196.1C418.6,197.3 429.4,196.4 432.9,194.5Z" style="fill:rgb(151,199,149);fill-rule:nonzero;"/>
|
||||
<g id="g_bottom" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M609.747,341.481C610.964,339.109 612.162,338.335 614.329,338.335C616.882,338.335 619.972,335.648 627.226,327.05C632.466,320.87 637.705,315.362 638.78,314.959C643.885,312.944 645.9,314.153 647.512,319.929C649.796,328.662 653.692,334.304 657.588,334.304C657.94,334.304 658.254,334.312 658.534,334.337C661.058,332.218 662.512,332.31 662.068,337.295C659.974,360.757 656.083,380.036 650.602,390.998C644.02,403.895 624.674,415.18 603.044,418.539C595.549,419.679 585.155,420.183 574.525,420.112C573.01,420.17 571.74,420.186 570.802,420.151C570.26,420.122 569.506,420.075 568.595,420.013C554.913,419.65 541.662,418.353 534.529,416.255C515.72,410.881 503.629,401.342 496.24,386.161C489.926,372.996 487.911,359.561 489.926,344.38C490.165,342.517 490.409,340.809 490.667,339.241C490.838,338.201 494.815,338.215 495.63,337.7C497.22,336.696 500.045,334.743 502.42,332.558C512.227,323.288 516.526,320.601 521.228,321.139C525.662,321.542 527.14,323.154 528.349,329.199C529.289,333.633 534.663,335.648 545.948,335.648L554.648,335.784C554.648,335.784 554.637,336.793 554.562,337.938C554.479,339.198 554.33,340.628 554.277,341.156C553.202,350.157 555.083,356.203 560.188,361.039C563.95,364.532 570.667,364.666 581.281,361.711C596.327,357.412 604.388,351.635 608.687,342.231C608.909,341.723 609.267,341.493 609.747,341.481Z" style="fill:rgb(194,255,191);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="g_top" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M597.026,239.487C597.026,239.487 599.523,218.469 587.545,209.654C577.717,202.272 553.891,209.173 550.595,213.602C544.101,222.331 543.471,238.365 542.995,239.078C542.995,239.078 533.934,245.775 530.978,251.552C526.411,260.687 519.708,260.952 517.424,251.682C517.021,249.936 513.839,247.652 511.153,246.443C508.734,245.368 506.113,242.49 505.172,241.281C502.62,238.191 500.539,239.726 493.15,245.771L486.633,250.382L486.433,249.13L485.896,233.68C485.09,214.334 486.433,204.259 491.001,197.676C492.882,194.854 495.972,189.615 497.852,185.853C502.017,177.524 508.063,171.075 515.049,167.314C523.378,162.88 547.694,163.283 574.16,168.389C585.311,170.538 596.999,172.285 600.357,172.285C606,172.419 606.403,172.15 606.403,168.792C606.403,163.418 609.762,161 619.3,159.656C629.242,158.178 640.392,160.059 644.557,163.821C648.587,167.717 655.036,191.765 658.663,217.424C660.426,229.944 661.727,242.907 662.585,255.887C662.213,251.632 661.729,249.145 661.138,249.234C655.227,249.905 650.871,249.264 647.378,245.368L643.482,241.203C643.482,241.203 638.306,246.676 632.261,247.563C628.637,248.095 623.33,244.428 623.33,244.428C621.229,245.461 620.758,248.18 619.07,249.671C613.521,254.573 611.508,257.594 605.597,246.309C602.416,232.726 598.706,234.687 597.026,239.487" style="fill:rgb(106,139,104);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="y" transform="matrix(0.994804,0,0,1,0.995008,0)">
|
||||
<g id="y_mid" transform="matrix(1,0,0,1,0.799493,0.199139)">
|
||||
<path d="M193.432,190.684C193.268,190.41 191.29,186.27 190.965,180.068C190.35,168.365 191,150.35 191,149.5C191,146 193.8,138.1 196.8,133.4C199.6,128.8 210.1,121.4 216.2,119.6C218.2,119 230.6,117.1 235,119.1C240.6,121.6 243.6,124.4 246.2,129.4C248.6,134.1 248.2,138.2 243.9,152C242.3,157.2 241,162.2 241,163.1C241,165.6 245.7,170.8 249.9,172.9C260.2,178.1 279.9,177.5 289.1,171.8C294,168.9 297,164.8 297,161.4C297,160.4 295.4,156.3 293.5,152.3C288.9,143.1 288.1,136.7 290.9,132.3C295.3,125.3 311.8,115.4 320.8,114.3C330.4,113.2 339.3,119.5 347.6,133.5C352.1,140.9 359.044,156.7 359.044,161.4C359.144,164.9 362.322,218.917 361.922,218.917C361.622,218.917 361,222.7 360.7,227.3C359.7,242.8 355.4,260.6 349.7,273C344.2,285.2 343.5,286.2 336.9,292.4C321.2,306.9 303.8,313 278.2,313C245.9,313 218.3,302.8 201.3,284.7C193.4,276.2 190.6,269.3 191.3,259.7C192.2,246.7 201.8,232.5 211.4,230.1C218.2,228.4 230.5,230.6 237,234.7C239.9,236.5 243.9,241 244,242.5C244,244.8 250.3,250.9 253.7,252.1C263,255.1 283.5,249.3 291.6,241.4C299.8,233.3 300.6,227.9 294.3,224.7C288.6,221.8 283.7,221.9 268.8,225.1C252.3,228.6 243.2,229 231.1,226.6C214,223.3 206.1,217.3 198.5,201.7C196,196.6 193.553,190.886 193.432,190.684Z" style="fill:rgb(0,196,208);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="y_bottom" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M267.39,327.472C267.46,327.35 275.371,321.969 279.139,322.885C281.02,323.288 285.453,326.512 288.946,329.871C294.723,335.648 295.395,335.917 299.291,334.573C301.575,333.767 306.277,330.946 309.635,328.393C317.293,322.482 320.786,322.348 324.682,327.587C326.428,329.871 328.444,331.617 329.25,331.617C330.19,331.617 333.146,333.23 335.967,335.11C342.819,339.947 350.342,341.156 363.239,339.544C380.972,337.394 382.585,336.991 385.943,333.901C387.824,332.289 391.183,329.468 393.467,327.587C395.885,325.706 400.184,322.213 403.139,319.929C411.066,313.347 418.992,314.287 418.992,321.676C418.992,323.288 419.529,324.9 420.335,325.169C421.007,325.438 421.813,326.915 422.082,328.528C422.888,333.901 425.709,335.782 432.292,335.513C439.681,335.11 441.831,334.036 450.429,326.512C461.042,317.243 466.147,317.646 468.297,327.99C469.103,332.021 473.267,335.648 477.163,335.648C478.234,335.648 479.515,336.385 480.074,337.3C481.612,336.679 483.084,337.986 483.014,338.272C480.464,348.718 477.159,358.64 473.401,366.815C466.012,383.205 465.072,384.548 456.205,392.878C435.113,412.358 411.737,420.553 377.344,420.553C333.951,420.553 296.872,406.849 274.033,382.533C263.42,371.114 259.658,361.844 260.599,348.947C261.104,341.645 263.653,334.061 267.39,327.472Z" style="fill:rgb(0,239,254);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="y_top" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M260.323,244.206C260.248,243.485 260.189,242.737 260.148,241.966C259.322,226.242 260.196,202.04 260.196,200.899C260.196,196.197 263.957,185.584 267.988,179.269C271.749,173.089 285.856,163.148 294.051,160.73C296.738,159.924 313.396,157.371 319.308,160.058C326.831,163.417 330.861,167.178 334.354,173.896C337.578,180.21 337.041,185.718 331.264,204.257C329.115,211.243 327.368,217.961 327.368,219.17C327.368,222.528 333.682,229.514 339.325,232.336C353.162,239.321 379.628,238.515 391.988,230.858C398.571,226.962 402.601,221.454 402.601,216.886C402.601,215.542 400.452,210.034 397.899,204.661C391.719,192.301 390.645,183.703 394.406,177.792C400.317,168.387 422.484,155.087 434.575,153.609C447.472,152.132 459.429,160.595 470.58,179.404C476.625,189.345 485.954,210.572 485.954,216.886C486.019,219.14 487.72,249.612 487.72,249.612C487.72,249.612 479.04,257.13 476.697,258.235C472.665,260.135 470.559,257.798 468.968,253.026C466.55,245.637 463.326,242.816 456.34,242.01C451.235,241.472 450.026,241.875 446.533,245.234C441.562,250.07 435.919,253.698 433.233,253.698C429.471,253.698 425.709,248.055 425.709,242.681C425.709,239.86 425.038,237.576 424.231,237.576C423.56,237.576 420.067,239.726 416.708,242.278C409.588,247.786 407.573,248.055 403.408,244.159L400.318,241.338L394.676,247.518C388.093,254.772 381.913,255.981 378.151,250.742C377.076,248.995 374.658,245.906 372.912,243.89C369.687,240.129 369.687,240.129 364.582,242.144C361.761,243.353 358.537,245.502 357.596,247.115C355.984,249.398 354.372,249.667 346.849,249.398C339.863,249.13 337.848,249.533 336.907,251.414C334.623,255.31 331.534,253.966 322.667,245.502C312.86,236.098 310.979,235.964 303.456,244.293C298.753,249.398 291.768,253.698 288.275,253.698C287.334,253.698 284.647,251.682 282.229,249.398C275.915,242.681 269.601,239.726 263.958,240.8C261.567,241.256 260.148,242.144 260.148,242.144C260.148,242.144 260.311,243.823 260.323,244.206Z" style="fill:rgb(0,129,138);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="P">
|
||||
<g id="p_mid" transform="matrix(1,0,0,1,-0.159349,-0.379322)">
|
||||
<path d="M66,313.1C57.5,312 51.3,310 49.1,307.5C45.5,303.4 39.5,274.1 37.5,250.5C37.1,246.7 36.7,243.3 36.5,243C35.5,241.4 34.5,213.7 34.5,189.5C34.5,161.3 32.65,141.124 56.083,126.221C65.592,120.172 87.72,114.795 121.454,117.51C157.729,120.43 174.2,129.4 180.7,136.1C186.7,142.3 187.872,144.144 191.065,153.822C192.281,157.507 191.415,172.976 191.6,180.036C191.764,186.27 192.27,192.5 191.6,198.7C190.817,205.95 189.8,212.2 186.3,223.5C184.6,228.9 177.4,238.3 170.6,243.7C168.3,245.5 166,247.4 165.4,247.9C162.9,249.9 154.5,253.2 147.2,255C142.2,256.2 130.855,257.29 123.466,257.363C116.361,257.434 107.076,258.199 103.11,259.676C101.328,260.339 99.971,261.085 98.731,263.093C98.358,263.699 99.022,267.22 99.317,268.614C100.214,272.851 100.587,275.152 101.389,278.383C102.902,284.481 106.707,299.147 104.51,303.459C100.548,311.236 90.6,313.1 82.3,313.5C76.9,313.7 69.6,313.5 66,313.1ZM123.7,210.9C135.1,206.7 142,195.2 142,180.5C142,173.8 141.8,173.1 138.5,169.3C134.3,164.4 128.8,162 119.9,161.3C103,159.9 92.2,169.4 91.2,186.7C90.8,193.1 91.1,194.5 93.4,198.4C99.7,209.2 113.3,214.8 123.7,210.9Z" style="fill:rgb(191,0,179);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<path id="p_bottom" d="M98.4,309.2C91.07,313.505 79.043,314.066 67.094,313.199C61.497,312.793 49.5,309.727 47.8,305.527C45.1,298.927 40.781,279.135 38.381,260.035C37.381,252.635 38.2,251.6 39.8,249.5C43.3,245.1 51.1,239 53.3,239C54.6,239 57,240.3 58.8,242C63.6,246.4 66,246.6 71.5,243.4C74.1,241.9 76.4,240.1 76.7,239.4C77,238.6 77.8,238 78.5,238C79.1,238 80.5,237.1 81.5,236C83.9,233.3 88.6,233.4 90,236.1C90.7,237.2 91,240 90.8,242.3L90.5,246.5L95.4,246.4C99,246.4 100.6,245.9 101.9,244.3C103.7,242 107.1,240 109.4,240C110.2,240 111.4,241.6 112.1,243.5C113.6,247.6 114.7,247.5 121.5,242.9C128.1,238.5 132.3,239.4 133.4,245.5C134.1,248.9 134.2,249 139,249C143.5,249 144.3,248.6 148.5,244.6C152.9,240.3 156.6,238.2 157.7,239.4C158,239.7 158.5,241.4 158.9,243.2C159.4,245.5 160.2,246.6 162,247L164.683,247.897C164.683,247.897 163.185,248.928 161.377,249.743C158.626,250.983 155.11,252.213 154.7,252.4C149,255 137.7,256.7 124.4,256.9C107.4,257.2 102.3,259.117 98.5,262.9C98.212,264.732 99.6,271.5 101.6,279.6C103.6,287.8 105.2,296.2 105.3,298.2C105.5,302.4 102.9,306.6 98.4,309.2Z" style="fill:rgb(237,0,223);fill-rule:nonzero;"/>
|
||||
<g id="p_top" transform="matrix(0.744353,0,0,0.744353,-0.610017,-0.116225)">
|
||||
<path d="M49.619,242.099C47.214,240.103 46.19,237.641 47.458,220.097C47.854,214.616 48.739,207.932 50.114,202.532C58.737,168.674 94.056,153.306 155.334,156.748C219.585,160.358 250.468,177.263 257.292,206.299C258.589,211.816 258.238,216.423 258.252,221.969C258.255,223.054 257.895,227.086 257.918,233.93C257.931,237.542 258.025,242.243 258.055,242.732C257.078,243.011 251.337,246.879 249.916,246.583C248.495,246.287 245.572,244.647 243.422,242.938C236.122,237.137 224.486,240.586 217.454,250.635C209.612,261.843 202.655,259.252 199.584,243.98C199.011,241.13 191.289,238.099 191.289,236.256C191.289,229.648 182.534,222.56 180.114,221.335C172.905,217.689 163.343,215.524 153.974,216.339C139.038,217.636 122.995,228.356 122.995,252.627C122.995,259.04 113.957,244.373 114.718,242.25C115.654,239.641 111.922,241.155 108.287,244.859C103.361,249.878 92.087,257.247 90.353,256.582C87.407,255.451 90.007,247.061 94.723,242.48C99.323,238.014 98.077,235.576 92.823,238.761C90.995,239.869 86.674,241.791 83.219,243.033C78.693,244.66 76.129,246.311 74.044,248.944C68.344,256.141 51,252.863 51,244.588C51,243.849 50.379,242.729 49.619,242.099Z" style="fill:rgb(152,0,143);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="e1" serif:id="e" transform="matrix(1.43823,0,0,1.43823,-549.373,239.665)">
|
||||
<g id="e-shadow" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M1161.47,407.188C1143.12,390.566 1134.18,360.225 1130.7,335.715C1127.31,311.881 1125.42,237.207 1141.98,209.558C1148.97,198.556 1165.01,183.286 1175.53,174.05C1182.12,168.269 1200.67,158.118 1209.12,155.481C1268.43,136.969 1328.89,170.649 1358.63,222.959C1370.14,243.212 1371.18,267.401 1373.26,289.896C1373.97,297.61 1374.55,299.828 1368.76,305.69C1367.38,307.088 1359.91,309.888 1360.87,310.456C1362.22,311.256 1370.29,313.789 1372.51,316.185C1377.62,321.709 1375.37,337.912 1373.56,344.025C1366.05,369.409 1355.27,388.28 1328.64,416.762C1307.42,439.455 1284.32,447.168 1251.85,447.17C1199.55,447.173 1171.68,416.438 1161.47,407.188ZM1245.62,341.29C1244.21,340.763 1239.45,338.913 1240.01,337.967C1240.65,336.892 1246.99,337.11 1248.94,337.059C1252.79,336.96 1260.71,336.771 1261.74,337.797C1262.32,338.381 1260.78,340.517 1260.26,341.156C1257.71,344.112 1253.41,344.246 1245.62,341.29Z" style="fill:rgb(0,1,0);"/>
|
||||
</g>
|
||||
<path id="e-mid" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.143,255.637 847.1,252.2C843.25,239.518 846.7,190.7 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1005.8,179.4 1009,194 1009.7,207C1010.2,217 1010.1,218.8 1008.6,220.2C1004.6,224.3 989.2,226 957,226C935.5,226.1 902.8,224.6 901.1,223.6C900.7,223.3 899.4,223.7 898.4,224.5C896.8,225.6 896.5,227 896.6,232.7C896.8,240.8 898.2,243.9 904.2,249.6C910,255.1 914,257.4 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C948.3,257.2 950.1,254.9 954,247.9C957.6,241.1 959.3,240.3 971.5,239.6C976.5,239.2 984.7,238.5 989.8,237.9C1001.6,236.4 1009.8,237.1 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310ZM953.301,188.795C960.3,185.245 960.401,182.995 954.301,177.295C951.701,174.995 946.501,171.395 942.701,169.395C933.201,164.395 926.301,164.295 918.001,168.995C908.701,174.195 903.101,181.095 905.501,184.395C907.401,186.995 913.201,190.095 917.601,190.895C920.201,191.395 928.201,191.695 935.301,191.495C946.801,191.295 948.901,190.995 953.301,188.795Z" style="fill:rgb(199,198,149);fill-rule:nonzero;"/>
|
||||
<path id="e-bottom" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.643,256.913 847.099,252.006C846.316,249.515 845.963,246.467 845.849,244.662C845.849,244.662 850.035,243.131 852.171,241.133C854.492,238.961 857.52,234.318 859.421,233.824C863.646,232.725 867.463,245.149 868.323,245.671C869.184,246.193 878.128,246.496 879.014,245.471C883.406,240.386 890.428,236.145 893.431,240.239C895.241,242.707 897.537,247.018 900.157,248.101C901.106,248.493 902.327,248.032 902.327,248.032C902.327,248.032 904.74,250.108 904.913,250.268C910.341,255.292 914.39,257.524 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C947.145,257.97 949.06,256.059 951.478,252.215C952.245,250.997 957.62,253.098 965.253,249.516C976.375,244.298 977.437,240.052 981.251,242.813C985.726,246.054 987.611,245.008 993.844,245.324C1004.38,245.859 1005.31,237.213 1008.93,238.352C1010.13,238.732 1011.15,238.9 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310Z" style="fill:rgb(255,254,191);fill-rule:nonzero;"/>
|
||||
<path id="e-top" d="M1006.3,184.38C1006.56,185.396 1000.28,179.352 993.999,180.776C981.283,183.657 983.188,189.019 978.097,189.873C971.966,190.902 967.482,179.035 966.858,181.812C965.881,186.162 963.835,190.772 957.481,186.227C957.127,185.974 959.509,185.207 958.376,182.235C956.295,176.779 938.186,164.162 927.852,165.608C916.427,167.206 903.439,178.535 905.164,183.785C905.926,186.105 905.637,190.321 900.038,190.094C890.009,189.825 889.385,179.676 882.167,180.827C875.385,181.909 871.592,192.172 867.226,195.781C864.545,197.998 862.159,187.096 854.763,187.009C851.701,186.973 850.448,189.405 849.092,190.668C848.337,191.371 847.4,191.225 847.423,190.806C847.599,187.628 847.793,185.319 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1003.84,176.188 1005.16,179.888 1006.3,184.38Z" style="fill:rgb(148,147,111);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c" transform="matrix(0.312039,0,0,0.312039,390.718,399.086)">
|
||||
<g id="c-extrusion" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M721.851,550.457C727.928,550.457 827.348,533.112 830.075,576.298C836.462,677.412 730.733,884.128 643.719,942.226C595.227,974.604 509.776,1019.62 389.313,1023.31C312.833,1025.65 295.55,1021.96 261.937,1013.38C236.346,1007.04 150.829,957.052 116.958,932.22C75.565,901.872 33.515,807.197 25.506,778.197C-30.302,576.1 8.064,139.815 185.865,78.764C192.119,76.617 247.501,27.528 308.818,14.681C447.417,-14.357 522.335,18.904 534.822,24.158C595.781,49.808 653.353,90.498 660.872,96.816C668.39,103.134 756.34,187.743 787.01,250.792C798.526,274.467 805.342,296.115 812.092,339.024C835.733,489.315 490.214,504.804 477.641,401.466C475.891,387.082 466.894,342.731 456.232,332.791C439.136,316.855 442.025,311.346 402,314.612C351.26,318.752 329.799,353.696 326.218,394.37C315.165,519.909 301.873,569.753 352.679,610.82C362.298,618.595 411.291,670.367 464.573,651.936C500.5,639.508 508.146,590.677 513.668,585.155C518.691,580.132 522.063,577.845 526.68,573.227C533.254,566.653 579.914,558.047 596.074,558.047C599.784,558.047 633.609,558.462 634.024,558.047C638.412,553.659 669.719,560.303 673.058,556.963C678.054,551.967 710.725,550.457 721.851,550.457Z" style="fill:rgb(0,1,0);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-middle" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M291,519.706C288.27,524.9 287.724,533.405 288.031,551.262C288.916,587.817 295.108,601.806 321.644,627.53C347.296,652.351 364.987,662.73 406.562,676.269C451.674,691.613 473.788,691.613 495.46,676.269C516.689,661.828 524.65,651.448 541.899,619.858C557.821,589.17 565.339,585.56 619.297,582.401C641.411,580.596 677.678,577.437 700.234,574.729C752.423,567.96 788.69,571.119 796.651,581.95C814.342,606.771 791.786,680.33 743.578,755.696C724.56,785.029 644.95,864.907 619.74,879.8C607.798,887.02 583.031,896.497 564.455,901.01C518.458,912.292 421.157,911.841 371.179,900.108C261.937,873.933 177.904,821.132 123.946,744.413C100.505,710.567 76.622,664.535 69.103,639.263C50.742,622.578 51.964,364.924 73.084,332.839C100.505,197.904 184.538,98.621 309.26,54.846C345.97,42.21 354.373,40.856 402.581,40.856C510.497,41.307 590.549,77.41 675.909,165.411C709.522,199.709 722.348,216.858 732.963,240.325C740.482,257.023 751.096,277.782 756.404,286.356C770.999,310.726 791.222,347.507 768.566,382.281C746.071,416.806 558.984,414.773 552.464,388C545.983,361.388 535.596,349.417 531,317C517.625,222.658 355.13,238.706 317,302C287.5,350.969 291,519.706 291,519.706Z" style="fill:rgb(153,70,242);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-bottom" transform="matrix(4.52766,0,0,4.51288,-3764.68,-498.884)">
|
||||
<path d="M930.5,311C917.7,310.3 914.2,309.7 902.5,305.9C876.6,297.5 853.2,273.9 846.8,249.7C846.8,249.7 845.894,245.341 846.511,242.24C846.796,240.806 850.5,240.4 850.5,240.4C853.3,237.9 856.6,235.2 857.9,234.3C860.1,232.7 860.3,232.7 862.1,235.1C863.1,236.4 864.7,239.2 865.6,241.3C867.2,244.9 867.5,245 872.5,245C877,245 878,244.6 881,241.5C883.4,239 885.3,238 887.5,238C891.1,238 892.8,239.2 895.9,243.8C897.1,245.5 898.6,247 899.2,247C899.7,247 902.3,248.8 904.8,251.1C910.3,255.9 918.9,260.1 928.2,262.6C937.2,265 941.7,263.7 948.1,256.9C951,253.9 953.6,252 955,252C956.9,252 969.5,246.2 974.9,242.9C976.4,241.9 977.9,242 982.1,243.2C985.1,244 989.5,244.6 992,244.4C997.3,244.1 1003.9,241.5 1004.7,239.5C1006.2,235.3 1013,239.7 1013,244.8C1013,256.1 999.2,280.6 985.3,294.1C974.6,304.5 965.9,309.1 954.5,310.5C944.9,311.6 943.4,311.7 930.5,311Z" style="fill:rgb(198,146,254);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-top" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M65.546,358.465C65.203,360.038 69.738,337.922 73.084,332.839C100.505,197.904 184.538,98.621 309.26,54.846C345.97,42.21 354.373,40.856 402.581,40.856C510.497,41.307 590.549,77.41 675.909,165.411C709.522,199.709 722.348,216.858 732.963,240.325C740.482,257.023 787.585,339.53 751.194,280.69C738.368,277.982 702.522,280.239 683.504,289.716C670.236,296.034 656.083,305.511 651.66,310.475C639.719,324.014 621.585,321.306 603.894,303.254C589.299,288.813 588.414,288.362 585.761,296.936C582.974,305.822 540.505,306.909 531,306.227C531,306.227 530.735,309.837 530.802,315.677C516.101,222.809 354.951,239.003 317,302C310.99,311.977 306.349,326.926 302.77,344.406L304,325.997C293.036,325.642 271.03,351.475 269.013,348.183C260.61,335.095 230.977,313.434 221.689,313.434C210.632,313.434 181.884,342.767 166.847,368.491C157.117,385.64 150.04,384.286 130.58,363.075C112.447,343.219 97.852,340.06 79.718,352.244L65.546,358.465Z" style="fill:rgb(104,7,207);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snake-tail">
|
||||
<path id="snake_tail_base" d="M359.539,568.196C376.328,592.171 434.458,633.823 472.406,645.044C518.279,658.609 587.405,660.336 679.897,656.156C766.077,652.261 877.439,609.231 885.968,606.044C946.203,583.541 988.401,586.899 1002.77,588.423C1054.38,593.898 1092.66,618.872 1105.56,652.899C1107.03,656.798 1107.96,661.403 1108.11,662.156C1115.54,698.952 1092.31,745.481 1006.45,759.564C995.342,761.385 982.115,762.218 979.991,762.352C947.147,764.422 916.417,761.664 900.568,760.005C900.027,759.949 897.098,759.621 897.096,759.619C896.888,759.415 896.68,759.21 896.472,759.005L897.086,758.381C920.666,755.248 960.94,749.126 998.448,734.044C1001.31,732.895 1040.04,718.757 1054.57,696.061C1062.67,683.412 1057.6,676.782 1056.5,675.201C1056.44,675.115 1056.39,675.039 1055.73,674.157L1055.72,674.162C1046.89,661.435 1021.07,652.141 985.406,657.389C970.846,659.532 947.275,664.381 914.644,682.241C888.624,696.484 860.366,709.234 855.562,711.402C791.611,740.257 741.065,754.86 723.718,760.028C655.604,780.321 608.2,785.752 597.768,787.339C538.289,796.383 497.033,794.764 478.312,794.054C412.814,791.57 368.605,777.343 347.322,770.155C284.795,749.036 228.899,704.313 207.141,681.184" style="fill:rgb(240,204,0);stroke:black;stroke-width:5px;"/>
|
||||
<g id="snake_tail_light" transform="matrix(1,5.64119e-17,-3.05311e-16,1.01623,2.04636e-12,-12.3165)">
|
||||
<path d="M896.676,759.017L897.074,758.592C951.201,752.838 984.112,741.815 992.331,739.065C1015.5,731.312 1029.28,723.735 1036.57,719.259C1037.44,718.722 1042.98,714.485 1047.89,709.526C1065.93,691.322 1061.39,679.41 1059.79,675.375C1059.07,673.557 1058.08,671.773 1057.91,671.47C1057.67,671.036 1057.64,670.094 1056.18,667.794C1050.75,659.228 1037.44,650.208 1025.71,645.707C1025.23,645.522 1021.8,644.491 1015.78,643.683C997.914,641.282 974.998,641.164 974.948,641.163C972.129,641.103 969.766,640.979 962.226,641.773C931.009,645.062 898.749,656.775 888.367,660.635C887.104,661.105 877.432,665.466 876.485,665.893C855.906,675.173 822.54,687.708 819.947,688.741C812.868,691.56 799.621,697.347 786.188,702.253C739.683,719.239 693.323,727.941 685.571,729.433C653.385,735.629 626.433,738.765 608.696,740.444C604.338,740.856 589.619,741.536 578.085,741.82C522.481,743.188 469.149,738.496 418.693,722.692C408.655,719.548 366.963,709.208 319.424,677.321C295.988,661.6 277.151,645.53 259.994,628.072C254.961,622.951 248.884,616.425 247.698,614.923C247.43,614.582 244.53,610.909 244.369,610.65C242.42,607.502 240.145,604.529 238.523,601.207C236.944,597.975 235.712,594.561 234.814,591.085C233.931,587.661 233.401,584.133 233.206,580.605C233.012,577.1 233.166,573.56 233.653,570.083C234.14,566.605 234.963,563.156 236.112,559.833C237.269,556.489 238.748,553.233 240.539,550.171C242.357,547.063 244.481,544.104 246.889,541.411C246.901,541.399 255.12,533.868 255.128,533.863C258.326,531.945 261.347,529.707 264.723,528.11C268.008,526.556 271.477,525.344 275.01,524.461C278.49,523.591 282.075,523.07 285.66,522.878C289.222,522.687 292.819,522.839 296.353,523.318C299.887,523.797 303.391,524.607 306.769,525.738C310.167,526.876 313.476,528.331 316.588,530.094C319.746,531.883 322.753,533.973 325.489,536.343C331.277,541.355 330.94,541.68 335.67,547.673C336.608,548.86 340.725,555.506 348.123,565.17C365.483,587.848 380.515,600.249 383.738,602.966C408.038,623.447 431.285,634.651 445.907,640.896C445.944,640.912 450.996,642.83 457.753,645.007C505.526,660.404 557.255,663.368 603.857,662.89C607.323,662.854 662.21,665.356 729.772,655.323C763.895,650.256 782.974,644.572 790.099,642.64C801.012,639.682 801.022,639.727 807.413,637.805C851.965,624.408 856.102,622.046 869.867,617.329C873.303,616.152 888.961,609.816 910.249,603.841C936.572,596.452 955.258,594.205 966.707,593.42C972.364,593.032 980.77,593.425 981.991,593.482C998.957,594.276 1026.6,596.67 1040.75,601.406C1041.5,601.658 1054.02,605.899 1068.12,615.376C1078.15,622.112 1098.06,637.597 1103.68,659.958C1104.03,661.376 1104.31,665.626 1104.36,668.049C1104.77,685.998 1098.6,715.97 1055.73,734.009C1050.56,736.185 1047.64,737.049 1046.34,737.612C1034.07,742.941 1007.63,752.855 957.55,757.446C930.044,759.967 906.841,759.606 897.11,759.408C896.794,759.402 896.909,759.227 896.676,759.017Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="controller" transform="matrix(1.74196,0.213885,-0.213885,1.74196,-1198.25,-299.016)">
|
||||
<g id="controller_shadow" transform="matrix(0.565541,-0.0694397,0.0694397,0.565541,696.515,84.3871)">
|
||||
<path d="M1419.81,473.179C1401.86,469.487 1386.35,459.968 1375.04,446.884C1374.98,446.81 1374.85,446.662 1374.85,446.662L1259.66,432.449C1259.66,432.449 1259.45,432.597 1259.34,432.671C1243.52,443.799 1223.68,449.326 1202.99,446.782C1158.7,441.334 1127.16,400.948 1132.61,356.65C1138.06,312.352 1178.44,280.81 1222.74,286.257L1446.05,313.721C1466.36,316.219 1484,326.07 1496.61,340.276C1460.72,398.605 1438.4,442.425 1419.81,473.179Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="controller_base" transform="matrix(1,1.38778e-17,-1.38778e-17,1,0.0303899,0.00185873)">
|
||||
<path d="M1543.54,151.836C1568.96,151.841 1589.6,172.491 1589.6,197.922C1589.59,223.352 1568.94,243.995 1543.52,243.99C1531.63,243.988 1520.8,239.476 1512.62,232.076C1512.58,232.039 1512.5,231.964 1512.5,231.964L1446.37,231.924C1446.37,231.924 1446.26,232.023 1446.21,232.072C1438.03,239.464 1427.2,243.967 1415.32,243.965C1389.89,243.96 1369.25,223.31 1369.26,197.879C1369.26,172.448 1389.91,151.806 1415.34,151.811C1428.76,151.814 1531.15,151.834 1543.54,151.836Z" style="fill:rgb(203,207,204);stroke:black;stroke-width:2.65px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="panel-right">
|
||||
<g id="back" transform="matrix(1.25194,6.94183e-05,-6.94266e-05,1.25209,702.158,-210.326)">
|
||||
<path d="M671.126,294.011C688.787,293.917 703.201,308.18 703.295,325.841C703.388,343.502 689.126,357.916 671.465,358.01C653.804,358.104 639.389,343.841 639.296,326.18C639.202,308.519 653.465,294.104 671.126,294.011Z" style="fill:rgb(70,93,99);"/>
|
||||
</g>
|
||||
<g id="labels">
|
||||
<g id="X" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1073.74,-61.4904)">
|
||||
<path d="M671.925,328.927L674.297,325.264L672.113,321.931L673.764,321.922L675.178,324.162L676.541,321.907L678.177,321.899L676.019,325.308L678.429,328.893L676.726,328.902L675.162,326.491L673.619,328.918L671.925,328.927Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="Y" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1026.13,-24.0172)">
|
||||
<path d="M674.752,329.265L674.736,326.321L672.153,322.284L673.808,322.275L675.469,325.034L677.067,322.258L678.694,322.249L676.144,326.323L676.16,329.258L674.752,329.265Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="B" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1043.41,-8.06965)">
|
||||
<path d="M673,322.152L675.797,322.137C676.35,322.134 676.763,322.155 677.035,322.2C677.307,322.244 677.551,322.339 677.767,322.484C677.982,322.63 678.162,322.823 678.307,323.066C678.451,323.309 678.524,323.581 678.526,323.883C678.528,324.211 678.441,324.512 678.266,324.786C678.091,325.061 677.852,325.267 677.551,325.406C677.978,325.528 678.307,325.737 678.537,326.035C678.768,326.333 678.884,326.684 678.886,327.088C678.888,327.406 678.816,327.716 678.669,328.017C678.523,328.319 678.322,328.56 678.067,328.741C677.812,328.922 677.497,329.034 677.122,329.078C676.887,329.104 676.319,329.123 675.419,329.134L673.038,329.147L673,322.152ZM674.419,323.309L674.428,324.926L675.353,324.921C675.904,324.918 676.246,324.908 676.379,324.892C676.621,324.862 676.81,324.777 676.948,324.638C677.086,324.499 677.154,324.317 677.153,324.091C677.151,323.875 677.091,323.699 676.971,323.565C676.851,323.43 676.673,323.349 676.438,323.322C676.298,323.307 675.895,323.301 675.23,323.304L674.419,323.309ZM674.434,326.09L674.444,327.961L675.751,327.954C676.26,327.951 676.583,327.935 676.72,327.906C676.929,327.867 677.1,327.773 677.231,327.624C677.362,327.475 677.427,327.277 677.426,327.029C677.425,326.819 677.373,326.641 677.27,326.495C677.168,326.349 677.02,326.244 676.827,326.178C676.634,326.112 676.217,326.081 675.574,326.084L674.434,326.09Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="A" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1092.32,-44.9897)">
|
||||
<path d="M679.066,328.752L677.53,328.76L676.911,327.174L674.115,327.189L673.546,328.781L672.047,328.789L674.735,321.78L676.228,321.772L679.066,328.752ZM676.451,325.998L675.474,323.408L674.543,326.008L676.451,325.998Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="button-set2">
|
||||
<g id="reduttonframe1" transform="matrix(0.756173,0.897271,-0.581386,0.490079,1194.96,-604.73)">
|
||||
<path d="M733.551,309.883C733.526,302.643 729.697,296.797 725.006,296.836C720.315,296.874 716.526,302.782 716.551,310.022L716.677,346.788C716.702,354.027 720.531,359.873 725.222,359.835C729.913,359.796 733.702,353.888 733.677,346.649L733.551,309.883Z" style="fill:rgb(209,209,205);"/>
|
||||
</g>
|
||||
<g id="redbutton2" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1381.18,-536.495)">
|
||||
<path d="M678.124,355.079C682.497,355.056 686.065,358.587 686.088,362.959C686.111,367.331 682.581,370.9 678.208,370.923C673.836,370.946 670.267,367.415 670.244,363.043C670.221,358.671 673.752,355.102 678.124,355.079Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton21" serif:id="redbutton2" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1382.78,-538.55)">
|
||||
<path d="M678.124,355.079C682.497,355.056 686.065,358.587 686.088,362.959C686.111,367.331 682.581,370.9 678.208,370.923C673.836,370.946 670.267,367.415 670.244,363.043C670.221,358.671 673.752,355.102 678.124,355.079Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
<g id="redbutton1" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1401.09,-553.279)">
|
||||
<path d="M677.987,355.079C682.359,355.056 685.927,358.587 685.951,362.959C685.974,367.332 682.443,370.9 678.07,370.923C673.698,370.946 670.13,367.416 670.106,363.043C670.083,358.671 673.614,355.102 677.987,355.079Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton11" serif:id="redbutton1" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1402.7,-555.334)">
|
||||
<path d="M677.987,355.079C682.359,355.056 685.927,358.587 685.951,362.959C685.974,367.332 682.443,370.9 678.07,370.923C673.698,370.946 670.13,367.416 670.106,363.043C670.083,358.671 673.614,355.102 677.987,355.079Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="button-set1">
|
||||
<g id="redbuttonframe2" transform="matrix(0.756173,0.897271,-0.581386,0.490079,1174.3,-621.108)">
|
||||
<path d="M733.575,310.063C733.55,302.823 729.721,296.977 725.03,297.015C720.339,297.054 716.55,302.962 716.575,310.202L716.701,346.967C716.726,354.207 720.555,360.053 725.246,360.015C729.937,359.976 733.726,354.068 733.701,346.828L733.575,310.063Z" style="fill:rgb(209,209,205);"/>
|
||||
</g>
|
||||
<g id="redbutton4" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1360.52,-552.873)">
|
||||
<path d="M678.152,355.215C682.525,355.192 686.093,358.723 686.116,363.096C686.14,367.468 682.609,371.036 678.236,371.06C673.864,371.083 670.295,367.552 670.272,363.179C670.249,358.807 673.78,355.239 678.152,355.215Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton41" serif:id="redbutton4" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1362.13,-554.928)">
|
||||
<path d="M678.152,355.215C682.525,355.192 686.093,358.723 686.116,363.096C686.14,367.468 682.609,371.036 678.236,371.06C673.864,371.083 670.295,367.552 670.272,363.179C670.249,358.807 673.78,355.239 678.152,355.215Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
<g id="redbutton3" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1380.43,-569.657)">
|
||||
<path d="M678.015,355.216C682.387,355.193 685.955,358.724 685.979,363.096C686.002,367.468 682.471,371.037 678.099,371.06C673.726,371.083 670.158,367.552 670.135,363.18C670.111,358.808 673.642,355.239 678.015,355.216Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton31" serif:id="redbutton3" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1382.04,-571.712)">
|
||||
<path d="M678.015,355.216C682.387,355.193 685.955,358.724 685.979,363.096C686.002,367.468 682.471,371.037 678.099,371.06C673.726,371.083 670.158,367.552 670.135,363.18C670.111,358.808 673.642,355.239 678.015,355.216Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="panel-middle">
|
||||
<g id="button2_shadow" transform="matrix(0.7629,-0.596793,0.50169,0.641485,825.176,317.256)">
|
||||
<path d="M595.758,371.768C595.756,374.34 593.999,376.426 591.836,376.424L578.232,376.41C576.07,376.407 574.316,374.317 574.318,371.745C574.319,369.173 576.077,367.087 578.239,367.089L591.843,367.104C594.005,367.106 595.759,369.196 595.758,371.768Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="button1_shadow" transform="matrix(0.762933,-0.596751,0.501656,0.641513,849.213,314.296)">
|
||||
<path d="M593.889,374.588C593.889,377.16 592.133,379.248 589.971,379.247L576.367,379.246C574.204,379.245 572.449,377.157 572.449,374.585C572.449,372.013 574.205,369.925 576.368,369.925L589.971,369.927C592.134,369.927 593.889,372.016 593.889,374.588Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="button2" transform="matrix(0.7629,-0.596793,0.50169,0.641485,826.704,315.3)">
|
||||
<path d="M594.538,371.767C594.539,369.996 593.331,368.556 591.842,368.555L578.238,368.54C576.749,368.539 575.539,369.976 575.538,371.747C575.536,373.518 576.744,374.957 578.233,374.959L591.837,374.973C593.326,374.974 594.536,373.538 594.538,371.767Z" style="fill:rgb(51,66,73);stroke:black;stroke-width:2.64px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="button1" transform="matrix(0.762933,-0.596751,0.501656,0.641513,850.741,312.34)">
|
||||
<path d="M592.669,374.588C592.669,372.816 591.461,371.378 589.971,371.378L576.368,371.376C574.878,371.376 573.669,372.814 573.669,374.585C573.669,376.356 574.878,377.794 576.367,377.795L589.971,377.796C591.46,377.796 592.669,376.359 592.669,374.588Z" style="fill:rgb(50,65,72);stroke:black;stroke-width:2.64px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="infobox" transform="matrix(0.427146,0.052447,-0.0524533,0.427198,1387.96,77.9999)">
|
||||
<path d="M292.484,163.35C291.66,156.627 285.532,151.838 278.809,152.662L176.592,165.191C169.869,166.015 165.08,172.142 165.904,178.865L168.891,203.228C169.716,209.951 175.843,214.741 182.566,213.917L284.783,201.388C291.506,200.564 296.295,194.436 295.471,187.713L292.484,163.35Z" style="fill:rgb(100,100,100);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="panel-left">
|
||||
<g id="d-pad">
|
||||
<g id="dpad_shadow" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-11.5965,85.393)">
|
||||
<path d="M1409.57,204.851L1409.57,212.522C1409.57,216.449 1409.13,216.008 1413.06,216.009L1420.03,216.01C1423.95,216.01 1423.51,216.451 1423.51,212.524L1423.52,204.854L1431.18,204.855C1435.11,204.855 1434.67,205.296 1434.67,201.369L1434.67,194.396C1434.67,190.468 1435.11,190.91 1431.19,190.909L1423.52,190.908L1423.52,183.238C1423.52,179.31 1423.96,179.751 1420.03,179.751L1413.06,179.75C1409.13,179.749 1409.58,179.308 1409.57,183.236L1409.57,190.906L1401.9,190.905C1397.98,190.904 1398.42,190.463 1398.42,194.39L1398.42,201.363C1398.41,205.291 1397.97,204.85 1401.9,204.85L1409.57,204.851Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="dpad" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-9.03074,82.109)">
|
||||
<path d="M1409.57,204.851L1409.57,212.522C1409.57,216.449 1409.13,216.008 1413.06,216.009L1420.03,216.01C1423.95,216.01 1423.51,216.451 1423.51,212.524L1423.52,204.854L1431.18,204.855C1435.11,204.855 1434.67,205.296 1434.67,201.369L1434.67,194.396C1434.67,190.468 1435.11,190.91 1431.19,190.909L1423.52,190.908L1423.52,183.238C1423.52,179.31 1423.96,179.751 1420.03,179.751L1413.06,179.75C1409.13,179.749 1409.58,179.308 1409.57,183.236L1409.57,190.906L1401.9,190.905C1397.98,190.904 1398.42,190.463 1398.42,194.39L1398.42,201.363C1398.41,205.291 1397.97,204.85 1401.9,204.85L1409.57,204.851Z" style="fill:rgb(32,44,51);stroke:black;stroke-width:2.47px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="shadow1" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-8.59573,82.0861)">
|
||||
<path d="M1404.38,197.522L1428.35,197.526C1429.56,197.526 1431.18,198.212 1431.18,198.212C1431.18,198.212 1431.2,197.683 1431.2,197.375L1431.2,196.227C1431.2,192.861 1431.92,193.758 1428.35,193.757L1420.24,193.772L1420.24,185.044C1420.24,181.678 1420.97,182.575 1417.39,182.574L1415.79,182.599C1412.21,182.599 1412.93,181.702 1412.93,185.068L1412.93,193.796L1404.38,193.754C1400.81,193.753 1401.53,192.856 1401.53,196.223L1401.53,197.371C1401.53,197.714 1401.52,198.076 1401.52,198.076C1401.52,198.076 1403.2,197.522 1404.38,197.522Z" style="fill:rgb(17,22,24);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="shadow2" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1416.31,227.099C1416.96,227.133 1423.74,227.37 1431.27,222.565C1435.87,219.629 1439.4,213.952 1439.4,213.952C1439.4,213.952 1437.11,219.468 1431.59,223.028C1424.74,227.454 1417.01,227.137 1416.31,227.099C1416.28,227.097 1416.26,227.096 1416.26,227.096C1416.26,227.096 1416.28,227.097 1416.31,227.099Z" style="fill:rgb(128,128,128);"/>
|
||||
</g>
|
||||
<g id="shadow11" serif:id="shadow1" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1440.8,187.23C1440.26,186.136 1439.52,184.911 1438.53,183.776C1435.8,180.65 1431.2,177.888 1427.12,176.064C1423.77,174.562 1420.01,172.858 1415.45,172.492C1411.33,172.162 1405.21,173.498 1405.21,173.498C1405.21,173.498 1417.69,168.118 1428.8,174.116C1435.62,177.8 1439.15,183.588 1440.8,187.23C1441.71,189.099 1442.04,190.584 1442.04,190.584C1442.04,190.584 1441.7,189.231 1440.8,187.23Z" style="fill:rgb(59,59,59);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snake-head" transform="matrix(1.74196,0.213885,-0.213885,1.74196,-1198.25,-299.016)">
|
||||
<g id="head-shadow">
|
||||
<g id="jaw_shadow" transform="matrix(0.966789,-0.000509118,0.000541645,1.02855,886.258,-166.995)">
|
||||
<path d="M569.42,389.108C573.599,388.846 591.189,392.816 601.973,392.583C621.269,392.166 625.866,390.112 629.084,390.607C644.095,392.916 646.899,404.867 645.412,412.246C643.561,421.437 636.374,436.903 599.987,436.671C558.349,436.406 552.265,415.036 553.411,405.263C554.978,391.9 564.566,389.412 569.42,389.108Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="head_shadow" transform="matrix(0.565541,-0.0694397,0.0694397,0.565541,696.515,84.3871)">
|
||||
<path d="M1547.17,262.701C1547.17,262.701 1536.35,276.182 1532.38,281.213C1526.64,288.487 1515.91,289.702 1507.77,294.127C1498.91,298.942 1487.62,304.343 1479.24,310.102C1471.38,315.503 1464.59,323.65 1457.47,328.679C1450.97,333.281 1443.72,336.763 1436.57,340.278C1428.4,344.292 1418.27,349.836 1408.47,352.763C1398.66,355.69 1388.11,357.435 1377.73,357.84C1364.98,358.338 1346.48,357.539 1331.94,355.751C1317.94,354.028 1302.17,350.614 1290.5,347.112C1280.56,344.128 1270.72,339.956 1261.92,334.74C1253.11,329.525 1244.63,321.692 1237.68,315.818C1231.59,310.675 1225.4,305.541 1220.21,299.5C1214.52,292.897 1209.91,283.347 1203.59,276.202C1196.85,268.583 1187.21,260.607 1179.78,253.79C1172.96,247.525 1162.84,243.745 1159.03,235.297C1155.59,227.661 1154.69,215.841 1155.61,205.634C1156.14,202.246 1156.96,198.847 1158.07,195.448C1163.17,200.777 1167.82,205.426 1174.09,207.518C1195.65,56.069 1407.89,13.746 1500.57,141.687C1519.42,167.713 1531.85,194.242 1539.26,215.859C1547.78,240.687 1549.69,259.035 1547.17,262.701Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="head_base" transform="matrix(1,1.38778e-17,-1.38778e-17,1,0.0303899,0.00185873)">
|
||||
<path d="M1484.47,23.611C1503.71,23.627 1503.94,13.26 1521.53,9.733C1531.13,7.809 1543.3,9.516 1546.57,10.36C1563.32,14.679 1569.08,31.326 1572.6,40.656C1576.37,50.617 1576.56,55.129 1581.61,66.701C1585.58,75.79 1588.48,82.31 1590.51,88.715C1592.68,95.56 1594.62,100.761 1594.62,107.772C1594.62,114.255 1593.45,122.13 1590.61,126.803C1587.87,131.316 1581.89,132.748 1577.59,135.816C1572.92,139.154 1566.91,142.993 1562.57,146.831C1558.5,150.432 1555.22,155.511 1551.55,158.849C1548.19,161.904 1544.33,164.376 1540.53,166.861C1536.19,169.698 1530.85,173.536 1525.5,175.873C1520.16,178.209 1514.32,179.928 1508.48,180.878C1501.3,182.045 1490.78,182.878 1482.43,182.876C1474.39,182.874 1465.24,182.038 1458.4,180.868C1452.57,179.871 1446.71,178.195 1441.37,175.856C1436.03,173.518 1430.69,169.677 1426.35,166.838C1422.55,164.352 1418.69,161.878 1415.34,158.823C1411.66,155.483 1408.39,150.403 1404.32,146.801C1399.98,142.96 1393.97,139.119 1389.3,135.779C1385.01,132.71 1379.02,131.275 1376.28,126.762C1373.44,122.087 1372.11,114.073 1372.28,107.729C1372.45,101.385 1374.99,94.84 1377.29,88.698C1379.8,82.021 1384.45,74.886 1387.31,67.665C1390.48,59.652 1392.56,49.579 1396.33,40.622C1400.2,31.428 1407.69,16.425 1419.46,11.157C1427.43,7.591 1441.82,8.413 1448.42,9.719C1466.03,13.208 1465.82,23.595 1484.47,23.611Z" style="fill:rgb(254,227,45);stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="face-shadows" transform="matrix(1.00155,-1.38778e-17,-1.52656e-16,1.00167,894.193,-165.734)">
|
||||
<g id="shadow3" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1521.82,12.219C1527.23,9.394 1538.79,9.481 1545.1,11.167C1551.13,12.782 1555.87,17.325 1559.67,22.34C1564.5,28.725 1565.64,26.87 1575.93,56.91C1578.26,63.681 1580.8,70.655 1582.88,75.235C1584.34,78.453 1585.51,81.112 1586.79,84.39C1588.45,88.629 1590.48,95.58 1591.22,100.666C1591.9,105.384 1592.5,110.336 1591.22,114.908C1589.93,119.486 1589.5,125.306 1585.1,128.134C1577.97,132.71 1561.1,144.367 1561.1,144.367C1559.79,142.192 1564.48,132.508 1557.88,121.126C1550.22,107.89 1542.21,104.758 1542.21,104.758C1542.21,104.758 1559.02,95.808 1561.88,71.169C1563.1,60.673 1559.36,41.955 1552.55,33.64C1541.13,19.685 1532.92,19.952 1524,19.12C1519.91,18.738 1520.21,13.064 1521.82,12.219Z" style="fill:rgb(255,223,38);"/>
|
||||
</g>
|
||||
<g id="shadow21" serif:id="shadow2" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1489.73,26.181C1489.73,26.181 1497.4,24.469 1500.5,22.616C1505.93,19.368 1513.67,13.307 1519.81,12.617C1522.82,12.279 1520.63,15.733 1519.77,17.161C1518.47,19.303 1518.94,17.039 1508.98,26.004C1499.72,34.342 1493.84,51.231 1493.74,66.247C1493.69,73.217 1499.3,89.043 1500.75,89.284L1486.73,87.283C1486.73,87.283 1485.25,67.912 1485.72,58.235C1486.22,48.051 1489.73,26.181 1489.73,26.181Z" style="fill:rgb(240,204,0);"/>
|
||||
</g>
|
||||
<g id="shadow12" serif:id="shadow1" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1405.32,145.622C1405.32,145.622 1390.63,134.282 1385.68,131.88C1382.04,130.116 1379.62,128.685 1378.27,126.84C1374.35,121.509 1374.05,113.99 1373.89,109.714C1373.6,101.948 1376.82,94.4 1379.12,88.301C1381.31,82.535 1384.28,77.92 1386.77,72.849C1387.2,71.954 1391.56,60.25 1391.85,59.281C1396.63,43.665 1396.04,45.384 1400.14,36.004C1405.24,24.368 1413.02,15.889 1419.26,12.845C1425.33,9.888 1437.14,10.531 1434.52,14.005C1433.35,15.56 1430.27,17.487 1424.6,21.097C1419.41,24.395 1413.77,29.993 1412.28,32.384C1409.35,37.071 1402.77,50.733 1402.43,64.479C1402.3,69.822 1404.06,80.38 1405.04,83.942C1406.61,89.608 1408.61,100.817 1408.61,103.321C1408.61,105.561 1406.55,107.298 1405.61,109.332C1404.61,111.502 1403.13,113.855 1402.6,116.344C1401.94,119.516 1401.31,124.354 1401.6,128.364C1401.94,132.871 1405.32,145.622 1405.32,145.622Z" style="fill:rgb(239,204,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="face-highlights" transform="matrix(1.00155,-1.38778e-17,-1.66533e-16,1.00167,895.927,-160.133)">
|
||||
<g id="highlight3" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1552.81,19.744C1554.06,17.836 1559.64,20.775 1561.12,22.839C1562.85,25.236 1563.88,31.689 1563.07,32.085C1561.92,32.65 1559.86,27.69 1558.19,25.358C1556.46,22.961 1552.32,20.496 1552.81,19.744Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g id="highlight2" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1584.59,109.737C1583.34,109.289 1583.02,112.525 1582.09,115.48C1581.03,118.886 1580.42,119.824 1578.89,121.573C1574.18,126.985 1573.99,130.665 1575,130.752C1579.32,131.121 1582.1,125.084 1583.68,120.932C1584.64,118.437 1585.29,109.991 1584.59,109.737Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g id="highlight1" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1473.1,23.129C1473.68,22.527 1476.81,24.424 1477.83,25.726C1478.85,27.027 1479.79,30.338 1479.21,30.94C1478.63,31.542 1475,30.067 1473.99,28.765C1472.97,27.463 1472.52,23.731 1473.1,23.129Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="eyes">
|
||||
<g id="eye-r">
|
||||
<g id="eyeball-r" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1528.21,22.677C1545.14,22.68 1558.88,41.607 1558.87,64.916C1558.87,88.225 1545.12,107.146 1528.2,107.143C1511.27,107.139 1497.54,88.213 1497.54,64.904C1497.55,41.595 1511.29,22.674 1528.21,22.677Z" style="fill:white;stroke:black;stroke-width:2.77px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="pupil-r" transform="matrix(1.17746,1.11022e-16,8.32667e-17,1.17746,-268.628,-25.7873)">
|
||||
<path d="M1514.56,72.669C1519.87,72.67 1524.19,76.987 1524.19,82.303C1524.19,87.619 1519.87,91.935 1514.55,91.934C1509.24,91.933 1504.92,87.616 1504.92,82.299C1504.93,76.983 1509.24,72.668 1514.56,72.669Z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="eye-l">
|
||||
<g id="eyeball-l" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1437.73,22.659C1454.65,22.663 1468.39,41.589 1468.38,64.898C1468.38,88.207 1454.63,107.128 1437.71,107.125C1420.79,107.122 1407.05,88.195 1407.05,64.886C1407.06,41.577 1420.8,22.656 1437.73,22.659Z" style="fill:white;stroke:black;stroke-width:2.77px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="pupil-l" transform="matrix(1.17746,1.11022e-16,8.32667e-17,1.17746,-257.448,-25.7851)">
|
||||
<path d="M1451.56,72.656C1456.87,72.657 1461.19,76.974 1461.19,82.291C1461.19,87.607 1456.87,91.922 1451.55,91.921C1446.24,91.92 1441.92,87.603 1441.92,82.287C1441.92,76.971 1446.24,72.655 1451.56,72.656Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="jaw">
|
||||
<g id="jaw-base" transform="matrix(0.966789,-0.000509118,0.000541645,1.02855,892.707,-175.25)">
|
||||
<path d="M569.42,389.108C573.599,388.846 591.189,392.816 601.973,392.583C621.269,392.166 625.866,390.112 629.084,390.607C644.095,392.916 646.899,404.867 645.412,412.246C643.561,421.437 636.374,436.903 599.987,436.671C558.349,436.406 552.265,415.036 553.411,405.263C554.978,391.9 564.566,389.412 569.42,389.108Z" style="fill:rgb(240,204,0);stroke:black;stroke-width:2.83px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="jaw-light" transform="matrix(0.931083,-0.000490315,0.00052164,0.990567,913.997,-159.516)">
|
||||
<path d="M587.362,396.695C592.828,396.373 597.492,396.713 604.111,396.033C614.154,394.999 620.211,392.212 627.296,391.234C634.38,390.256 640.519,394.432 643.726,399.294C647.362,404.804 646.532,409.459 645.797,412.778C642.972,425.521 631.326,433.025 602.625,432.724C591.307,432.605 585.525,431.883 577.278,426.782C571.056,422.933 566.066,412.338 569.276,405.034C572.991,396.583 582.194,396.999 587.362,396.695Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
<g id="hilight1" transform="matrix(0.966789,-0.000509118,0.00050918,0.966905,672.291,-152.965)">
|
||||
<path d="M859.405,400.127C860.405,400.126 863.362,401.485 864.406,403.124C865.574,404.957 866.41,409.789 866.41,411.123C866.411,411.789 864.882,411.595 864.41,411.124C863.743,410.458 863.303,408.317 862.408,407.125C861.408,405.792 858.907,404.293 858.406,403.127C857.99,402.158 858.405,400.127 859.405,400.127Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snout" transform="matrix(1.01627,2.49019e-17,-2.49019e-17,1.01627,-24.0994,-2.4617)">
|
||||
<g id="tooth_r" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1532.52,170.866L1544.54,163.856L1540.52,211.936L1532.52,170.866Z" style="fill:white;stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="tooth_l" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1430.36,170.846L1418.34,163.832L1422.34,211.913L1430.36,170.846Z" style="fill:white;stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="snout_base" transform="matrix(1.16089,0.000531638,-0.000959148,2.0944,804.244,-533.637)">
|
||||
<path d="M584.086,297.961C620.512,297.97 650.077,307.836 650.067,319.978C650.056,332.12 620.474,341.97 584.047,341.961C547.621,341.951 518.056,332.085 518.067,319.943C518.077,307.801 547.659,297.951 584.086,297.961Z" style="fill:rgb(254,227,45);stroke:black;stroke-width:1.72px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="shadow13" serif:id="shadow1" transform="matrix(0.590658,0.000270496,-0.000270529,0.590729,-605.649,-55.1469)">
|
||||
<path d="M3478.21,257.973C3478.21,257.973 3427.78,276.329 3427.76,323.263C3427.73,370.198 3476.76,386.865 3476.76,386.865C3476.76,386.865 3411.18,370.19 3411.21,323.255C3411.23,276.321 3478.21,257.973 3478.21,257.973Z" style="fill:rgb(232,197,0);"/>
|
||||
</g>
|
||||
<g id="nostril-r">
|
||||
<g id="nostril_r_base" transform="matrix(1.15237,0.000527734,-0.000608997,1.32981,860.768,-268.078)">
|
||||
<path d="M564.004,297.373C571.731,297.377 578.003,300.292 578.001,303.879C577.999,307.467 571.724,310.377 563.997,310.373C556.27,310.37 549.999,307.455 550.001,303.868C550.003,300.28 556.278,297.37 564.004,297.373Z" style="fill:rgb(247,219,39);"/>
|
||||
</g>
|
||||
<g id="shadow_r" transform="matrix(0.465447,0.000213155,-0.00021318,0.465503,-114.16,3.52739)">
|
||||
<path d="M3456.32,281.48C3458.55,272.379 3473.1,265.348 3490.7,265.357C3509.83,265.366 3525.36,273.694 3525.35,283.942C3525.35,289.793 3520.28,295.013 3512.38,298.413C3512.57,297.618 3512.67,296.808 3512.67,295.985C3512.68,285.736 3497.15,277.409 3478.02,277.399C3469.81,277.395 3462.27,278.924 3456.32,281.48Z" style="fill:rgb(205,177,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="nostril-l">
|
||||
<g id="nostril_l_base" transform="matrix(1.15237,0.000527734,-0.000608997,1.32981,800.675,-268.105)">
|
||||
<path d="M564.004,297.352C571.731,297.355 578.003,300.27 578.001,303.857C577.999,307.445 571.724,310.355 563.997,310.352C556.27,310.348 549.999,307.433 550.001,303.846C550.003,300.258 556.278,297.348 564.004,297.352Z" style="fill:rgb(247,219,39);"/>
|
||||
</g>
|
||||
<g id="shadow_l" transform="matrix(0.465447,0.000213155,-0.00021318,0.465503,-174.253,3.49987)">
|
||||
<path d="M3456.32,281.418C3458.55,272.316 3473.1,265.286 3490.7,265.294C3509.83,265.303 3525.36,273.631 3525.35,283.88C3525.35,289.73 3520.28,294.95 3512.38,298.351C3512.57,297.556 3512.67,296.745 3512.67,295.922C3512.68,285.674 3497.15,277.346 3478.02,277.337C3469.81,277.333 3462.27,278.861 3456.32,281.418Z" style="fill:rgb(205,177,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="highlight11" serif:id="highlight1" transform="matrix(1.00155,-1.45487e-05,-1.45487e-05,1.00167,26.65,-13.0335)">
|
||||
<path d="M1505.26,121.885C1506.28,120.356 1512.93,125.765 1513.57,126.609C1514.35,127.654 1520.6,132.045 1517.75,134.502C1514.82,137.02 1513.11,131.001 1510.92,128.854C1508.92,126.891 1503.41,124.686 1505.26,121.885Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 124 KiB |
@@ -1,289 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 1560 800" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g id="snake-body">
|
||||
<g id="snake_body_base" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M362.273,570.841C363.044,572.445 394.789,607.529 368.474,662.66C338.751,724.933 249.576,750.513 191.081,659.956C52.719,445.753 234.75,39.212 663.971,103.294C904.645,139.226 1046.89,311.203 1104.44,367.865C1137.92,400.827 1191.31,422.791 1199.59,421.555C1202.35,418.601 1214.29,417.702 1209.34,348.257C1202,245.212 1178.86,221.316 1179.63,214.281C1196.69,58.183 1406.72,12.137 1500.57,141.687C1541.08,197.606 1551.89,255.843 1547.17,262.701C1470.86,373.47 1438.1,446.717 1410.36,488.093C1393.32,513.502 1324.9,621.61 1207.75,623.767C1170.29,624.456 1076.69,611.426 973.642,511.843C861.734,403.696 781.514,292.361 567.047,289.841C456.894,288.546 357.369,371.25 342.061,476.745C335.049,525.068 342.686,543.859 362.273,570.841Z" style="fill:rgb(240,204,0);stroke:black;stroke-width:5px;"/>
|
||||
</g>
|
||||
<g id="snake_body_light" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M1244.8,224.652C1247.22,217.185 1248.51,209.384 1250.92,201.917C1252.1,198.263 1253.85,194.808 1255.56,191.374C1256.38,189.75 1260.63,181.248 1267.67,172.182C1268.77,170.762 1274.56,163.308 1283.08,155.846C1291.54,148.438 1299.7,143.665 1301.25,142.761C1311.02,137.042 1319.92,133.917 1321.62,133.322C1332.44,129.522 1341.85,128.182 1343.65,127.926C1355.24,126.275 1364.94,126.856 1366.79,126.967C1366.8,126.968 1378.6,128.274 1378.61,128.276C1382.48,129.11 1386.4,129.75 1390.23,130.778C1392.02,131.259 1401.41,133.782 1411.88,139.019C1413.51,139.831 1422.01,144.084 1431.08,151.118C1432.49,152.219 1439.95,158.003 1447.41,166.524C1448.59,167.872 1454.82,174.984 1460.5,184.69C1466.21,194.468 1469.34,203.371 1469.93,205.066C1473.73,215.894 1475.07,225.306 1475.33,227.103C1476.98,238.697 1476.4,248.403 1476.29,250.253C1475.81,258.158 1475.65,258.143 1474.34,265.951C1473.89,268.59 1473.36,271.628 1473.36,271.638C1473.36,271.64 1471.66,276.172 1469.61,281.375C1449.23,333.263 1429.07,367.991 1425.86,374.095C1387.36,447.314 1351.12,483.081 1332.25,499.531C1329.6,501.835 1308.85,525.959 1275.27,542.976C1230.56,565.636 1191.77,561.649 1173.9,558.939C1119.15,550.636 1074.05,517.054 1042.49,487.586C1037.11,482.567 1035.77,482.292 1007.07,454.141C977.474,425.111 934.267,381.647 890.652,347.953C844.517,312.312 808.127,293.176 769.435,278.008C769.309,277.958 758.03,273.346 738.637,267.296C718.805,261.111 705.202,258.047 702.841,257.343C687.667,252.818 663.972,246.414 635.871,241.733C635.076,241.6 616.204,238.997 593.837,238.329C559.826,237.311 533.915,241.349 525.858,242.669C525.798,242.679 518.716,243.914 509.741,246.079C465.257,256.813 440.179,274.192 433.795,278.029C403.01,296.531 384.967,317.909 374.719,331.371C360.148,350.511 349.211,371.826 341.88,393.941C341.274,395.769 340.296,397.569 337.833,404.075C324.786,438.535 323.708,467.047 323.681,480.805C323.608,518.538 334.816,540.264 337.51,545.512L337.463,545.445C339.755,552.464 344.062,558.715 346.354,565.734C347.473,569.16 347.525,572.871 347.595,576.474C347.665,580.054 347.385,583.657 346.773,587.185C346.162,590.713 345.215,594.199 343.945,597.547C342.666,600.915 341.068,604.182 339.164,607.241C337.23,610.345 334.996,613.286 332.486,615.947C332.475,615.959 323.967,623.347 323.96,623.351C320.686,625.194 317.579,627.368 314.139,628.876C310.791,630.344 307.27,631.458 303.697,632.234C300.177,632.998 296.564,633.404 292.962,633.474C289.383,633.544 285.781,633.263 282.253,632.652C278.725,632.041 275.238,631.093 271.889,629.823C268.519,628.545 265.251,626.947 262.191,625.043C259.084,623.11 256.14,620.877 253.477,618.367C249.684,614.795 243.246,606.252 242.417,605.151C206.274,557.191 197.398,501.461 194.982,485.016C192.92,470.977 192.275,456.77 192.163,454.305C189.966,405.89 198.605,367.575 202.845,350.649C202.846,350.645 204.633,344.798 207.243,337.427C230.56,271.59 266.123,231.074 278.125,217.858C300.015,193.756 326.645,171.193 358.532,152.178C358.885,151.968 373.122,143.553 393.541,134.712C445.507,112.212 490.833,106.71 509.281,104.361C574.055,96.115 628.197,103.18 653.746,107.048C657.647,107.639 692.084,111.147 739.466,123.107C741.412,123.598 757.81,128.477 777.168,135.427C779.791,136.368 794.351,141.482 818.662,151.762C884.839,179.746 935.477,213.386 994.615,264.781C1052.35,314.953 1098.82,367.499 1125.54,391.876C1125.59,391.918 1135.43,400.282 1147.38,408.116C1174.04,425.593 1188.68,426.027 1192.48,426.113L1192.48,426.104C1196.88,426.01 1204.88,425.234 1216.79,412.397C1219.79,409.168 1222.15,406.098 1223.42,404.401C1223.57,404.207 1223.6,404.219 1224.49,402.109C1230.57,387.819 1240.22,359.725 1244.91,312.152C1244.92,312.079 1245.94,297.534 1245.84,277.626C1245.69,250.845 1243.64,231.542 1243.67,231.335C1243.75,230.795 1243.78,230.798 1244.8,224.652Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Pygame-ce">
|
||||
<g id="Pygame_shadow" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M172.358,365.396C194.988,303.834 232.047,248.148 285.506,201.766C285.506,201.766 285.706,206.452 287.015,215.748C288.74,227.988 279.732,251.654 279.971,252.37C280.806,254.517 281.531,257.794 291.557,260.269C299.647,262.266 296.192,258.581 295.423,248.977C294.765,240.758 295.945,237.51 298.627,233.644C303.136,227.145 307.776,226.123 317.709,217.11C327,208.679 328.931,202.623 349.185,192.361C354.685,189.575 370.052,183.78 378.073,187.321C387.807,191.617 390.654,195.647 395.498,200.941C400.668,206.592 408.054,222.217 409.095,221.225C417.448,213.264 423.483,201.804 434.331,197.736C444.709,193.919 478.468,195.35 502.684,200.599C507.428,201.627 510.084,200.896 510.084,200.896C510.084,200.896 511.949,196.132 514.493,194.157C520.891,189.19 541.572,189.982 550.518,192.01C556.722,193.561 562.997,200.917 565.072,207.756C568.193,218.047 573.303,244.02 573.303,244.02C573.303,244.02 585.469,228.731 592.031,224.337C617.981,206.963 648.641,198.428 679.135,193.468C694.876,190.907 722.066,189.446 740.188,215.748C754.487,236.502 756.354,246.464 758.282,248.393C758.844,248.955 769.685,238.673 774.663,231.853C780.526,223.818 793.451,212.905 803.053,208.353C811.931,204.144 824.883,203.7 832.279,204.535C838.092,205.158 844.972,207.638 850.003,210.561C856.541,214.36 863.08,222.612 863.941,224.337C864.674,225.803 867.654,214.409 872.721,207.756C877.658,201.273 886.997,198.73 893.615,197.157C897.372,196.265 898.279,196.625 902.375,196.067C997.086,255.91 1067.82,335.452 1102.6,369.702C1121.87,388.672 1147.73,404 1167.8,413.358C1167.8,413.358 1161.57,426.799 1159.73,428.772C1140.89,448.921 1127.63,454.101 1099.01,457.586C1082.07,459.648 1062.39,455.927 1048.58,452.74C1036.66,449.989 1023.24,438.938 1014.17,430.724C997.877,415.965 989.609,389.684 989.223,386.867C982.719,418.053 944.2,460.741 909.442,434.131C893.695,422.075 889.254,396.068 887.737,384.53C886.818,377.545 890.039,359.098 887.379,357.69C884.736,356.248 882.787,359.918 881.695,361.415C877.765,366.802 876.968,369.163 871.275,372.959C868.482,374.774 864.514,378.933 852.282,391.165C782.523,331.754 701.341,288.657 567.047,287.078C468.722,285.923 376.308,353.441 347.258,442.609C347.258,442.609 338.464,453.382 319.923,457.072C290.043,463.018 261.319,461.67 232.394,452.74C199.94,442.721 168.924,406.392 183.222,371.123C185.547,365.386 193.751,355.951 198.53,350.739C194.616,354.89 182.903,361.212 172.358,365.396Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="Pygame" transform="matrix(1.19289,0,0,1.19289,-10.1906,36.483)">
|
||||
<g id="shadow" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M446.083,428.557C430.438,439.977 404.513,447.031 385.555,450.803C351.903,457.5 316.842,453.812 284.266,443.755C247.716,432.472 212.785,391.558 228.887,351.837C231.507,345.376 240.746,334.75 246.128,328.88C248.565,326.295 250.1,324.653 250.1,324.653C250.1,324.653 248.483,326.311 246.128,328.88C239.045,336.391 224.342,351.853 217.49,358.1C200.114,373.944 175.999,378.478 153.392,380.25L154.064,396.64C154.263,401.47 154.678,406.366 153.922,411.14C152.136,422.427 138.526,425.078 131.625,431.528C128.573,434.38 127.439,438.839 124.611,441.915C113.624,453.865 96.498,456.522 81.115,456.424C66.874,456.289 59.754,455.618 51.962,453.603C46.401,452.136 40.315,450.122 36.147,445.824C31.991,441.538 29.818,435.015 28.452,429.42C24.337,412.566 21.857,399.252 19.988,381.997C19.182,374.608 17.839,363.726 17.167,357.815C15.017,341.29 13.405,286.612 14.211,259.743C14.639,244.553 14.578,230.507 18.976,215.615C22.267,204.471 33.585,192.606 44.445,184.989C54.989,170.03 76.974,156.546 93.867,151.741C107.756,147.79 126.516,146.3 140.745,145.801C163.456,145.004 184.623,147.945 208.52,153.207C227.058,157.289 239.278,165.107 255.091,175.509C271.818,157.713 299.746,139.337 326.196,151.9C332.107,154.721 344.306,166.382 345.781,176.852C347.723,190.637 337.579,217.29 337.848,218.096C338.788,220.514 339.605,224.204 350.897,226.992C360.008,229.241 356.116,225.091 355.25,214.275C354.509,205.018 355.838,201.36 358.859,197.006C363.937,189.687 369.162,188.536 380.349,178.386C390.813,168.891 392.987,162.07 415.798,150.513C421.992,147.375 439.298,140.849 448.332,144.837C459.294,149.676 462.5,154.214 467.956,160.176C473.779,166.54 482.097,184.137 483.269,183.019C492.676,174.054 499.472,161.148 511.69,156.566C523.378,152.267 561.397,153.879 588.669,159.791C594.013,160.949 597.004,160.125 597.004,160.125C597.004,160.125 599.104,154.76 601.97,152.536C609.175,146.942 632.466,147.834 642.542,150.118C649.528,151.864 656.595,160.148 658.932,167.851C662.447,179.441 668.202,208.692 668.202,208.692C668.202,208.692 681.904,191.473 689.294,186.525C718.519,166.958 753.049,157.345 787.391,151.759C805.119,148.876 835.741,147.23 856.15,176.852C872.254,200.226 874.356,211.445 876.528,213.617C877.161,214.25 889.37,202.67 894.976,194.989C901.579,185.94 916.135,173.65 926.95,168.523C936.947,163.783 951.535,163.283 959.864,164.224C966.411,164.925 974.159,167.718 979.824,171.01C987.188,175.289 994.552,184.583 995.522,186.525C996.347,188.176 999.704,175.344 1005.41,167.851C1010.97,160.55 1023.74,154.307 1031.19,152.536C1066.29,144.197 1100.45,151.412 1123.02,183.019C1127.25,188.93 1138.89,208.692 1138.89,208.692C1138.89,208.692 1165.01,183.286 1175.53,174.05C1182.12,168.269 1200.67,158.118 1209.12,155.481C1268.43,136.969 1328.89,170.649 1358.63,222.959C1370.14,243.212 1371.18,267.401 1373.26,289.896C1373.97,297.61 1374.55,299.828 1368.76,305.69C1367.38,307.088 1359.91,309.888 1360.87,310.456C1362.22,311.256 1370.29,313.789 1372.51,316.185C1377.62,321.709 1375.37,337.912 1373.56,344.025C1366.05,369.409 1355.27,388.28 1328.64,416.762C1307.42,439.455 1292.49,445.288 1260.26,449.212C1241.18,451.534 1219.01,447.344 1203.47,443.755C1190.04,440.656 1174.92,428.211 1164.71,418.961C1146.36,402.339 1137.05,372.74 1136.62,369.568C1129.29,404.691 1085.91,452.766 1046.77,422.797C1029.03,409.22 1024.03,379.93 1022.32,366.936C1021.29,359.069 1024.91,338.294 1021.92,336.708C1018.94,335.085 1016.75,339.218 1015.52,340.904C1011.09,346.971 1010.19,349.63 1003.78,353.904C1000.12,356.287 1000.9,361.504 1000.69,365.055C1000.47,368.947 996.583,401.33 985.553,416.749C974.076,432.791 936.316,443.153 923.877,438.818C889.7,426.905 879.115,368.234 879.115,368.234C879.115,368.234 874.338,434.496 798.198,445.824C764.23,450.878 712.126,438.156 694.685,428.557C665.478,412.483 663.363,401.821 662.147,393.564C654.259,424.764 640.579,432.86 618.601,442.074C605.841,447.424 568.19,452.324 549.306,452.324C533.997,452.324 519.758,448.365 505.299,439.184C487.91,428.143 478.602,413.658 479.421,382.28C473.465,406.749 461.727,417.136 446.083,428.557ZM565.562,352.038C565.013,351.022 564.605,349.934 564.21,348.849C563.195,346.059 567.178,345.026 569.113,344.883C570.21,344.802 571.318,344.903 572.414,344.8C573.587,344.69 577.111,343.85 577.727,343.941C578.689,344.083 578.957,345.295 578.965,346.065C578.979,347.483 578.663,349.497 578.033,350.788C576.903,353.106 574.15,353.645 571.876,354.053C567.846,354.59 566.771,354.322 565.562,352.038ZM1245.62,341.29C1244.21,340.763 1239.45,338.913 1240.01,337.967C1240.65,336.892 1246.99,337.11 1248.94,337.059C1252.79,336.96 1260.71,336.771 1261.74,337.797C1262.32,338.381 1260.78,340.517 1260.26,341.156C1257.71,344.112 1253.41,344.246 1245.62,341.29ZM157.557,266.729C157.557,259.474 155.408,256.787 146.541,253.294C144.916,252.633 143.25,252.058 141.549,251.628C140.272,251.305 138.957,251.095 137.64,251.044C136.883,251.015 136.099,251.114 135.394,251.392C133.347,252.199 134.549,255.025 134.991,256.279C136.528,260.637 138.949,264.79 142.51,267.804C146.809,2Line truncated
|
||||
</g>
|
||||
<g id="e">
|
||||
<path id="e_mid" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.143,255.637 847.1,252.2C843.25,239.518 846.7,190.7 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1005.8,179.4 1009,194 1009.7,207C1010.2,217 1010.1,218.8 1008.6,220.2C1004.6,224.3 989.2,226 957,226C935.5,226.1 902.8,224.6 901.1,223.6C900.7,223.3 899.4,223.7 898.4,224.5C896.8,225.6 896.5,227 896.6,232.7C896.8,240.8 898.2,243.9 904.2,249.6C910,255.1 914,257.4 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C948.3,257.2 950.1,254.9 954,247.9C957.6,241.1 959.3,240.3 971.5,239.6C976.5,239.2 984.7,238.5 989.8,237.9C1001.6,236.4 1009.8,237.1 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310ZM953.301,188.795C960.3,185.245 960.401,182.995 954.301,177.295C951.701,174.995 946.501,171.395 942.701,169.395C933.201,164.395 926.301,164.295 918.001,168.995C908.701,174.195 903.101,181.095 905.501,184.395C907.401,186.995 913.201,190.095 917.601,190.895C920.201,191.395 928.201,191.695 935.301,191.495C946.801,191.295 948.901,190.995 953.301,188.795Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<path id="e_bottom" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.643,256.913 847.099,252.006C846.316,249.515 845.963,246.467 845.849,244.662C845.849,244.662 850.035,243.131 852.171,241.133C854.492,238.961 857.52,234.318 859.421,233.824C863.646,232.725 867.463,245.149 868.323,245.671C869.184,246.193 878.128,246.496 879.014,245.471C883.406,240.386 890.428,236.145 893.431,240.239C895.241,242.707 897.537,247.018 900.157,248.101C901.106,248.493 902.327,248.032 902.327,248.032C902.327,248.032 904.74,250.108 904.913,250.268C910.341,255.292 914.39,257.524 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C947.145,257.97 949.06,256.059 951.478,252.215C952.245,250.997 957.62,253.098 965.253,249.516C976.375,244.298 977.437,240.052 981.251,242.813C985.726,246.054 987.611,245.008 993.844,245.324C1004.38,245.859 1005.31,237.213 1008.93,238.352C1010.13,238.732 1011.15,238.9 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="e_top" d="M1006.3,184.38C1006.56,185.396 1000.28,179.352 993.999,180.776C981.283,183.657 983.188,189.019 978.097,189.873C971.966,190.902 967.482,179.035 966.858,181.812C965.881,186.162 963.835,190.772 957.481,186.227C957.127,185.974 959.509,185.207 958.376,182.235C956.295,176.779 938.186,164.162 927.852,165.608C916.427,167.206 903.439,178.535 905.164,183.785C905.926,186.105 905.637,190.321 900.038,190.094C890.009,189.825 889.385,179.676 882.167,180.827C875.385,181.909 871.592,192.172 867.226,195.781C864.545,197.998 862.159,187.096 854.763,187.009C851.701,186.973 850.448,189.405 849.092,190.668C848.337,191.371 847.4,191.225 847.423,190.806C847.599,187.628 847.793,185.319 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1003.84,176.188 1005.16,179.888 1006.3,184.38Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="m">
|
||||
<path id="m_mid" d="M846,189.4C847.264,199.322 847.132,207.189 846.485,223.235C845.823,239.664 843.607,254.573 843,256.9C839.9,269.1 836.1,276.7 830.4,282.3C822.8,289.6 816.5,291.9 807.4,290.5C803.4,289.9 801.9,288.9 796.1,283.2C787.9,275 784.4,268.1 783.6,258.5C782.9,251.3 783.7,244.8 788.4,220.7C789.7,213.6 791.2,203.5 791.5,198.1C792.2,188.9 792.1,188.1 789.6,183.2C785.1,174.3 780.1,174.3 778.5,183.3C776.4,195 768,227 765.9,231.5C761.1,241.7 753.7,244.1 746.1,238.1C742.3,235.1 734.2,223.5 722.7,205C720.2,200.8 716.4,195.5 714.4,193.1C711.1,189.3 710.6,189 709.2,190.4C707.2,192.4 705.325,202.128 708,210.6C709.2,214.4 720.1,235 722.5,238C723.8,239.6 728.2,248.1 732.1,256.5C736.5,265.9 735.5,282.2 729.9,293.3C726.9,299.2 720.3,305.8 715.1,308.1C709.1,310.8 696.3,311.2 690.7,308.7C685.6,306.5 676.2,296.8 672.4,290C664.1,275.2 657.7,253 655.9,233C652.6,197.5 661.7,158.7 676.7,143.6C685,135.3 697,130 707.8,130C713.8,130 715.3,130.4 720.9,133.8C724.4,135.8 729.1,139.7 731.4,142.4C737.5,149.7 738.575,152 741,152C743.425,152 744.906,146.517 747.035,140.264C748.982,134.546 748.673,131.427 753,127.1C761.5,118.6 788.3,115.5 803,121.2C817.6,126.9 831.9,143.9 838.9,163.7C841.5,171 844.877,180.584 846,189.4Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<path id="m_bottom2" d="M784.747,240.624C784.97,239.227 789.015,246.383 795.137,249.278C796.446,249.897 803.677,239.162 813.561,239.128C817.19,239.116 819.823,239.677 826.503,249.191C827.796,251.032 832.249,251.375 838.213,249.248C843.048,247.524 844.847,244.272 844.794,244.734C844.057,251.133 843.314,255.697 843,256.9C839.9,269.1 836.1,276.7 830.4,282.3C822.8,289.6 816.5,291.9 807.4,290.5C803.4,289.9 801.9,288.9 796.1,283.2C787.9,275 784.4,268.1 783.6,258.5C783.15,253.872 783.32,249.533 784.747,240.624Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="m_bottom1" d="M672.4,290C666.334,279.184 658.271,249.256 658.271,249.256C662.429,251.073 664.693,251.869 667.029,250.052C669.744,247.94 671.843,239.75 675.661,241.393C678.732,242.716 682.602,250.331 685.225,251.574C689.194,253.455 692.039,244.353 695.927,244.091C704.321,243.523 709.548,245.795 712.551,240.915C714.756,237.332 719.169,239.268 719.746,239.748C722.402,241.958 722.921,249.45 726.902,250.295C728.356,250.603 728.653,249.306 728.653,249.306C728.653,249.306 730.964,254.053 732.1,256.5C736.5,265.9 735.5,282.2 729.9,293.3C726.9,299.2 720.3,305.8 715.1,308.1C709.1,310.8 696.3,311.2 690.7,308.7C685.6,306.5 676.2,296.8 672.4,290Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="m_top" d="M844.298,180.688C844.359,180.966 841.662,182.5 840.768,183.543C837.468,187.395 839.789,194.766 836.494,196.652C833.606,198.305 831.293,196.178 830.836,195.771C826.592,191.993 822.374,181.476 813.086,182.034C805.358,182.498 800.722,191.352 795.553,190.302C792.373,189.656 790.05,184.081 789.6,183.2C787.042,178.142 784.793,176.364 782.536,176.673C781.816,176.772 780.123,177.75 779.092,180.869C778.99,181.437 777.228,179.526 776.236,180.688C772.776,184.74 771.742,182.295 771.115,183.105C768.828,186.058 766.691,186.108 764.352,185.654C761.643,185.128 759.828,180.544 759.828,180.544C759.331,185.186 759.057,192.943 752.243,187.914C748.327,185.023 745.465,181.004 740.929,180.841C734.103,180.597 726.77,184.734 726.659,187.963C726.4,195.484 723.064,195.512 722.43,195.489C718.648,195.354 714.293,189.111 712.821,187.219C711.032,184.92 702.674,177.92 699.949,179.305C690.386,184.166 697.318,189.758 692.972,195.58C691.83,197.109 688.043,197.584 685.191,195.83C680.903,193.193 677.354,187.35 677.112,187.093C674.504,184.33 672.556,184.316 670.228,183.052C668.574,182.154 666.941,180.418 666.46,178.651C666.083,177.265 659.974,178.43 659.974,178.43C659.974,178.43 663.822,165.252 666.314,159.702C669.302,153.05 672.802,147.524 676.7,143.6C685,135.3 697,130 707.8,130C713.8,130 715.3,130.4 720.9,133.8C724.4,135.8 729.1,139.7 731.4,142.4C737.5,149.7 738.527,152 741,152C743.473,152 744.902,146.528 747.091,140.104C749.033,134.405 748.787,131.313 753,127.1C761.5,118.6 788.3,115.5 803,121.2C817.6,126.9 831.9,143.9 838.9,163.7C841.5,171 842.201,171.134 844.298,180.688Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="a">
|
||||
<path id="a_mid" d="M572,312.9C562.5,311.9 549,308.8 541.5,305.8C512.8,294.6 497.2,279.9 494,260.9C491.4,245.8 495.4,234 508.9,216.1C512.8,211 524,202.5 532.2,198.5C538.5,195.4 540.8,194.8 549.2,194.3C558.5,193.8 559.3,193.9 567.2,196.9C571.8,198.7 578,201.5 581.2,203.1C584.3,204.7 588.8,206.3 591.2,206.6C595.2,207.2 595.8,206.9 600,203.2C604.3,199.4 604.5,199 604.4,193.8C604.3,190.8 603.5,186.8 602.6,184.9C600.5,180.5 592,171 587.1,167.6C583.4,165 582.9,164.9 577.4,165.9C574.2,166.5 569.8,167.9 567.6,169.1C562.9,171.5 556.683,177 553,180C550.331,182.174 549.6,183.6 545.5,187.1C539.2,192.5 537,193.7 532.2,194.7C526.4,195.8 518,195.1 514.2,193.1C507.6,189.5 503.7,179.8 503.6,166.5C503.5,161.3 503.9,159.9 506.8,155.7C512.1,148.1 517.8,143.5 528.5,138.1C539,132.8 554.474,127.387 561.5,125.6C564.109,124.936 570.804,123.32 575.5,122.5C598.337,118.514 611.4,121 618.9,127.1C621.2,129 624.9,132.9 627.1,135.8C631.9,142.1 637.536,150.262 641,158.4C644.817,167.367 647.7,177.8 650,189.6C651.9,199.5 652.1,203.5 651.7,224.1C651.3,249.4 650.8,253.2 645,270.1C640,284.4 636.4,290.7 628.6,298.6C617.5,309.7 610.1,312.7 592,313.4C585.7,313.7 576.7,313.5 572,312.9ZM567.755,268.525C575.51,271.324 583.351,271.527 587.899,269.579C589.479,268.902 591.164,266.937 592.223,262.913C592.426,262.143 592.324,261.514 592.304,261.321C591.937,257.712 589.139,253.47 583.808,248.755C573.008,239.055 564.01,238.19 556.01,245.59C552.448,248.878 551.036,251.637 551.243,254.279C551.338,255.493 551.882,256.923 552.534,258.094C555.464,263.356 560.298,265.833 567.755,268.525Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<path id="a_bottom" d="M572,312.9C562.5,311.9 549,308.8 541.5,305.8C512.8,294.6 497.2,279.9 494,260.9C493.141,255.911 493.689,246.675 493.689,246.675C493.689,246.675 495.325,248.94 501.408,241.381C507.478,233.836 511.537,250.643 518.47,250.784C521.065,250.837 527.583,251.483 537.818,240.495C542.151,235.843 548.148,237.689 547.719,242.085C546.95,249.973 551.183,254.274 551.183,254.274C551.183,254.274 552.168,259.697 556.275,262.709C562.736,267.447 574.753,272.527 586.355,270.15C590.226,269.358 591.729,265.248 592.219,262.694C592.99,258.683 588.269,253.301 588.269,253.301C588.269,253.301 592.037,254.075 595.453,252.172C600.519,249.35 606.347,238.613 613.392,231.394C619.074,225.574 626.73,233.703 624.93,241.849C624.609,243.299 628.333,247.824 629.436,248.001C630.592,248.186 635.198,242.505 640.86,241.09C646.792,239.608 651.128,242.736 651.084,243.37C650.393,253.336 648.886,258.778 645,270.1C640,284.4 636.4,290.7 628.6,298.6C617.5,309.7 610.1,312.7 592,313.4C585.7,313.7 576.7,313.5 572,312.9Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="a_top" d="M637.883,182.841C634.645,185.825 631.737,194.187 627.82,195.049C626.517,195.336 624.555,191.126 624.14,190.372C621.597,185.752 619.167,178.445 610.353,179.547C606.464,180.033 606.531,183.603 605.469,184.566C603.802,186.08 602.681,185.07 602.6,184.9C600.5,180.5 592,171 587.1,167.6C583.4,165 582.9,164.9 577.4,165.9C574.2,166.5 569.8,167.9 567.6,169.1C562.9,171.5 553,180 553,180C553,180 550.082,178.457 544.517,182.659C541.055,185.274 540.297,183.433 538.473,184.352C537.187,185 536.27,187.865 533.861,188.367C532.748,188.578 531.188,185.674 528.794,185.518C525.876,185.329 525.618,189.352 520.037,188.501C517.69,188.143 518.08,186.225 516.053,185.355C514.322,184.612 512.432,184.995 512.353,184.722C511.192,180.698 507.871,180.143 506.508,180.332C506.226,180.371 505.231,179.721 505.143,179.383C504.168,175.637 503.636,171.303 503.6,166.5C503.5,161.3 503.9,159.9 506.8,155.7C512.1,148.1 517.8,143.5 528.5,138.1C539,132.8 554.807,127.289 561.5,125.6C563.668,125.053 572.782,122.993 575.5,122.5C598.309,118.36 611.4,121 618.9,127.1C621.2,129 624.9,132.9 627.1,135.8C634.648,145.749 637.642,151.509 641,158.4C643.885,164.321 647.246,177.147 647.246,177.147C647.246,177.147 640.676,180.268 637.883,182.841Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="g">
|
||||
<path id="g_mid" d="M362.735,219.125C362.435,219.125 360.2,185.6 360.2,185.6L359.8,174.1C359.2,159.7 360.2,152.2 363.6,147.3C365,145.2 367.3,141.3 368.7,138.5C371.8,132.3 376.3,127.5 381.5,124.7C387.7,121.4 405.8,121.7 425.5,125.5C433.8,127.1 442.5,128.4 445,128.4C449.2,128.5 449.5,128.3 449.5,125.8C449.5,121.8 452,120 459.1,119C466.5,117.9 474.8,119.3 477.9,122.1C480.9,125 485.7,142.9 488.4,162C495.4,211.7 492.6,270.8 482.4,291.2C477.5,300.8 463.1,309.2 447,311.7C433.2,313.8 406.2,313 396,310C382,306 373,298.9 367.5,287.6C362.8,277.8 361.3,267.8 362.8,256.5C364.3,244.8 366.1,241.3 371.4,239.9C377.3,238.2 384.8,237.8 390,238.9C392.5,239.5 396.6,240.2 399.2,240.5C402.8,241 404.9,242 407.6,244.6C411.2,248 411.3,248.1 410.7,254.1C409.9,260.8 411.3,265.3 415.1,268.9C417.9,271.5 422.9,271.6 430.8,269.4C442,266.2 448,261.9 451.2,254.9C453.7,249.2 455.4,234.6 454.5,226.3L453.7,219.5L452.5,222.9C451.1,227.1 447.7,229.8 442.4,231C434.9,232.7 408.3,234.2 392,233.8C371.8,233.4 369.2,232.5 365.2,224.3C363.8,221.4 363.135,219.125 362.735,219.125ZM432.9,194.5C444.8,188.4 446.3,164.7 435.4,156.1C430.1,151.9 412.4,153.9 408,159.2C405.3,162.5 403.1,169.4 402.4,177C401.4,187.4 405,192.8 415,196.1C418.6,197.3 429.4,196.4 432.9,194.5Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<g id="g_bottom" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M609.747,341.481C610.964,339.109 612.162,338.335 614.329,338.335C616.882,338.335 619.972,335.648 627.226,327.05C632.466,320.87 637.705,315.362 638.78,314.959C643.885,312.944 645.9,314.153 647.512,319.929C649.796,328.662 653.692,334.304 657.588,334.304C657.94,334.304 658.254,334.312 658.534,334.337C661.058,332.218 662.512,332.31 662.068,337.295C659.974,360.757 656.083,380.036 650.602,390.998C644.02,403.895 624.674,415.18 603.044,418.539C595.549,419.679 585.155,420.183 574.525,420.112C573.01,420.17 571.74,420.186 570.802,420.151C570.26,420.122 569.506,420.075 568.595,420.013C554.913,419.65 541.662,418.353 534.529,416.255C515.72,410.881 503.629,401.342 496.24,386.161C489.926,372.996 487.911,359.561 489.926,344.38C490.165,342.517 490.409,340.809 490.667,339.241C490.838,338.201 494.815,338.215 495.63,337.7C497.22,336.696 500.045,334.743 502.42,332.558C512.227,323.288 516.526,320.601 521.228,321.139C525.662,321.542 527.14,323.154 528.349,329.199C529.289,333.633 534.663,335.648 545.948,335.648L554.648,335.784C554.648,335.784 554.637,336.793 554.562,337.938C554.479,339.198 554.33,340.628 554.277,341.156C553.202,350.157 555.083,356.203 560.188,361.039C563.95,364.532 570.667,364.666 581.281,361.711C596.327,357.412 604.388,351.635 608.687,342.231C608.909,341.723 609.267,341.493 609.747,341.481Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="g_top" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M597.026,239.487C597.026,239.487 599.523,218.469 587.545,209.654C577.717,202.272 553.891,209.173 550.595,213.602C544.101,222.331 543.471,238.365 542.995,239.078C542.995,239.078 533.934,245.775 530.978,251.552C526.411,260.687 519.708,260.952 517.424,251.682C517.021,249.936 513.839,247.652 511.153,246.443C508.734,245.368 506.113,242.49 505.172,241.281C502.62,238.191 500.539,239.726 493.15,245.771L486.633,250.382L486.433,249.13L485.896,233.68C485.09,214.334 486.433,204.259 491.001,197.676C492.882,194.854 495.972,189.615 497.852,185.853C502.017,177.524 508.063,171.075 515.049,167.314C523.378,162.88 547.694,163.283 574.16,168.389C585.311,170.538 596.999,172.285 600.357,172.285C606,172.419 606.403,172.15 606.403,168.792C606.403,163.418 609.762,161 619.3,159.656C629.242,158.178 640.392,160.059 644.557,163.821C648.587,167.717 655.036,191.765 658.663,217.424C660.426,229.944 661.727,242.907 662.585,255.887C662.213,251.632 661.729,249.145 661.138,249.234C655.227,249.905 650.871,249.264 647.378,245.368L643.482,241.203C643.482,241.203 638.306,246.676 632.261,247.563C628.637,248.095 623.33,244.428 623.33,244.428C621.229,245.461 620.758,248.18 619.07,249.671C613.521,254.573 611.508,257.594 605.597,246.309C602.416,232.726 598.706,234.687 597.026,239.487" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="y" transform="matrix(0.994804,0,0,1,0.995008,0)">
|
||||
<g id="y_mid" transform="matrix(1,0,0,1,0.799493,0.199139)">
|
||||
<path d="M193.432,190.684C193.268,190.41 191.29,186.27 190.965,180.068C190.35,168.365 191,150.35 191,149.5C191,146 193.8,138.1 196.8,133.4C199.6,128.8 210.1,121.4 216.2,119.6C218.2,119 230.6,117.1 235,119.1C240.6,121.6 243.6,124.4 246.2,129.4C248.6,134.1 248.2,138.2 243.9,152C242.3,157.2 241,162.2 241,163.1C241,165.6 245.7,170.8 249.9,172.9C260.2,178.1 279.9,177.5 289.1,171.8C294,168.9 297,164.8 297,161.4C297,160.4 295.4,156.3 293.5,152.3C288.9,143.1 288.1,136.7 290.9,132.3C295.3,125.3 311.8,115.4 320.8,114.3C330.4,113.2 339.3,119.5 347.6,133.5C352.1,140.9 359.044,156.7 359.044,161.4C359.144,164.9 362.322,218.917 361.922,218.917C361.622,218.917 361,222.7 360.7,227.3C359.7,242.8 355.4,260.6 349.7,273C344.2,285.2 343.5,286.2 336.9,292.4C321.2,306.9 303.8,313 278.2,313C245.9,313 218.3,302.8 201.3,284.7C193.4,276.2 190.6,269.3 191.3,259.7C192.2,246.7 201.8,232.5 211.4,230.1C218.2,228.4 230.5,230.6 237,234.7C239.9,236.5 243.9,241 244,242.5C244,244.8 250.3,250.9 253.7,252.1C263,255.1 283.5,249.3 291.6,241.4C299.8,233.3 300.6,227.9 294.3,224.7C288.6,221.8 283.7,221.9 268.8,225.1C252.3,228.6 243.2,229 231.1,226.6C214,223.3 206.1,217.3 198.5,201.7C196,196.6 193.553,190.886 193.432,190.684Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="y_bottom" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M267.39,327.472C267.46,327.35 275.371,321.969 279.139,322.885C281.02,323.288 285.453,326.512 288.946,329.871C294.723,335.648 295.395,335.917 299.291,334.573C301.575,333.767 306.277,330.946 309.635,328.393C317.293,322.482 320.786,322.348 324.682,327.587C326.428,329.871 328.444,331.617 329.25,331.617C330.19,331.617 333.146,333.23 335.967,335.11C342.819,339.947 350.342,341.156 363.239,339.544C380.972,337.394 382.585,336.991 385.943,333.901C387.824,332.289 391.183,329.468 393.467,327.587C395.885,325.706 400.184,322.213 403.139,319.929C411.066,313.347 418.992,314.287 418.992,321.676C418.992,323.288 419.529,324.9 420.335,325.169C421.007,325.438 421.813,326.915 422.082,328.528C422.888,333.901 425.709,335.782 432.292,335.513C439.681,335.11 441.831,334.036 450.429,326.512C461.042,317.243 466.147,317.646 468.297,327.99C469.103,332.021 473.267,335.648 477.163,335.648C478.234,335.648 479.515,336.385 480.074,337.3C481.612,336.679 483.084,337.986 483.014,338.272C480.464,348.718 477.159,358.64 473.401,366.815C466.012,383.205 465.072,384.548 456.205,392.878C435.113,412.358 411.737,420.553 377.344,420.553C333.951,420.553 296.872,406.849 274.033,382.533C263.42,371.114 259.658,361.844 260.599,348.947C261.104,341.645 263.653,334.061 267.39,327.472Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="y_top" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M260.323,244.206C260.248,243.485 260.189,242.737 260.148,241.966C259.322,226.242 260.196,202.04 260.196,200.899C260.196,196.197 263.957,185.584 267.988,179.269C271.749,173.089 285.856,163.148 294.051,160.73C296.738,159.924 313.396,157.371 319.308,160.058C326.831,163.417 330.861,167.178 334.354,173.896C337.578,180.21 337.041,185.718 331.264,204.257C329.115,211.243 327.368,217.961 327.368,219.17C327.368,222.528 333.682,229.514 339.325,232.336C353.162,239.321 379.628,238.515 391.988,230.858C398.571,226.962 402.601,221.454 402.601,216.886C402.601,215.542 400.452,210.034 397.899,204.661C391.719,192.301 390.645,183.703 394.406,177.792C400.317,168.387 422.484,155.087 434.575,153.609C447.472,152.132 459.429,160.595 470.58,179.404C476.625,189.345 485.954,210.572 485.954,216.886C486.019,219.14 487.72,249.612 487.72,249.612C487.72,249.612 479.04,257.13 476.697,258.235C472.665,260.135 470.559,257.798 468.968,253.026C466.55,245.637 463.326,242.816 456.34,242.01C451.235,241.472 450.026,241.875 446.533,245.234C441.562,250.07 435.919,253.698 433.233,253.698C429.471,253.698 425.709,248.055 425.709,242.681C425.709,239.86 425.038,237.576 424.231,237.576C423.56,237.576 420.067,239.726 416.708,242.278C409.588,247.786 407.573,248.055 403.408,244.159L400.318,241.338L394.676,247.518C388.093,254.772 381.913,255.981 378.151,250.742C377.076,248.995 374.658,245.906 372.912,243.89C369.687,240.129 369.687,240.129 364.582,242.144C361.761,243.353 358.537,245.502 357.596,247.115C355.984,249.398 354.372,249.667 346.849,249.398C339.863,249.13 337.848,249.533 336.907,251.414C334.623,255.31 331.534,253.966 322.667,245.502C312.86,236.098 310.979,235.964 303.456,244.293C298.753,249.398 291.768,253.698 288.275,253.698C287.334,253.698 284.647,251.682 282.229,249.398C275.915,242.681 269.601,239.726 263.958,240.8C261.567,241.256 260.148,242.144 260.148,242.144C260.148,242.144 260.311,243.823 260.323,244.206Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="P">
|
||||
<g id="p_mid" transform="matrix(1,0,0,1,-0.159349,-0.379322)">
|
||||
<path d="M66,313.1C57.5,312 51.3,310 49.1,307.5C45.5,303.4 39.5,274.1 37.5,250.5C37.1,246.7 36.7,243.3 36.5,243C35.5,241.4 34.5,213.7 34.5,189.5C34.5,161.3 32.65,141.124 56.083,126.221C65.592,120.172 87.72,114.795 121.454,117.51C157.729,120.43 174.2,129.4 180.7,136.1C186.7,142.3 187.872,144.144 191.065,153.822C192.281,157.507 191.415,172.976 191.6,180.036C191.764,186.27 192.27,192.5 191.6,198.7C190.817,205.95 189.8,212.2 186.3,223.5C184.6,228.9 177.4,238.3 170.6,243.7C168.3,245.5 166,247.4 165.4,247.9C162.9,249.9 154.5,253.2 147.2,255C142.2,256.2 130.855,257.29 123.466,257.363C116.361,257.434 107.076,258.199 103.11,259.676C101.328,260.339 99.971,261.085 98.731,263.093C98.358,263.699 99.022,267.22 99.317,268.614C100.214,272.851 100.587,275.152 101.389,278.383C102.902,284.481 106.707,299.147 104.51,303.459C100.548,311.236 90.6,313.1 82.3,313.5C76.9,313.7 69.6,313.5 66,313.1ZM123.7,210.9C135.1,206.7 142,195.2 142,180.5C142,173.8 141.8,173.1 138.5,169.3C134.3,164.4 128.8,162 119.9,161.3C103,159.9 92.2,169.4 91.2,186.7C90.8,193.1 91.1,194.5 93.4,198.4C99.7,209.2 113.3,214.8 123.7,210.9Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<path id="p_bottom" d="M98.4,309.2C91.07,313.505 79.043,314.066 67.094,313.199C61.497,312.793 49.5,309.727 47.8,305.527C45.1,298.927 40.781,279.135 38.381,260.035C37.381,252.635 38.2,251.6 39.8,249.5C43.3,245.1 51.1,239 53.3,239C54.6,239 57,240.3 58.8,242C63.6,246.4 66,246.6 71.5,243.4C74.1,241.9 76.4,240.1 76.7,239.4C77,238.6 77.8,238 78.5,238C79.1,238 80.5,237.1 81.5,236C83.9,233.3 88.6,233.4 90,236.1C90.7,237.2 91,240 90.8,242.3L90.5,246.5L95.4,246.4C99,246.4 100.6,245.9 101.9,244.3C103.7,242 107.1,240 109.4,240C110.2,240 111.4,241.6 112.1,243.5C113.6,247.6 114.7,247.5 121.5,242.9C128.1,238.5 132.3,239.4 133.4,245.5C134.1,248.9 134.2,249 139,249C143.5,249 144.3,248.6 148.5,244.6C152.9,240.3 156.6,238.2 157.7,239.4C158,239.7 158.5,241.4 158.9,243.2C159.4,245.5 160.2,246.6 162,247L164.683,247.897C164.683,247.897 163.185,248.928 161.377,249.743C158.626,250.983 155.11,252.213 154.7,252.4C149,255 137.7,256.7 124.4,256.9C107.4,257.2 102.3,259.117 98.5,262.9C98.212,264.732 99.6,271.5 101.6,279.6C103.6,287.8 105.2,296.2 105.3,298.2C105.5,302.4 102.9,306.6 98.4,309.2Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<g id="p_top" transform="matrix(0.744353,0,0,0.744353,-0.610017,-0.116225)">
|
||||
<path d="M49.619,242.099C47.214,240.103 46.19,237.641 47.458,220.097C47.854,214.616 48.739,207.932 50.114,202.532C58.737,168.674 94.056,153.306 155.334,156.748C219.585,160.358 250.468,177.263 257.292,206.299C258.589,211.816 258.238,216.423 258.252,221.969C258.255,223.054 257.895,227.086 257.918,233.93C257.931,237.542 258.025,242.243 258.055,242.732C257.078,243.011 251.337,246.879 249.916,246.583C248.495,246.287 245.572,244.647 243.422,242.938C236.122,237.137 224.486,240.586 217.454,250.635C209.612,261.843 202.655,259.252 199.584,243.98C199.011,241.13 191.289,238.099 191.289,236.256C191.289,229.648 182.534,222.56 180.114,221.335C172.905,217.689 163.343,215.524 153.974,216.339C139.038,217.636 122.995,228.356 122.995,252.627C122.995,259.04 113.957,244.373 114.718,242.25C115.654,239.641 111.922,241.155 108.287,244.859C103.361,249.878 92.087,257.247 90.353,256.582C87.407,255.451 90.007,247.061 94.723,242.48C99.323,238.014 98.077,235.576 92.823,238.761C90.995,239.869 86.674,241.791 83.219,243.033C78.693,244.66 76.129,246.311 74.044,248.944C68.344,256.141 51,252.863 51,244.588C51,243.849 50.379,242.729 49.619,242.099Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="c" transform="matrix(0.312039,0,0,0.312039,390.718,399.086)">
|
||||
<g id="c-extrusion" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M721.851,550.457C727.928,550.457 827.348,533.112 830.075,576.298C836.462,677.412 730.733,884.128 643.719,942.226C595.227,974.604 509.776,1019.62 389.313,1023.31C312.833,1025.65 295.55,1021.96 261.937,1013.38C236.346,1007.04 150.829,957.052 116.958,932.22C75.565,901.872 33.515,807.197 25.506,778.197C-30.302,576.1 8.064,139.815 185.865,78.764C192.119,76.617 247.501,27.528 308.818,14.681C447.417,-14.357 522.335,18.904 534.822,24.158C595.781,49.808 653.353,90.498 660.872,96.816C668.39,103.134 756.34,187.743 787.01,250.792C798.526,274.467 805.342,296.115 812.092,339.024C835.733,489.315 490.214,504.804 477.641,401.466C475.891,387.082 466.894,342.731 456.232,332.791C439.136,316.855 442.025,311.346 402,314.612C351.26,318.752 329.799,353.696 326.218,394.37C315.165,519.909 301.873,569.753 352.679,610.82C362.298,618.595 411.291,670.367 464.573,651.936C500.5,639.508 508.146,590.677 513.668,585.155C518.691,580.132 522.063,577.845 526.68,573.227C533.254,566.653 579.914,558.047 596.074,558.047C599.784,558.047 633.609,558.462 634.024,558.047C638.412,553.659 669.719,560.303 673.058,556.963C678.054,551.967 710.725,550.457 721.851,550.457Z" style="fill:rgb(0,1,0);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-middle" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M291,519.706C288.27,524.9 287.724,533.405 288.031,551.262C288.916,587.817 295.108,601.806 321.644,627.53C347.296,652.351 364.987,662.73 406.562,676.269C451.674,691.613 473.788,691.613 495.46,676.269C516.689,661.828 524.65,651.448 541.899,619.858C557.821,589.17 565.339,585.56 619.297,582.401C641.411,580.596 677.678,577.437 700.234,574.729C752.423,567.96 788.69,571.119 796.651,581.95C814.342,606.771 791.786,680.33 743.578,755.696C724.56,785.029 644.95,864.907 619.74,879.8C607.798,887.02 583.031,896.497 564.455,901.01C518.458,912.292 421.157,911.841 371.179,900.108C261.937,873.933 177.904,821.132 123.946,744.413C100.505,710.567 76.622,664.535 69.103,639.263C50.742,622.578 51.964,364.924 73.084,332.839C100.505,197.904 184.538,98.621 309.26,54.846C345.97,42.21 354.373,40.856 402.581,40.856C510.497,41.307 590.549,77.41 675.909,165.411C709.522,199.709 722.348,216.858 732.963,240.325C740.482,257.023 751.096,277.782 756.404,286.356C770.999,310.726 791.222,347.507 768.566,382.281C746.071,416.806 558.984,414.773 552.464,388C545.983,361.388 535.596,349.417 531,317C517.625,222.658 355.13,238.706 317,302C287.5,350.969 291,519.706 291,519.706Z" style="fill:rgb(153,70,242);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-bottom" transform="matrix(4.52766,0,0,4.51288,-3764.68,-498.884)">
|
||||
<path d="M930.5,311C917.7,310.3 914.2,309.7 902.5,305.9C876.6,297.5 853.2,273.9 846.8,249.7C846.8,249.7 845.894,245.341 846.511,242.24C846.796,240.806 850.5,240.4 850.5,240.4C853.3,237.9 856.6,235.2 857.9,234.3C860.1,232.7 860.3,232.7 862.1,235.1C863.1,236.4 864.7,239.2 865.6,241.3C867.2,244.9 867.5,245 872.5,245C877,245 878,244.6 881,241.5C883.4,239 885.3,238 887.5,238C891.1,238 892.8,239.2 895.9,243.8C897.1,245.5 898.6,247 899.2,247C899.7,247 902.3,248.8 904.8,251.1C910.3,255.9 918.9,260.1 928.2,262.6C937.2,265 941.7,263.7 948.1,256.9C951,253.9 953.6,252 955,252C956.9,252 969.5,246.2 974.9,242.9C976.4,241.9 977.9,242 982.1,243.2C985.1,244 989.5,244.6 992,244.4C997.3,244.1 1003.9,241.5 1004.7,239.5C1006.2,235.3 1013,239.7 1013,244.8C1013,256.1 999.2,280.6 985.3,294.1C974.6,304.5 965.9,309.1 954.5,310.5C944.9,311.6 943.4,311.7 930.5,311Z" style="fill:rgb(198,146,254);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-top" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M65.546,358.465C65.203,360.038 69.738,337.922 73.084,332.839C100.505,197.904 184.538,98.621 309.26,54.846C345.97,42.21 354.373,40.856 402.581,40.856C510.497,41.307 590.549,77.41 675.909,165.411C709.522,199.709 722.348,216.858 732.963,240.325C740.482,257.023 787.585,339.53 751.194,280.69C738.368,277.982 702.522,280.239 683.504,289.716C670.236,296.034 656.083,305.511 651.66,310.475C639.719,324.014 621.585,321.306 603.894,303.254C589.299,288.813 588.414,288.362 585.761,296.936C582.974,305.822 540.505,306.909 531,306.227C531,306.227 530.735,309.837 530.802,315.677C516.101,222.809 354.951,239.003 317,302C310.99,311.977 306.349,326.926 302.77,344.406L304,325.997C293.036,325.642 271.03,351.475 269.013,348.183C260.61,335.095 230.977,313.434 221.689,313.434C210.632,313.434 181.884,342.767 166.847,368.491C157.117,385.64 150.04,384.286 130.58,363.075C112.447,343.219 97.852,340.06 79.718,352.244L65.546,358.465Z" style="fill:rgb(104,7,207);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="e1" serif:id="e" transform="matrix(1.43823,0,0,1.43823,-549.373,239.665)">
|
||||
<g id="e-shadow" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M1161.47,407.188C1143.12,390.566 1134.18,360.225 1130.7,335.715C1127.31,311.881 1125.42,237.207 1141.98,209.558C1148.97,198.556 1165.01,183.286 1175.53,174.05C1182.12,168.269 1200.67,158.118 1209.12,155.481C1268.43,136.969 1328.89,170.649 1358.63,222.959C1370.14,243.212 1371.18,267.401 1373.26,289.896C1373.97,297.61 1374.55,299.828 1368.76,305.69C1367.38,307.088 1359.91,309.888 1360.87,310.456C1362.22,311.256 1370.29,313.789 1372.51,316.185C1377.62,321.709 1375.37,337.912 1373.56,344.025C1366.05,369.409 1355.27,388.28 1328.64,416.762C1307.42,439.455 1284.32,447.168 1251.85,447.17C1199.55,447.173 1171.68,416.438 1161.47,407.188ZM1245.62,341.29C1244.21,340.763 1239.45,338.913 1240.01,337.967C1240.65,336.892 1246.99,337.11 1248.94,337.059C1252.79,336.96 1260.71,336.771 1261.74,337.797C1262.32,338.381 1260.78,340.517 1260.26,341.156C1257.71,344.112 1253.41,344.246 1245.62,341.29Z" style="fill:rgb(0,1,0);"/>
|
||||
</g>
|
||||
<path id="e-mid" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.143,255.637 847.1,252.2C843.25,239.518 846.7,190.7 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1005.8,179.4 1009,194 1009.7,207C1010.2,217 1010.1,218.8 1008.6,220.2C1004.6,224.3 989.2,226 957,226C935.5,226.1 902.8,224.6 901.1,223.6C900.7,223.3 899.4,223.7 898.4,224.5C896.8,225.6 896.5,227 896.6,232.7C896.8,240.8 898.2,243.9 904.2,249.6C910,255.1 914,257.4 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C948.3,257.2 950.1,254.9 954,247.9C957.6,241.1 959.3,240.3 971.5,239.6C976.5,239.2 984.7,238.5 989.8,237.9C1001.6,236.4 1009.8,237.1 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310ZM953.301,188.795C960.3,185.245 960.401,182.995 954.301,177.295C951.701,174.995 946.501,171.395 942.701,169.395C933.201,164.395 926.301,164.295 918.001,168.995C908.701,174.195 903.101,181.095 905.501,184.395C907.401,186.995 913.201,190.095 917.601,190.895C920.201,191.395 928.201,191.695 935.301,191.495C946.801,191.295 948.901,190.995 953.301,188.795Z" style="fill:rgb(153,70,242);fill-rule:nonzero;"/>
|
||||
<path id="e-bottom" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.643,256.913 847.099,252.006C846.316,249.515 845.963,246.467 845.849,244.662C845.849,244.662 850.035,243.131 852.171,241.133C854.492,238.961 857.52,234.318 859.421,233.824C863.646,232.725 867.463,245.149 868.323,245.671C869.184,246.193 878.128,246.496 879.014,245.471C883.406,240.386 890.428,236.145 893.431,240.239C895.241,242.707 897.537,247.018 900.157,248.101C901.106,248.493 902.327,248.032 902.327,248.032C902.327,248.032 904.74,250.108 904.913,250.268C910.341,255.292 914.39,257.524 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C947.145,257.97 949.06,256.059 951.478,252.215C952.245,250.997 957.62,253.098 965.253,249.516C976.375,244.298 977.437,240.052 981.251,242.813C985.726,246.054 987.611,245.008 993.844,245.324C1004.38,245.859 1005.31,237.213 1008.93,238.352C1010.13,238.732 1011.15,238.9 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310Z" style="fill:rgb(198,146,254);fill-rule:nonzero;"/>
|
||||
<path id="e-top" d="M1006.3,184.38C1006.56,185.396 1000.28,179.352 993.999,180.776C981.283,183.657 983.188,189.019 978.097,189.873C971.966,190.902 967.482,179.035 966.858,181.812C965.881,186.162 963.835,190.772 957.481,186.227C957.127,185.974 959.509,185.207 958.376,182.235C956.295,176.779 938.186,164.162 927.852,165.608C916.427,167.206 903.439,178.535 905.164,183.785C905.926,186.105 905.637,190.321 900.038,190.094C890.009,189.825 889.385,179.676 882.167,180.827C875.385,181.909 871.592,192.172 867.226,195.781C864.545,197.998 862.159,187.096 854.763,187.009C851.701,186.973 850.448,189.405 849.092,190.668C848.337,191.371 847.4,191.225 847.423,190.806C847.599,187.628 847.793,185.319 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1003.84,176.188 1005.16,179.888 1006.3,184.38Z" style="fill:rgb(104,7,207);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snake-tail">
|
||||
<path id="snake_tail_base" d="M359.539,568.196C376.328,592.171 434.458,633.823 472.406,645.044C518.279,658.609 587.405,660.336 679.897,656.156C766.077,652.261 877.439,609.231 885.968,606.044C946.203,583.541 988.401,586.899 1002.77,588.423C1054.38,593.898 1092.66,618.872 1105.56,652.899C1107.03,656.798 1107.96,661.403 1108.11,662.156C1115.54,698.952 1092.31,745.481 1006.45,759.564C995.342,761.385 982.115,762.218 979.991,762.352C947.147,764.422 916.417,761.664 900.568,760.005C900.027,759.949 897.098,759.621 897.096,759.619C896.888,759.415 896.68,759.21 896.472,759.005L897.086,758.381C920.666,755.248 960.94,749.126 998.448,734.044C1001.31,732.895 1040.04,718.757 1054.57,696.061C1062.67,683.412 1057.6,676.782 1056.5,675.201C1056.44,675.115 1056.39,675.039 1055.73,674.157L1055.72,674.162C1046.89,661.435 1021.07,652.141 985.406,657.389C970.846,659.532 947.275,664.381 914.644,682.241C888.624,696.484 860.366,709.234 855.562,711.402C791.611,740.257 741.065,754.86 723.718,760.028C655.604,780.321 608.2,785.752 597.768,787.339C538.289,796.383 497.033,794.764 478.312,794.054C412.814,791.57 368.605,777.343 347.322,770.155C284.795,749.036 228.899,704.313 207.141,681.184" style="fill:rgb(240,204,0);stroke:black;stroke-width:5px;"/>
|
||||
<g id="snake_tail_light" transform="matrix(1,5.64119e-17,-3.05311e-16,1.01623,2.04636e-12,-12.3165)">
|
||||
<path d="M896.676,759.017L897.074,758.592C951.201,752.838 984.112,741.815 992.331,739.065C1015.5,731.312 1029.28,723.735 1036.57,719.259C1037.44,718.722 1042.98,714.485 1047.89,709.526C1065.93,691.322 1061.39,679.41 1059.79,675.375C1059.07,673.557 1058.08,671.773 1057.91,671.47C1057.67,671.036 1057.64,670.094 1056.18,667.794C1050.75,659.228 1037.44,650.208 1025.71,645.707C1025.23,645.522 1021.8,644.491 1015.78,643.683C997.914,641.282 974.998,641.164 974.948,641.163C972.129,641.103 969.766,640.979 962.226,641.773C931.009,645.062 898.749,656.775 888.367,660.635C887.104,661.105 877.432,665.466 876.485,665.893C855.906,675.173 822.54,687.708 819.947,688.741C812.868,691.56 799.621,697.347 786.188,702.253C739.683,719.239 693.323,727.941 685.571,729.433C653.385,735.629 626.433,738.765 608.696,740.444C604.338,740.856 589.619,741.536 578.085,741.82C522.481,743.188 469.149,738.496 418.693,722.692C408.655,719.548 366.963,709.208 319.424,677.321C295.988,661.6 277.151,645.53 259.994,628.072C254.961,622.951 248.884,616.425 247.698,614.923C247.43,614.582 244.53,610.909 244.369,610.65C242.42,607.502 240.145,604.529 238.523,601.207C236.944,597.975 235.712,594.561 234.814,591.085C233.931,587.661 233.401,584.133 233.206,580.605C233.012,577.1 233.166,573.56 233.653,570.083C234.14,566.605 234.963,563.156 236.112,559.833C237.269,556.489 238.748,553.233 240.539,550.171C242.357,547.063 244.481,544.104 246.889,541.411C246.901,541.399 255.12,533.868 255.128,533.863C258.326,531.945 261.347,529.707 264.723,528.11C268.008,526.556 271.477,525.344 275.01,524.461C278.49,523.591 282.075,523.07 285.66,522.878C289.222,522.687 292.819,522.839 296.353,523.318C299.887,523.797 303.391,524.607 306.769,525.738C310.167,526.876 313.476,528.331 316.588,530.094C319.746,531.883 322.753,533.973 325.489,536.343C331.277,541.355 330.94,541.68 335.67,547.673C336.608,548.86 340.725,555.506 348.123,565.17C365.483,587.848 380.515,600.249 383.738,602.966C408.038,623.447 431.285,634.651 445.907,640.896C445.944,640.912 450.996,642.83 457.753,645.007C505.526,660.404 557.255,663.368 603.857,662.89C607.323,662.854 662.21,665.356 729.772,655.323C763.895,650.256 782.974,644.572 790.099,642.64C801.012,639.682 801.022,639.727 807.413,637.805C851.965,624.408 856.102,622.046 869.867,617.329C873.303,616.152 888.961,609.816 910.249,603.841C936.572,596.452 955.258,594.205 966.707,593.42C972.364,593.032 980.77,593.425 981.991,593.482C998.957,594.276 1026.6,596.67 1040.75,601.406C1041.5,601.658 1054.02,605.899 1068.12,615.376C1078.15,622.112 1098.06,637.597 1103.68,659.958C1104.03,661.376 1104.31,665.626 1104.36,668.049C1104.77,685.998 1098.6,715.97 1055.73,734.009C1050.56,736.185 1047.64,737.049 1046.34,737.612C1034.07,742.941 1007.63,752.855 957.55,757.446C930.044,759.967 906.841,759.606 897.11,759.408C896.794,759.402 896.909,759.227 896.676,759.017Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="controller" transform="matrix(1.74196,0.213885,-0.213885,1.74196,-1198.25,-299.016)">
|
||||
<g id="controller_shadow" transform="matrix(0.565541,-0.0694397,0.0694397,0.565541,696.515,84.3871)">
|
||||
<path d="M1419.81,473.179C1401.86,469.487 1386.35,459.968 1375.04,446.884C1374.98,446.81 1374.85,446.662 1374.85,446.662L1259.66,432.449C1259.66,432.449 1259.45,432.597 1259.34,432.671C1243.52,443.799 1223.68,449.326 1202.99,446.782C1158.7,441.334 1127.16,400.948 1132.61,356.65C1138.06,312.352 1178.44,280.81 1222.74,286.257L1446.05,313.721C1466.36,316.219 1484,326.07 1496.61,340.276C1460.72,398.605 1438.4,442.425 1419.81,473.179Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="controller_base" transform="matrix(1,1.38778e-17,-1.38778e-17,1,0.0303899,0.00185873)">
|
||||
<path d="M1543.54,151.836C1568.96,151.841 1589.6,172.491 1589.6,197.922C1589.59,223.352 1568.94,243.995 1543.52,243.99C1531.63,243.988 1520.8,239.476 1512.62,232.076C1512.58,232.039 1512.5,231.964 1512.5,231.964L1446.37,231.924C1446.37,231.924 1446.26,232.023 1446.21,232.072C1438.03,239.464 1427.2,243.967 1415.32,243.965C1389.89,243.96 1369.25,223.31 1369.26,197.879C1369.26,172.448 1389.91,151.806 1415.34,151.811C1428.76,151.814 1531.15,151.834 1543.54,151.836Z" style="fill:rgb(203,207,204);stroke:black;stroke-width:2.65px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="panel-right">
|
||||
<g id="back" transform="matrix(1.25194,6.94183e-05,-6.94266e-05,1.25209,702.158,-210.326)">
|
||||
<path d="M671.126,294.011C688.787,293.917 703.201,308.18 703.295,325.841C703.388,343.502 689.126,357.916 671.465,358.01C653.804,358.104 639.389,343.841 639.296,326.18C639.202,308.519 653.465,294.104 671.126,294.011Z" style="fill:rgb(70,93,99);"/>
|
||||
</g>
|
||||
<g id="labels">
|
||||
<g id="X" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1073.74,-61.4904)">
|
||||
<path d="M671.925,328.927L674.297,325.264L672.113,321.931L673.764,321.922L675.178,324.162L676.541,321.907L678.177,321.899L676.019,325.308L678.429,328.893L676.726,328.902L675.162,326.491L673.619,328.918L671.925,328.927Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="Y" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1026.13,-24.0172)">
|
||||
<path d="M674.752,329.265L674.736,326.321L672.153,322.284L673.808,322.275L675.469,325.034L677.067,322.258L678.694,322.249L676.144,326.323L676.16,329.258L674.752,329.265Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="B" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1043.41,-8.06965)">
|
||||
<path d="M673,322.152L675.797,322.137C676.35,322.134 676.763,322.155 677.035,322.2C677.307,322.244 677.551,322.339 677.767,322.484C677.982,322.63 678.162,322.823 678.307,323.066C678.451,323.309 678.524,323.581 678.526,323.883C678.528,324.211 678.441,324.512 678.266,324.786C678.091,325.061 677.852,325.267 677.551,325.406C677.978,325.528 678.307,325.737 678.537,326.035C678.768,326.333 678.884,326.684 678.886,327.088C678.888,327.406 678.816,327.716 678.669,328.017C678.523,328.319 678.322,328.56 678.067,328.741C677.812,328.922 677.497,329.034 677.122,329.078C676.887,329.104 676.319,329.123 675.419,329.134L673.038,329.147L673,322.152ZM674.419,323.309L674.428,324.926L675.353,324.921C675.904,324.918 676.246,324.908 676.379,324.892C676.621,324.862 676.81,324.777 676.948,324.638C677.086,324.499 677.154,324.317 677.153,324.091C677.151,323.875 677.091,323.699 676.971,323.565C676.851,323.43 676.673,323.349 676.438,323.322C676.298,323.307 675.895,323.301 675.23,323.304L674.419,323.309ZM674.434,326.09L674.444,327.961L675.751,327.954C676.26,327.951 676.583,327.935 676.72,327.906C676.929,327.867 677.1,327.773 677.231,327.624C677.362,327.475 677.427,327.277 677.426,327.029C677.425,326.819 677.373,326.641 677.27,326.495C677.168,326.349 677.02,326.244 676.827,326.178C676.634,326.112 676.217,326.081 675.574,326.084L674.434,326.09Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="A" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1092.32,-44.9897)">
|
||||
<path d="M679.066,328.752L677.53,328.76L676.911,327.174L674.115,327.189L673.546,328.781L672.047,328.789L674.735,321.78L676.228,321.772L679.066,328.752ZM676.451,325.998L675.474,323.408L674.543,326.008L676.451,325.998Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="button-set2">
|
||||
<g id="reduttonframe1" transform="matrix(0.756173,0.897271,-0.581386,0.490079,1194.96,-604.73)">
|
||||
<path d="M733.551,309.883C733.526,302.643 729.697,296.797 725.006,296.836C720.315,296.874 716.526,302.782 716.551,310.022L716.677,346.788C716.702,354.027 720.531,359.873 725.222,359.835C729.913,359.796 733.702,353.888 733.677,346.649L733.551,309.883Z" style="fill:rgb(209,209,205);"/>
|
||||
</g>
|
||||
<g id="redbutton2" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1381.18,-536.495)">
|
||||
<path d="M678.124,355.079C682.497,355.056 686.065,358.587 686.088,362.959C686.111,367.331 682.581,370.9 678.208,370.923C673.836,370.946 670.267,367.415 670.244,363.043C670.221,358.671 673.752,355.102 678.124,355.079Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton21" serif:id="redbutton2" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1382.78,-538.55)">
|
||||
<path d="M678.124,355.079C682.497,355.056 686.065,358.587 686.088,362.959C686.111,367.331 682.581,370.9 678.208,370.923C673.836,370.946 670.267,367.415 670.244,363.043C670.221,358.671 673.752,355.102 678.124,355.079Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
<g id="redbutton1" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1401.09,-553.279)">
|
||||
<path d="M677.987,355.079C682.359,355.056 685.927,358.587 685.951,362.959C685.974,367.332 682.443,370.9 678.07,370.923C673.698,370.946 670.13,367.416 670.106,363.043C670.083,358.671 673.614,355.102 677.987,355.079Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton11" serif:id="redbutton1" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1402.7,-555.334)">
|
||||
<path d="M677.987,355.079C682.359,355.056 685.927,358.587 685.951,362.959C685.974,367.332 682.443,370.9 678.07,370.923C673.698,370.946 670.13,367.416 670.106,363.043C670.083,358.671 673.614,355.102 677.987,355.079Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="button-set1">
|
||||
<g id="redbuttonframe2" transform="matrix(0.756173,0.897271,-0.581386,0.490079,1174.3,-621.108)">
|
||||
<path d="M733.575,310.063C733.55,302.823 729.721,296.977 725.03,297.015C720.339,297.054 716.55,302.962 716.575,310.202L716.701,346.967C716.726,354.207 720.555,360.053 725.246,360.015C729.937,359.976 733.726,354.068 733.701,346.828L733.575,310.063Z" style="fill:rgb(209,209,205);"/>
|
||||
</g>
|
||||
<g id="redbutton4" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1360.52,-552.873)">
|
||||
<path d="M678.152,355.215C682.525,355.192 686.093,358.723 686.116,363.096C686.14,367.468 682.609,371.036 678.236,371.06C673.864,371.083 670.295,367.552 670.272,363.179C670.249,358.807 673.78,355.239 678.152,355.215Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton41" serif:id="redbutton4" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1362.13,-554.928)">
|
||||
<path d="M678.152,355.215C682.525,355.192 686.093,358.723 686.116,363.096C686.14,367.468 682.609,371.036 678.236,371.06C673.864,371.083 670.295,367.552 670.272,363.179C670.249,358.807 673.78,355.239 678.152,355.215Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
<g id="redbutton3" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1380.43,-569.657)">
|
||||
<path d="M678.015,355.216C682.387,355.193 685.955,358.724 685.979,363.096C686.002,367.468 682.471,371.037 678.099,371.06C673.726,371.083 670.158,367.552 670.135,363.18C670.111,358.808 673.642,355.239 678.015,355.216Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton31" serif:id="redbutton3" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1382.04,-571.712)">
|
||||
<path d="M678.015,355.216C682.387,355.193 685.955,358.724 685.979,363.096C686.002,367.468 682.471,371.037 678.099,371.06C673.726,371.083 670.158,367.552 670.135,363.18C670.111,358.808 673.642,355.239 678.015,355.216Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="panel-middle">
|
||||
<g id="button2_shadow" transform="matrix(0.7629,-0.596793,0.50169,0.641485,825.176,317.256)">
|
||||
<path d="M595.758,371.768C595.756,374.34 593.999,376.426 591.836,376.424L578.232,376.41C576.07,376.407 574.316,374.317 574.318,371.745C574.319,369.173 576.077,367.087 578.239,367.089L591.843,367.104C594.005,367.106 595.759,369.196 595.758,371.768Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="button1_shadow" transform="matrix(0.762933,-0.596751,0.501656,0.641513,849.213,314.296)">
|
||||
<path d="M593.889,374.588C593.889,377.16 592.133,379.248 589.971,379.247L576.367,379.246C574.204,379.245 572.449,377.157 572.449,374.585C572.449,372.013 574.205,369.925 576.368,369.925L589.971,369.927C592.134,369.927 593.889,372.016 593.889,374.588Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="button2" transform="matrix(0.7629,-0.596793,0.50169,0.641485,826.704,315.3)">
|
||||
<path d="M594.538,371.767C594.539,369.996 593.331,368.556 591.842,368.555L578.238,368.54C576.749,368.539 575.539,369.976 575.538,371.747C575.536,373.518 576.744,374.957 578.233,374.959L591.837,374.973C593.326,374.974 594.536,373.538 594.538,371.767Z" style="fill:rgb(51,66,73);stroke:black;stroke-width:2.64px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="button1" transform="matrix(0.762933,-0.596751,0.501656,0.641513,850.741,312.34)">
|
||||
<path d="M592.669,374.588C592.669,372.816 591.461,371.378 589.971,371.378L576.368,371.376C574.878,371.376 573.669,372.814 573.669,374.585C573.669,376.356 574.878,377.794 576.367,377.795L589.971,377.796C591.46,377.796 592.669,376.359 592.669,374.588Z" style="fill:rgb(50,65,72);stroke:black;stroke-width:2.64px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="infobox" transform="matrix(0.427146,0.052447,-0.0524533,0.427198,1387.96,77.9999)">
|
||||
<path d="M292.484,163.35C291.66,156.627 285.532,151.838 278.809,152.662L176.592,165.191C169.869,166.015 165.08,172.142 165.904,178.865L168.891,203.228C169.716,209.951 175.843,214.741 182.566,213.917L284.783,201.388C291.506,200.564 296.295,194.436 295.471,187.713L292.484,163.35Z" style="fill:rgb(100,100,100);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="panel-left">
|
||||
<g id="d-pad">
|
||||
<g id="dpad_shadow" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-11.5965,85.393)">
|
||||
<path d="M1409.57,204.851L1409.57,212.522C1409.57,216.449 1409.13,216.008 1413.06,216.009L1420.03,216.01C1423.95,216.01 1423.51,216.451 1423.51,212.524L1423.52,204.854L1431.18,204.855C1435.11,204.855 1434.67,205.296 1434.67,201.369L1434.67,194.396C1434.67,190.468 1435.11,190.91 1431.19,190.909L1423.52,190.908L1423.52,183.238C1423.52,179.31 1423.96,179.751 1420.03,179.751L1413.06,179.75C1409.13,179.749 1409.58,179.308 1409.57,183.236L1409.57,190.906L1401.9,190.905C1397.98,190.904 1398.42,190.463 1398.42,194.39L1398.42,201.363C1398.41,205.291 1397.97,204.85 1401.9,204.85L1409.57,204.851Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="dpad" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-9.03074,82.109)">
|
||||
<path d="M1409.57,204.851L1409.57,212.522C1409.57,216.449 1409.13,216.008 1413.06,216.009L1420.03,216.01C1423.95,216.01 1423.51,216.451 1423.51,212.524L1423.52,204.854L1431.18,204.855C1435.11,204.855 1434.67,205.296 1434.67,201.369L1434.67,194.396C1434.67,190.468 1435.11,190.91 1431.19,190.909L1423.52,190.908L1423.52,183.238C1423.52,179.31 1423.96,179.751 1420.03,179.751L1413.06,179.75C1409.13,179.749 1409.58,179.308 1409.57,183.236L1409.57,190.906L1401.9,190.905C1397.98,190.904 1398.42,190.463 1398.42,194.39L1398.42,201.363C1398.41,205.291 1397.97,204.85 1401.9,204.85L1409.57,204.851Z" style="fill:rgb(32,44,51);stroke:black;stroke-width:2.47px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="shadow1" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-8.59573,82.0861)">
|
||||
<path d="M1404.38,197.522L1428.35,197.526C1429.56,197.526 1431.18,198.212 1431.18,198.212C1431.18,198.212 1431.2,197.683 1431.2,197.375L1431.2,196.227C1431.2,192.861 1431.92,193.758 1428.35,193.757L1420.24,193.772L1420.24,185.044C1420.24,181.678 1420.97,182.575 1417.39,182.574L1415.79,182.599C1412.21,182.599 1412.93,181.702 1412.93,185.068L1412.93,193.796L1404.38,193.754C1400.81,193.753 1401.53,192.856 1401.53,196.223L1401.53,197.371C1401.53,197.714 1401.52,198.076 1401.52,198.076C1401.52,198.076 1403.2,197.522 1404.38,197.522Z" style="fill:rgb(17,22,24);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="shadow2" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1416.31,227.099C1416.96,227.133 1423.74,227.37 1431.27,222.565C1435.87,219.629 1439.4,213.952 1439.4,213.952C1439.4,213.952 1437.11,219.468 1431.59,223.028C1424.74,227.454 1417.01,227.137 1416.31,227.099C1416.28,227.097 1416.26,227.096 1416.26,227.096C1416.26,227.096 1416.28,227.097 1416.31,227.099Z" style="fill:rgb(128,128,128);"/>
|
||||
</g>
|
||||
<g id="shadow11" serif:id="shadow1" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1440.8,187.23C1440.26,186.136 1439.52,184.911 1438.53,183.776C1435.8,180.65 1431.2,177.888 1427.12,176.064C1423.77,174.562 1420.01,172.858 1415.45,172.492C1411.33,172.162 1405.21,173.498 1405.21,173.498C1405.21,173.498 1417.69,168.118 1428.8,174.116C1435.62,177.8 1439.15,183.588 1440.8,187.23C1441.71,189.099 1442.04,190.584 1442.04,190.584C1442.04,190.584 1441.7,189.231 1440.8,187.23Z" style="fill:rgb(59,59,59);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snake-head" transform="matrix(1.74196,0.213885,-0.213885,1.74196,-1198.25,-299.016)">
|
||||
<g id="head-shadow">
|
||||
<g id="jaw_shadow" transform="matrix(0.966789,-0.000509118,0.000541645,1.02855,886.258,-166.995)">
|
||||
<path d="M569.42,389.108C573.599,388.846 591.189,392.816 601.973,392.583C621.269,392.166 625.866,390.112 629.084,390.607C644.095,392.916 646.899,404.867 645.412,412.246C643.561,421.437 636.374,436.903 599.987,436.671C558.349,436.406 552.265,415.036 553.411,405.263C554.978,391.9 564.566,389.412 569.42,389.108Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="head_shadow" transform="matrix(0.565541,-0.0694397,0.0694397,0.565541,696.515,84.3871)">
|
||||
<path d="M1547.17,262.701C1547.17,262.701 1536.35,276.182 1532.38,281.213C1526.64,288.487 1515.91,289.702 1507.77,294.127C1498.91,298.942 1487.62,304.343 1479.24,310.102C1471.38,315.503 1464.59,323.65 1457.47,328.679C1450.97,333.281 1443.72,336.763 1436.57,340.278C1428.4,344.292 1418.27,349.836 1408.47,352.763C1398.66,355.69 1388.11,357.435 1377.73,357.84C1364.98,358.338 1346.48,357.539 1331.94,355.751C1317.94,354.028 1302.17,350.614 1290.5,347.112C1280.56,344.128 1270.72,339.956 1261.92,334.74C1253.11,329.525 1244.63,321.692 1237.68,315.818C1231.59,310.675 1225.4,305.541 1220.21,299.5C1214.52,292.897 1209.91,283.347 1203.59,276.202C1196.85,268.583 1187.21,260.607 1179.78,253.79C1172.96,247.525 1162.84,243.745 1159.03,235.297C1155.59,227.661 1154.69,215.841 1155.61,205.634C1156.14,202.246 1156.96,198.847 1158.07,195.448C1163.17,200.777 1167.82,205.426 1174.09,207.518C1195.65,56.069 1407.89,13.746 1500.57,141.687C1519.42,167.713 1531.85,194.242 1539.26,215.859C1547.78,240.687 1549.69,259.035 1547.17,262.701Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="head_base" transform="matrix(1,1.38778e-17,-1.38778e-17,1,0.0303899,0.00185873)">
|
||||
<path d="M1484.47,23.611C1503.71,23.627 1503.94,13.26 1521.53,9.733C1531.13,7.809 1543.3,9.516 1546.57,10.36C1563.32,14.679 1569.08,31.326 1572.6,40.656C1576.37,50.617 1576.56,55.129 1581.61,66.701C1585.58,75.79 1588.48,82.31 1590.51,88.715C1592.68,95.56 1594.62,100.761 1594.62,107.772C1594.62,114.255 1593.45,122.13 1590.61,126.803C1587.87,131.316 1581.89,132.748 1577.59,135.816C1572.92,139.154 1566.91,142.993 1562.57,146.831C1558.5,150.432 1555.22,155.511 1551.55,158.849C1548.19,161.904 1544.33,164.376 1540.53,166.861C1536.19,169.698 1530.85,173.536 1525.5,175.873C1520.16,178.209 1514.32,179.928 1508.48,180.878C1501.3,182.045 1490.78,182.878 1482.43,182.876C1474.39,182.874 1465.24,182.038 1458.4,180.868C1452.57,179.871 1446.71,178.195 1441.37,175.856C1436.03,173.518 1430.69,169.677 1426.35,166.838C1422.55,164.352 1418.69,161.878 1415.34,158.823C1411.66,155.483 1408.39,150.403 1404.32,146.801C1399.98,142.96 1393.97,139.119 1389.3,135.779C1385.01,132.71 1379.02,131.275 1376.28,126.762C1373.44,122.087 1372.11,114.073 1372.28,107.729C1372.45,101.385 1374.99,94.84 1377.29,88.698C1379.8,82.021 1384.45,74.886 1387.31,67.665C1390.48,59.652 1392.56,49.579 1396.33,40.622C1400.2,31.428 1407.69,16.425 1419.46,11.157C1427.43,7.591 1441.82,8.413 1448.42,9.719C1466.03,13.208 1465.82,23.595 1484.47,23.611Z" style="fill:rgb(254,227,45);stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="face-shadows" transform="matrix(1.00155,-1.38778e-17,-1.52656e-16,1.00167,894.193,-165.734)">
|
||||
<g id="shadow3" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1521.82,12.219C1527.23,9.394 1538.79,9.481 1545.1,11.167C1551.13,12.782 1555.87,17.325 1559.67,22.34C1564.5,28.725 1565.64,26.87 1575.93,56.91C1578.26,63.681 1580.8,70.655 1582.88,75.235C1584.34,78.453 1585.51,81.112 1586.79,84.39C1588.45,88.629 1590.48,95.58 1591.22,100.666C1591.9,105.384 1592.5,110.336 1591.22,114.908C1589.93,119.486 1589.5,125.306 1585.1,128.134C1577.97,132.71 1561.1,144.367 1561.1,144.367C1559.79,142.192 1564.48,132.508 1557.88,121.126C1550.22,107.89 1542.21,104.758 1542.21,104.758C1542.21,104.758 1559.02,95.808 1561.88,71.169C1563.1,60.673 1559.36,41.955 1552.55,33.64C1541.13,19.685 1532.92,19.952 1524,19.12C1519.91,18.738 1520.21,13.064 1521.82,12.219Z" style="fill:rgb(255,223,38);"/>
|
||||
</g>
|
||||
<g id="shadow21" serif:id="shadow2" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1489.73,26.181C1489.73,26.181 1497.4,24.469 1500.5,22.616C1505.93,19.368 1513.67,13.307 1519.81,12.617C1522.82,12.279 1520.63,15.733 1519.77,17.161C1518.47,19.303 1518.94,17.039 1508.98,26.004C1499.72,34.342 1493.84,51.231 1493.74,66.247C1493.69,73.217 1499.3,89.043 1500.75,89.284L1486.73,87.283C1486.73,87.283 1485.25,67.912 1485.72,58.235C1486.22,48.051 1489.73,26.181 1489.73,26.181Z" style="fill:rgb(240,204,0);"/>
|
||||
</g>
|
||||
<g id="shadow12" serif:id="shadow1" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1405.32,145.622C1405.32,145.622 1390.63,134.282 1385.68,131.88C1382.04,130.116 1379.62,128.685 1378.27,126.84C1374.35,121.509 1374.05,113.99 1373.89,109.714C1373.6,101.948 1376.82,94.4 1379.12,88.301C1381.31,82.535 1384.28,77.92 1386.77,72.849C1387.2,71.954 1391.56,60.25 1391.85,59.281C1396.63,43.665 1396.04,45.384 1400.14,36.004C1405.24,24.368 1413.02,15.889 1419.26,12.845C1425.33,9.888 1437.14,10.531 1434.52,14.005C1433.35,15.56 1430.27,17.487 1424.6,21.097C1419.41,24.395 1413.77,29.993 1412.28,32.384C1409.35,37.071 1402.77,50.733 1402.43,64.479C1402.3,69.822 1404.06,80.38 1405.04,83.942C1406.61,89.608 1408.61,100.817 1408.61,103.321C1408.61,105.561 1406.55,107.298 1405.61,109.332C1404.61,111.502 1403.13,113.855 1402.6,116.344C1401.94,119.516 1401.31,124.354 1401.6,128.364C1401.94,132.871 1405.32,145.622 1405.32,145.622Z" style="fill:rgb(239,204,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="face-highlights" transform="matrix(1.00155,-1.38778e-17,-1.66533e-16,1.00167,895.927,-160.133)">
|
||||
<g id="highlight3" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1552.81,19.744C1554.06,17.836 1559.64,20.775 1561.12,22.839C1562.85,25.236 1563.88,31.689 1563.07,32.085C1561.92,32.65 1559.86,27.69 1558.19,25.358C1556.46,22.961 1552.32,20.496 1552.81,19.744Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g id="highlight2" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1584.59,109.737C1583.34,109.289 1583.02,112.525 1582.09,115.48C1581.03,118.886 1580.42,119.824 1578.89,121.573C1574.18,126.985 1573.99,130.665 1575,130.752C1579.32,131.121 1582.1,125.084 1583.68,120.932C1584.64,118.437 1585.29,109.991 1584.59,109.737Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g id="highlight1" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1473.1,23.129C1473.68,22.527 1476.81,24.424 1477.83,25.726C1478.85,27.027 1479.79,30.338 1479.21,30.94C1478.63,31.542 1475,30.067 1473.99,28.765C1472.97,27.463 1472.52,23.731 1473.1,23.129Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="eyes">
|
||||
<g id="eye-r">
|
||||
<g id="eyeball-r" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1528.21,22.677C1545.14,22.68 1558.88,41.607 1558.87,64.916C1558.87,88.225 1545.12,107.146 1528.2,107.143C1511.27,107.139 1497.54,88.213 1497.54,64.904C1497.55,41.595 1511.29,22.674 1528.21,22.677Z" style="fill:white;stroke:black;stroke-width:2.77px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="pupil-r" transform="matrix(1.17746,1.11022e-16,8.32667e-17,1.17746,-268.628,-25.7873)">
|
||||
<path d="M1514.56,72.669C1519.87,72.67 1524.19,76.987 1524.19,82.303C1524.19,87.619 1519.87,91.935 1514.55,91.934C1509.24,91.933 1504.92,87.616 1504.92,82.299C1504.93,76.983 1509.24,72.668 1514.56,72.669Z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="eye-l">
|
||||
<g id="eyeball-l" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1437.73,22.659C1454.65,22.663 1468.39,41.589 1468.38,64.898C1468.38,88.207 1454.63,107.128 1437.71,107.125C1420.79,107.122 1407.05,88.195 1407.05,64.886C1407.06,41.577 1420.8,22.656 1437.73,22.659Z" style="fill:white;stroke:black;stroke-width:2.77px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="pupil-l" transform="matrix(1.17746,1.11022e-16,8.32667e-17,1.17746,-257.448,-25.7851)">
|
||||
<path d="M1451.56,72.656C1456.87,72.657 1461.19,76.974 1461.19,82.291C1461.19,87.607 1456.87,91.922 1451.55,91.921C1446.24,91.92 1441.92,87.603 1441.92,82.287C1441.92,76.971 1446.24,72.655 1451.56,72.656Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="jaw">
|
||||
<g id="jaw-base" transform="matrix(0.966789,-0.000509118,0.000541645,1.02855,892.707,-175.25)">
|
||||
<path d="M569.42,389.108C573.599,388.846 591.189,392.816 601.973,392.583C621.269,392.166 625.866,390.112 629.084,390.607C644.095,392.916 646.899,404.867 645.412,412.246C643.561,421.437 636.374,436.903 599.987,436.671C558.349,436.406 552.265,415.036 553.411,405.263C554.978,391.9 564.566,389.412 569.42,389.108Z" style="fill:rgb(240,204,0);stroke:black;stroke-width:2.83px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="jaw-light" transform="matrix(0.931083,-0.000490315,0.00052164,0.990567,913.997,-159.516)">
|
||||
<path d="M587.362,396.695C592.828,396.373 597.492,396.713 604.111,396.033C614.154,394.999 620.211,392.212 627.296,391.234C634.38,390.256 640.519,394.432 643.726,399.294C647.362,404.804 646.532,409.459 645.797,412.778C642.972,425.521 631.326,433.025 602.625,432.724C591.307,432.605 585.525,431.883 577.278,426.782C571.056,422.933 566.066,412.338 569.276,405.034C572.991,396.583 582.194,396.999 587.362,396.695Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
<g id="hilight1" transform="matrix(0.966789,-0.000509118,0.00050918,0.966905,672.291,-152.965)">
|
||||
<path d="M859.405,400.127C860.405,400.126 863.362,401.485 864.406,403.124C865.574,404.957 866.41,409.789 866.41,411.123C866.411,411.789 864.882,411.595 864.41,411.124C863.743,410.458 863.303,408.317 862.408,407.125C861.408,405.792 858.907,404.293 858.406,403.127C857.99,402.158 858.405,400.127 859.405,400.127Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snout" transform="matrix(1.01627,2.49019e-17,-2.49019e-17,1.01627,-24.0994,-2.4617)">
|
||||
<g id="tooth_r" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1532.52,170.866L1544.54,163.856L1540.52,211.936L1532.52,170.866Z" style="fill:white;stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="tooth_l" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1430.36,170.846L1418.34,163.832L1422.34,211.913L1430.36,170.846Z" style="fill:white;stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="snout_base" transform="matrix(1.16089,0.000531638,-0.000959148,2.0944,804.244,-533.637)">
|
||||
<path d="M584.086,297.961C620.512,297.97 650.077,307.836 650.067,319.978C650.056,332.12 620.474,341.97 584.047,341.961C547.621,341.951 518.056,332.085 518.067,319.943C518.077,307.801 547.659,297.951 584.086,297.961Z" style="fill:rgb(254,227,45);stroke:black;stroke-width:1.72px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="shadow13" serif:id="shadow1" transform="matrix(0.590658,0.000270496,-0.000270529,0.590729,-605.649,-55.1469)">
|
||||
<path d="M3478.21,257.973C3478.21,257.973 3427.78,276.329 3427.76,323.263C3427.73,370.198 3476.76,386.865 3476.76,386.865C3476.76,386.865 3411.18,370.19 3411.21,323.255C3411.23,276.321 3478.21,257.973 3478.21,257.973Z" style="fill:rgb(232,197,0);"/>
|
||||
</g>
|
||||
<g id="nostril-r">
|
||||
<g id="nostril_r_base" transform="matrix(1.15237,0.000527734,-0.000608997,1.32981,860.768,-268.078)">
|
||||
<path d="M564.004,297.373C571.731,297.377 578.003,300.292 578.001,303.879C577.999,307.467 571.724,310.377 563.997,310.373C556.27,310.37 549.999,307.455 550.001,303.868C550.003,300.28 556.278,297.37 564.004,297.373Z" style="fill:rgb(247,219,39);"/>
|
||||
</g>
|
||||
<g id="shadow_r" transform="matrix(0.465447,0.000213155,-0.00021318,0.465503,-114.16,3.52739)">
|
||||
<path d="M3456.32,281.48C3458.55,272.379 3473.1,265.348 3490.7,265.357C3509.83,265.366 3525.36,273.694 3525.35,283.942C3525.35,289.793 3520.28,295.013 3512.38,298.413C3512.57,297.618 3512.67,296.808 3512.67,295.985C3512.68,285.736 3497.15,277.409 3478.02,277.399C3469.81,277.395 3462.27,278.924 3456.32,281.48Z" style="fill:rgb(205,177,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="nostril-l">
|
||||
<g id="nostril_l_base" transform="matrix(1.15237,0.000527734,-0.000608997,1.32981,800.675,-268.105)">
|
||||
<path d="M564.004,297.352C571.731,297.355 578.003,300.27 578.001,303.857C577.999,307.445 571.724,310.355 563.997,310.352C556.27,310.348 549.999,307.433 550.001,303.846C550.003,300.258 556.278,297.348 564.004,297.352Z" style="fill:rgb(247,219,39);"/>
|
||||
</g>
|
||||
<g id="shadow_l" transform="matrix(0.465447,0.000213155,-0.00021318,0.465503,-174.253,3.49987)">
|
||||
<path d="M3456.32,281.418C3458.55,272.316 3473.1,265.286 3490.7,265.294C3509.83,265.303 3525.36,273.631 3525.35,283.88C3525.35,289.73 3520.28,294.95 3512.38,298.351C3512.57,297.556 3512.67,296.745 3512.67,295.922C3512.68,285.674 3497.15,277.346 3478.02,277.337C3469.81,277.333 3462.27,278.861 3456.32,281.418Z" style="fill:rgb(205,177,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="highlight11" serif:id="highlight1" transform="matrix(1.00155,-1.45487e-05,-1.45487e-05,1.00167,26.65,-13.0335)">
|
||||
<path d="M1505.26,121.885C1506.28,120.356 1512.93,125.765 1513.57,126.609C1514.35,127.654 1520.6,132.045 1517.75,134.502C1514.82,137.02 1513.11,131.001 1510.92,128.854C1508.92,126.891 1503.41,124.686 1505.26,121.885Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 125 KiB |
@@ -1,377 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 1560 824" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g id="snake-body" transform="matrix(1,0,0,1,0,-19)">
|
||||
<g id="snake_body_base" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M362.273,570.841C363.044,572.445 394.789,607.529 368.474,662.66C338.751,724.933 249.576,750.513 191.081,659.956C52.719,445.753 234.75,39.212 663.971,103.294C904.645,139.226 1046.89,311.203 1104.44,367.865C1137.92,400.827 1191.31,422.791 1199.59,421.555C1202.35,418.601 1214.29,417.702 1209.34,348.257C1202,245.212 1178.86,221.316 1179.63,214.281C1196.69,58.183 1406.72,12.137 1500.57,141.687C1541.08,197.606 1551.89,255.843 1547.17,262.701C1470.86,373.47 1438.1,446.717 1410.36,488.093C1393.32,513.502 1324.9,621.61 1207.75,623.767C1170.29,624.456 1076.69,611.426 973.642,511.843C861.734,403.696 781.514,292.361 567.047,289.841C456.894,288.546 357.369,371.25 342.061,476.745C335.049,525.068 342.686,543.859 362.273,570.841Z" style="fill:rgb(240,204,0);stroke:black;stroke-width:5px;"/>
|
||||
</g>
|
||||
<g id="snake_body_light" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M1244.8,224.652C1247.22,217.185 1248.51,209.384 1250.92,201.917C1252.1,198.263 1253.85,194.808 1255.56,191.374C1256.38,189.75 1260.63,181.248 1267.67,172.182C1268.77,170.762 1274.56,163.308 1283.08,155.846C1291.54,148.438 1299.7,143.665 1301.25,142.761C1311.02,137.042 1319.92,133.917 1321.62,133.322C1332.44,129.522 1341.85,128.182 1343.65,127.926C1355.24,126.275 1364.94,126.856 1366.79,126.967C1366.8,126.968 1378.6,128.274 1378.61,128.276C1382.48,129.11 1386.4,129.75 1390.23,130.778C1392.02,131.259 1401.41,133.782 1411.88,139.019C1413.51,139.831 1422.01,144.084 1431.08,151.118C1432.49,152.219 1439.95,158.003 1447.41,166.524C1448.59,167.872 1454.82,174.984 1460.5,184.69C1466.21,194.468 1469.34,203.371 1469.93,205.066C1473.73,215.894 1475.07,225.306 1475.33,227.103C1476.98,238.697 1476.4,248.403 1476.29,250.253C1475.81,258.158 1475.65,258.143 1474.34,265.951C1473.89,268.59 1473.36,271.628 1473.36,271.638C1473.36,271.64 1471.66,276.172 1469.61,281.375C1449.23,333.263 1429.07,367.991 1425.86,374.095C1387.36,447.314 1351.12,483.081 1332.25,499.531C1329.6,501.835 1308.85,525.959 1275.27,542.976C1230.56,565.636 1191.77,561.649 1173.9,558.939C1119.15,550.636 1074.05,517.054 1042.49,487.586C1037.11,482.567 1035.77,482.292 1007.07,454.141C977.474,425.111 934.267,381.647 890.652,347.953C844.517,312.312 808.127,293.176 769.435,278.008C769.309,277.958 758.03,273.346 738.637,267.296C718.805,261.111 705.202,258.047 702.841,257.343C687.667,252.818 663.972,246.414 635.871,241.733C635.076,241.6 616.204,238.997 593.837,238.329C559.826,237.311 533.915,241.349 525.858,242.669C525.798,242.679 518.716,243.914 509.741,246.079C465.257,256.813 440.179,274.192 433.795,278.029C403.01,296.531 384.967,317.909 374.719,331.371C360.148,350.511 349.211,371.826 341.88,393.941C341.274,395.769 340.296,397.569 337.833,404.075C324.786,438.535 323.708,467.047 323.681,480.805C323.608,518.538 334.816,540.264 337.51,545.512L337.463,545.445C339.755,552.464 344.062,558.715 346.354,565.734C347.473,569.16 347.525,572.871 347.595,576.474C347.665,580.054 347.385,583.657 346.773,587.185C346.162,590.713 345.215,594.199 343.945,597.547C342.666,600.915 341.068,604.182 339.164,607.241C337.23,610.345 334.996,613.286 332.486,615.947C332.475,615.959 323.967,623.347 323.96,623.351C320.686,625.194 317.579,627.368 314.139,628.876C310.791,630.344 307.27,631.458 303.697,632.234C300.177,632.998 296.564,633.404 292.962,633.474C289.383,633.544 285.781,633.263 282.253,632.652C278.725,632.041 275.238,631.093 271.889,629.823C268.519,628.545 265.251,626.947 262.191,625.043C259.084,623.11 256.14,620.877 253.477,618.367C249.684,614.795 243.246,606.252 242.417,605.151C206.274,557.191 197.398,501.461 194.982,485.016C192.92,470.977 192.275,456.77 192.163,454.305C189.966,405.89 198.605,367.575 202.845,350.649C202.846,350.645 204.633,344.798 207.243,337.427C230.56,271.59 266.123,231.074 278.125,217.858C300.015,193.756 326.645,171.193 358.532,152.178C358.885,151.968 373.122,143.553 393.541,134.712C445.507,112.212 490.833,106.71 509.281,104.361C574.055,96.115 628.197,103.18 653.746,107.048C657.647,107.639 692.084,111.147 739.466,123.107C741.412,123.598 757.81,128.477 777.168,135.427C779.791,136.368 794.351,141.482 818.662,151.762C884.839,179.746 935.477,213.386 994.615,264.781C1052.35,314.953 1098.82,367.499 1125.54,391.876C1125.59,391.918 1135.43,400.282 1147.38,408.116C1174.04,425.593 1188.68,426.027 1192.48,426.113L1192.48,426.104C1196.88,426.01 1204.88,425.234 1216.79,412.397C1219.79,409.168 1222.15,406.098 1223.42,404.401C1223.57,404.207 1223.6,404.219 1224.49,402.109C1230.57,387.819 1240.22,359.725 1244.91,312.152C1244.92,312.079 1245.94,297.534 1245.84,277.626C1245.69,250.845 1243.64,231.542 1243.67,231.335C1243.75,230.795 1243.78,230.798 1244.8,224.652Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Pygame-ce" transform="matrix(1,0,0,1,0,-19)">
|
||||
<g id="Pygame_shadow" transform="matrix(1,0,0,1,-3,-3.04251)">
|
||||
<path d="M172.358,365.396C194.988,303.834 232.047,248.148 285.506,201.766C285.506,201.766 285.706,206.452 287.015,215.748C288.74,227.988 279.732,251.654 279.971,252.37C280.806,254.517 281.531,257.794 291.557,260.269C299.647,262.266 296.192,258.581 295.423,248.977C294.765,240.758 295.945,237.51 298.627,233.644C303.136,227.145 307.776,226.123 317.709,217.11C327,208.679 328.931,202.623 349.185,192.361C354.685,189.575 370.052,183.78 378.073,187.321C387.807,191.617 390.654,195.647 395.498,200.941C400.668,206.592 408.054,222.217 409.095,221.225C417.448,213.264 423.483,201.804 434.331,197.736C444.709,193.919 478.468,195.35 502.684,200.599C507.428,201.627 510.084,200.896 510.084,200.896C510.084,200.896 511.949,196.132 514.493,194.157C520.891,189.19 541.572,189.982 550.518,192.01C556.722,193.561 562.997,200.917 565.072,207.756C568.193,218.047 573.303,244.02 573.303,244.02C573.303,244.02 585.469,228.731 592.031,224.337C617.981,206.963 648.641,198.428 679.135,193.468C694.876,190.907 722.066,189.446 740.188,215.748C754.487,236.502 756.354,246.464 758.282,248.393C758.844,248.955 769.685,238.673 774.663,231.853C780.526,223.818 793.451,212.905 803.053,208.353C811.931,204.144 824.883,203.7 832.279,204.535C838.092,205.158 844.972,207.638 850.003,210.561C856.541,214.36 863.08,222.612 863.941,224.337C864.674,225.803 867.654,214.409 872.721,207.756C877.658,201.273 886.997,198.73 893.615,197.157C897.372,196.265 898.279,196.625 902.375,196.067C997.086,255.91 1067.82,335.452 1102.6,369.702C1121.87,388.672 1147.73,404 1167.8,413.358C1167.8,413.358 1161.57,426.799 1159.73,428.772C1140.89,448.921 1127.63,454.101 1099.01,457.586C1082.07,459.648 1062.39,455.927 1048.58,452.74C1036.66,449.989 1023.24,438.938 1014.17,430.724C997.877,415.965 989.609,389.684 989.223,386.867C982.719,418.053 944.2,460.741 909.442,434.131C893.695,422.075 889.254,396.068 887.737,384.53C886.818,377.545 890.039,359.098 887.379,357.69C884.736,356.248 882.787,359.918 881.695,361.415C877.765,366.802 876.968,369.163 871.275,372.959C868.482,374.774 864.514,378.933 852.282,391.165C782.523,331.754 701.341,288.657 567.047,287.078C468.722,285.923 376.308,353.441 347.258,442.609C347.258,442.609 338.464,453.382 319.923,457.072C290.043,463.018 261.319,461.67 232.394,452.74C199.94,442.721 168.924,406.392 183.222,371.123C185.547,365.386 193.751,355.951 198.53,350.739C194.616,354.89 182.903,361.212 172.358,365.396Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="Pygame" transform="matrix(1.19289,0,0,1.19289,-10.1906,36.483)">
|
||||
<g id="shadow" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M446.083,428.557C430.438,439.977 404.513,447.031 385.555,450.803C351.903,457.5 316.842,453.812 284.266,443.755C247.716,432.472 212.785,391.558 228.887,351.837C231.507,345.376 240.746,334.75 246.128,328.88C248.565,326.295 250.1,324.653 250.1,324.653C250.1,324.653 248.483,326.311 246.128,328.88C239.045,336.391 224.342,351.853 217.49,358.1C200.114,373.944 175.999,378.478 153.392,380.25L154.064,396.64C154.263,401.47 154.678,406.366 153.922,411.14C152.136,422.427 138.526,425.078 131.625,431.528C128.573,434.38 127.439,438.839 124.611,441.915C113.624,453.865 96.498,456.522 81.115,456.424C66.874,456.289 59.754,455.618 51.962,453.603C46.401,452.136 40.315,450.122 36.147,445.824C31.991,441.538 29.818,435.015 28.452,429.42C24.337,412.566 21.857,399.252 19.988,381.997C19.182,374.608 17.839,363.726 17.167,357.815C15.017,341.29 13.405,286.612 14.211,259.743C14.639,244.553 14.578,230.507 18.976,215.615C22.267,204.471 33.585,192.606 44.445,184.989C54.989,170.03 76.974,156.546 93.867,151.741C107.756,147.79 126.516,146.3 140.745,145.801C163.456,145.004 184.623,147.945 208.52,153.207C227.058,157.289 239.278,165.107 255.091,175.509C271.818,157.713 299.746,139.337 326.196,151.9C332.107,154.721 344.306,166.382 345.781,176.852C347.723,190.637 337.579,217.29 337.848,218.096C338.788,220.514 339.605,224.204 350.897,226.992C360.008,229.241 356.116,225.091 355.25,214.275C354.509,205.018 355.838,201.36 358.859,197.006C363.937,189.687 369.162,188.536 380.349,178.386C390.813,168.891 392.987,162.07 415.798,150.513C421.992,147.375 439.298,140.849 448.332,144.837C459.294,149.676 462.5,154.214 467.956,160.176C473.779,166.54 482.097,184.137 483.269,183.019C492.676,174.054 499.472,161.148 511.69,156.566C523.378,152.267 561.397,153.879 588.669,159.791C594.013,160.949 597.004,160.125 597.004,160.125C597.004,160.125 599.104,154.76 601.97,152.536C609.175,146.942 632.466,147.834 642.542,150.118C649.528,151.864 656.595,160.148 658.932,167.851C662.447,179.441 668.202,208.692 668.202,208.692C668.202,208.692 681.904,191.473 689.294,186.525C718.519,166.958 753.049,157.345 787.391,151.759C805.119,148.876 835.741,147.23 856.15,176.852C872.254,200.226 874.356,211.445 876.528,213.617C877.161,214.25 889.37,202.67 894.976,194.989C901.579,185.94 916.135,173.65 926.95,168.523C936.947,163.783 951.535,163.283 959.864,164.224C966.411,164.925 974.159,167.718 979.824,171.01C987.188,175.289 994.552,184.583 995.522,186.525C996.347,188.176 999.704,175.344 1005.41,167.851C1010.97,160.55 1023.74,154.307 1031.19,152.536C1066.29,144.197 1100.45,151.412 1123.02,183.019C1127.25,188.93 1138.89,208.692 1138.89,208.692C1138.89,208.692 1165.01,183.286 1175.53,174.05C1182.12,168.269 1200.67,158.118 1209.12,155.481C1268.43,136.969 1328.89,170.649 1358.63,222.959C1370.14,243.212 1371.18,267.401 1373.26,289.896C1373.97,297.61 1374.55,299.828 1368.76,305.69C1367.38,307.088 1359.91,309.888 1360.87,310.456C1362.22,311.256 1370.29,313.789 1372.51,316.185C1377.62,321.709 1375.37,337.912 1373.56,344.025C1366.05,369.409 1355.27,388.28 1328.64,416.762C1307.42,439.455 1292.49,445.288 1260.26,449.212C1241.18,451.534 1219.01,447.344 1203.47,443.755C1190.04,440.656 1174.92,428.211 1164.71,418.961C1146.36,402.339 1137.05,372.74 1136.62,369.568C1129.29,404.691 1085.91,452.766 1046.77,422.797C1029.03,409.22 1024.03,379.93 1022.32,366.936C1021.29,359.069 1024.91,338.294 1021.92,336.708C1018.94,335.085 1016.75,339.218 1015.52,340.904C1011.09,346.971 1010.19,349.63 1003.78,353.904C1000.12,356.287 1000.9,361.504 1000.69,365.055C1000.47,368.947 996.583,401.33 985.553,416.749C974.076,432.791 936.316,443.153 923.877,438.818C889.7,426.905 879.115,368.234 879.115,368.234C879.115,368.234 874.338,434.496 798.198,445.824C764.23,450.878 712.126,438.156 694.685,428.557C665.478,412.483 663.363,401.821 662.147,393.564C654.259,424.764 640.579,432.86 618.601,442.074C605.841,447.424 568.19,452.324 549.306,452.324C533.997,452.324 519.758,448.365 505.299,439.184C487.91,428.143 478.602,413.658 479.421,382.28C473.465,406.749 461.727,417.136 446.083,428.557ZM565.562,352.038C565.013,351.022 564.605,349.934 564.21,348.849C563.195,346.059 567.178,345.026 569.113,344.883C570.21,344.802 571.318,344.903 572.414,344.8C573.587,344.69 577.111,343.85 577.727,343.941C578.689,344.083 578.957,345.295 578.965,346.065C578.979,347.483 578.663,349.497 578.033,350.788C576.903,353.106 574.15,353.645 571.876,354.053C567.846,354.59 566.771,354.322 565.562,352.038ZM1245.62,341.29C1244.21,340.763 1239.45,338.913 1240.01,337.967C1240.65,336.892 1246.99,337.11 1248.94,337.059C1252.79,336.96 1260.71,336.771 1261.74,337.797C1262.32,338.381 1260.78,340.517 1260.26,341.156C1257.71,344.112 1253.41,344.246 1245.62,341.29ZM157.557,266.729C157.557,259.474 155.408,256.787 146.541,253.294C144.916,252.633 143.25,252.058 141.549,251.628C140.272,251.305 138.957,251.095 137.64,251.044C136.883,251.015 136.099,251.114 135.394,251.392C133.347,252.199 134.549,255.025 134.991,256.279C136.528,260.637 138.949,264.79 142.51,267.804C146.809,2Line truncated
|
||||
</g>
|
||||
<g id="e">
|
||||
<path id="e_mid" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.143,255.637 847.1,252.2C843.25,239.518 846.7,190.7 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1005.8,179.4 1009,194 1009.7,207C1010.2,217 1010.1,218.8 1008.6,220.2C1004.6,224.3 989.2,226 957,226C935.5,226.1 902.8,224.6 901.1,223.6C900.7,223.3 899.4,223.7 898.4,224.5C896.8,225.6 896.5,227 896.6,232.7C896.8,240.8 898.2,243.9 904.2,249.6C910,255.1 914,257.4 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C948.3,257.2 950.1,254.9 954,247.9C957.6,241.1 959.3,240.3 971.5,239.6C976.5,239.2 984.7,238.5 989.8,237.9C1001.6,236.4 1009.8,237.1 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310ZM953.301,188.795C960.3,185.245 960.401,182.995 954.301,177.295C951.701,174.995 946.501,171.395 942.701,169.395C933.201,164.395 926.301,164.295 918.001,168.995C908.701,174.195 903.101,181.095 905.501,184.395C907.401,186.995 913.201,190.095 917.601,190.895C920.201,191.395 928.201,191.695 935.301,191.495C946.801,191.295 948.901,190.995 953.301,188.795Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<path id="e_bottom" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.643,256.913 847.099,252.006C846.316,249.515 845.963,246.467 845.849,244.662C845.849,244.662 850.035,243.131 852.171,241.133C854.492,238.961 857.52,234.318 859.421,233.824C863.646,232.725 867.463,245.149 868.323,245.671C869.184,246.193 878.128,246.496 879.014,245.471C883.406,240.386 890.428,236.145 893.431,240.239C895.241,242.707 897.537,247.018 900.157,248.101C901.106,248.493 902.327,248.032 902.327,248.032C902.327,248.032 904.74,250.108 904.913,250.268C910.341,255.292 914.39,257.524 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C947.145,257.97 949.06,256.059 951.478,252.215C952.245,250.997 957.62,253.098 965.253,249.516C976.375,244.298 977.437,240.052 981.251,242.813C985.726,246.054 987.611,245.008 993.844,245.324C1004.38,245.859 1005.31,237.213 1008.93,238.352C1010.13,238.732 1011.15,238.9 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="e_top" d="M1006.3,184.38C1006.56,185.396 1000.28,179.352 993.999,180.776C981.283,183.657 983.188,189.019 978.097,189.873C971.966,190.902 967.482,179.035 966.858,181.812C965.881,186.162 963.835,190.772 957.481,186.227C957.127,185.974 959.509,185.207 958.376,182.235C956.295,176.779 938.186,164.162 927.852,165.608C916.427,167.206 903.439,178.535 905.164,183.785C905.926,186.105 905.637,190.321 900.038,190.094C890.009,189.825 889.385,179.676 882.167,180.827C875.385,181.909 871.592,192.172 867.226,195.781C864.545,197.998 862.159,187.096 854.763,187.009C851.701,186.973 850.448,189.405 849.092,190.668C848.337,191.371 847.4,191.225 847.423,190.806C847.599,187.628 847.793,185.319 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1003.84,176.188 1005.16,179.888 1006.3,184.38Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="m">
|
||||
<path id="m_mid" d="M846,189.4C847.264,199.322 847.132,207.189 846.485,223.235C845.823,239.664 843.607,254.573 843,256.9C839.9,269.1 836.1,276.7 830.4,282.3C822.8,289.6 816.5,291.9 807.4,290.5C803.4,289.9 801.9,288.9 796.1,283.2C787.9,275 784.4,268.1 783.6,258.5C782.9,251.3 783.7,244.8 788.4,220.7C789.7,213.6 791.2,203.5 791.5,198.1C792.2,188.9 792.1,188.1 789.6,183.2C785.1,174.3 780.1,174.3 778.5,183.3C776.4,195 768,227 765.9,231.5C761.1,241.7 753.7,244.1 746.1,238.1C742.3,235.1 734.2,223.5 722.7,205C720.2,200.8 716.4,195.5 714.4,193.1C711.1,189.3 710.6,189 709.2,190.4C707.2,192.4 705.325,202.128 708,210.6C709.2,214.4 720.1,235 722.5,238C723.8,239.6 728.2,248.1 732.1,256.5C736.5,265.9 735.5,282.2 729.9,293.3C726.9,299.2 720.3,305.8 715.1,308.1C709.1,310.8 696.3,311.2 690.7,308.7C685.6,306.5 676.2,296.8 672.4,290C664.1,275.2 657.7,253 655.9,233C652.6,197.5 661.7,158.7 676.7,143.6C685,135.3 697,130 707.8,130C713.8,130 715.3,130.4 720.9,133.8C724.4,135.8 729.1,139.7 731.4,142.4C737.5,149.7 738.575,152 741,152C743.425,152 744.906,146.517 747.035,140.264C748.982,134.546 748.673,131.427 753,127.1C761.5,118.6 788.3,115.5 803,121.2C817.6,126.9 831.9,143.9 838.9,163.7C841.5,171 844.877,180.584 846,189.4Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<path id="m_bottom2" d="M784.747,240.624C784.97,239.227 789.015,246.383 795.137,249.278C796.446,249.897 803.677,239.162 813.561,239.128C817.19,239.116 819.823,239.677 826.503,249.191C827.796,251.032 832.249,251.375 838.213,249.248C843.048,247.524 844.847,244.272 844.794,244.734C844.057,251.133 843.314,255.697 843,256.9C839.9,269.1 836.1,276.7 830.4,282.3C822.8,289.6 816.5,291.9 807.4,290.5C803.4,289.9 801.9,288.9 796.1,283.2C787.9,275 784.4,268.1 783.6,258.5C783.15,253.872 783.32,249.533 784.747,240.624Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="m_bottom1" d="M672.4,290C666.334,279.184 658.271,249.256 658.271,249.256C662.429,251.073 664.693,251.869 667.029,250.052C669.744,247.94 671.843,239.75 675.661,241.393C678.732,242.716 682.602,250.331 685.225,251.574C689.194,253.455 692.039,244.353 695.927,244.091C704.321,243.523 709.548,245.795 712.551,240.915C714.756,237.332 719.169,239.268 719.746,239.748C722.402,241.958 722.921,249.45 726.902,250.295C728.356,250.603 728.653,249.306 728.653,249.306C728.653,249.306 730.964,254.053 732.1,256.5C736.5,265.9 735.5,282.2 729.9,293.3C726.9,299.2 720.3,305.8 715.1,308.1C709.1,310.8 696.3,311.2 690.7,308.7C685.6,306.5 676.2,296.8 672.4,290Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="m_top" d="M844.298,180.688C844.359,180.966 841.662,182.5 840.768,183.543C837.468,187.395 839.789,194.766 836.494,196.652C833.606,198.305 831.293,196.178 830.836,195.771C826.592,191.993 822.374,181.476 813.086,182.034C805.358,182.498 800.722,191.352 795.553,190.302C792.373,189.656 790.05,184.081 789.6,183.2C787.042,178.142 784.793,176.364 782.536,176.673C781.816,176.772 780.123,177.75 779.092,180.869C778.99,181.437 777.228,179.526 776.236,180.688C772.776,184.74 771.742,182.295 771.115,183.105C768.828,186.058 766.691,186.108 764.352,185.654C761.643,185.128 759.828,180.544 759.828,180.544C759.331,185.186 759.057,192.943 752.243,187.914C748.327,185.023 745.465,181.004 740.929,180.841C734.103,180.597 726.77,184.734 726.659,187.963C726.4,195.484 723.064,195.512 722.43,195.489C718.648,195.354 714.293,189.111 712.821,187.219C711.032,184.92 702.674,177.92 699.949,179.305C690.386,184.166 697.318,189.758 692.972,195.58C691.83,197.109 688.043,197.584 685.191,195.83C680.903,193.193 677.354,187.35 677.112,187.093C674.504,184.33 672.556,184.316 670.228,183.052C668.574,182.154 666.941,180.418 666.46,178.651C666.083,177.265 659.974,178.43 659.974,178.43C659.974,178.43 663.822,165.252 666.314,159.702C669.302,153.05 672.802,147.524 676.7,143.6C685,135.3 697,130 707.8,130C713.8,130 715.3,130.4 720.9,133.8C724.4,135.8 729.1,139.7 731.4,142.4C737.5,149.7 738.527,152 741,152C743.473,152 744.902,146.528 747.091,140.104C749.033,134.405 748.787,131.313 753,127.1C761.5,118.6 788.3,115.5 803,121.2C817.6,126.9 831.9,143.9 838.9,163.7C841.5,171 842.201,171.134 844.298,180.688Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="a">
|
||||
<path id="a_mid" d="M572,312.9C562.5,311.9 549,308.8 541.5,305.8C512.8,294.6 497.2,279.9 494,260.9C491.4,245.8 495.4,234 508.9,216.1C512.8,211 524,202.5 532.2,198.5C538.5,195.4 540.8,194.8 549.2,194.3C558.5,193.8 559.3,193.9 567.2,196.9C571.8,198.7 578,201.5 581.2,203.1C584.3,204.7 588.8,206.3 591.2,206.6C595.2,207.2 595.8,206.9 600,203.2C604.3,199.4 604.5,199 604.4,193.8C604.3,190.8 603.5,186.8 602.6,184.9C600.5,180.5 592,171 587.1,167.6C583.4,165 582.9,164.9 577.4,165.9C574.2,166.5 569.8,167.9 567.6,169.1C562.9,171.5 556.683,177 553,180C550.331,182.174 549.6,183.6 545.5,187.1C539.2,192.5 537,193.7 532.2,194.7C526.4,195.8 518,195.1 514.2,193.1C507.6,189.5 503.7,179.8 503.6,166.5C503.5,161.3 503.9,159.9 506.8,155.7C512.1,148.1 517.8,143.5 528.5,138.1C539,132.8 554.474,127.387 561.5,125.6C564.109,124.936 570.804,123.32 575.5,122.5C598.337,118.514 611.4,121 618.9,127.1C621.2,129 624.9,132.9 627.1,135.8C631.9,142.1 637.536,150.262 641,158.4C644.817,167.367 647.7,177.8 650,189.6C651.9,199.5 652.1,203.5 651.7,224.1C651.3,249.4 650.8,253.2 645,270.1C640,284.4 636.4,290.7 628.6,298.6C617.5,309.7 610.1,312.7 592,313.4C585.7,313.7 576.7,313.5 572,312.9ZM567.755,268.525C575.51,271.324 583.351,271.527 587.899,269.579C589.479,268.902 591.164,266.937 592.223,262.913C592.426,262.143 592.324,261.514 592.304,261.321C591.937,257.712 589.139,253.47 583.808,248.755C573.008,239.055 564.01,238.19 556.01,245.59C552.448,248.878 551.036,251.637 551.243,254.279C551.338,255.493 551.882,256.923 552.534,258.094C555.464,263.356 560.298,265.833 567.755,268.525Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<path id="a_bottom" d="M572,312.9C562.5,311.9 549,308.8 541.5,305.8C512.8,294.6 497.2,279.9 494,260.9C493.141,255.911 493.689,246.675 493.689,246.675C493.689,246.675 495.325,248.94 501.408,241.381C507.478,233.836 511.537,250.643 518.47,250.784C521.065,250.837 527.583,251.483 537.818,240.495C542.151,235.843 548.148,237.689 547.719,242.085C546.95,249.973 551.183,254.274 551.183,254.274C551.183,254.274 552.168,259.697 556.275,262.709C562.736,267.447 574.753,272.527 586.355,270.15C590.226,269.358 591.729,265.248 592.219,262.694C592.99,258.683 588.269,253.301 588.269,253.301C588.269,253.301 592.037,254.075 595.453,252.172C600.519,249.35 606.347,238.613 613.392,231.394C619.074,225.574 626.73,233.703 624.93,241.849C624.609,243.299 628.333,247.824 629.436,248.001C630.592,248.186 635.198,242.505 640.86,241.09C646.792,239.608 651.128,242.736 651.084,243.37C650.393,253.336 648.886,258.778 645,270.1C640,284.4 636.4,290.7 628.6,298.6C617.5,309.7 610.1,312.7 592,313.4C585.7,313.7 576.7,313.5 572,312.9Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<path id="a_top" d="M637.883,182.841C634.645,185.825 631.737,194.187 627.82,195.049C626.517,195.336 624.555,191.126 624.14,190.372C621.597,185.752 619.167,178.445 610.353,179.547C606.464,180.033 606.531,183.603 605.469,184.566C603.802,186.08 602.681,185.07 602.6,184.9C600.5,180.5 592,171 587.1,167.6C583.4,165 582.9,164.9 577.4,165.9C574.2,166.5 569.8,167.9 567.6,169.1C562.9,171.5 553,180 553,180C553,180 550.082,178.457 544.517,182.659C541.055,185.274 540.297,183.433 538.473,184.352C537.187,185 536.27,187.865 533.861,188.367C532.748,188.578 531.188,185.674 528.794,185.518C525.876,185.329 525.618,189.352 520.037,188.501C517.69,188.143 518.08,186.225 516.053,185.355C514.322,184.612 512.432,184.995 512.353,184.722C511.192,180.698 507.871,180.143 506.508,180.332C506.226,180.371 505.231,179.721 505.143,179.383C504.168,175.637 503.636,171.303 503.6,166.5C503.5,161.3 503.9,159.9 506.8,155.7C512.1,148.1 517.8,143.5 528.5,138.1C539,132.8 554.807,127.289 561.5,125.6C563.668,125.053 572.782,122.993 575.5,122.5C598.309,118.36 611.4,121 618.9,127.1C621.2,129 624.9,132.9 627.1,135.8C634.648,145.749 637.642,151.509 641,158.4C643.885,164.321 647.246,177.147 647.246,177.147C647.246,177.147 640.676,180.268 637.883,182.841Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="g">
|
||||
<path id="g_mid" d="M362.735,219.125C362.435,219.125 360.2,185.6 360.2,185.6L359.8,174.1C359.2,159.7 360.2,152.2 363.6,147.3C365,145.2 367.3,141.3 368.7,138.5C371.8,132.3 376.3,127.5 381.5,124.7C387.7,121.4 405.8,121.7 425.5,125.5C433.8,127.1 442.5,128.4 445,128.4C449.2,128.5 449.5,128.3 449.5,125.8C449.5,121.8 452,120 459.1,119C466.5,117.9 474.8,119.3 477.9,122.1C480.9,125 485.7,142.9 488.4,162C495.4,211.7 492.6,270.8 482.4,291.2C477.5,300.8 463.1,309.2 447,311.7C433.2,313.8 406.2,313 396,310C382,306 373,298.9 367.5,287.6C362.8,277.8 361.3,267.8 362.8,256.5C364.3,244.8 366.1,241.3 371.4,239.9C377.3,238.2 384.8,237.8 390,238.9C392.5,239.5 396.6,240.2 399.2,240.5C402.8,241 404.9,242 407.6,244.6C411.2,248 411.3,248.1 410.7,254.1C409.9,260.8 411.3,265.3 415.1,268.9C417.9,271.5 422.9,271.6 430.8,269.4C442,266.2 448,261.9 451.2,254.9C453.7,249.2 455.4,234.6 454.5,226.3L453.7,219.5L452.5,222.9C451.1,227.1 447.7,229.8 442.4,231C434.9,232.7 408.3,234.2 392,233.8C371.8,233.4 369.2,232.5 365.2,224.3C363.8,221.4 363.135,219.125 362.735,219.125ZM432.9,194.5C444.8,188.4 446.3,164.7 435.4,156.1C430.1,151.9 412.4,153.9 408,159.2C405.3,162.5 403.1,169.4 402.4,177C401.4,187.4 405,192.8 415,196.1C418.6,197.3 429.4,196.4 432.9,194.5Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
<g id="g_bottom" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M609.747,341.481C610.964,339.109 612.162,338.335 614.329,338.335C616.882,338.335 619.972,335.648 627.226,327.05C632.466,320.87 637.705,315.362 638.78,314.959C643.885,312.944 645.9,314.153 647.512,319.929C649.796,328.662 653.692,334.304 657.588,334.304C657.94,334.304 658.254,334.312 658.534,334.337C661.058,332.218 662.512,332.31 662.068,337.295C659.974,360.757 656.083,380.036 650.602,390.998C644.02,403.895 624.674,415.18 603.044,418.539C595.549,419.679 585.155,420.183 574.525,420.112C573.01,420.17 571.74,420.186 570.802,420.151C570.26,420.122 569.506,420.075 568.595,420.013C554.913,419.65 541.662,418.353 534.529,416.255C515.72,410.881 503.629,401.342 496.24,386.161C489.926,372.996 487.911,359.561 489.926,344.38C490.165,342.517 490.409,340.809 490.667,339.241C490.838,338.201 494.815,338.215 495.63,337.7C497.22,336.696 500.045,334.743 502.42,332.558C512.227,323.288 516.526,320.601 521.228,321.139C525.662,321.542 527.14,323.154 528.349,329.199C529.289,333.633 534.663,335.648 545.948,335.648L554.648,335.784C554.648,335.784 554.637,336.793 554.562,337.938C554.479,339.198 554.33,340.628 554.277,341.156C553.202,350.157 555.083,356.203 560.188,361.039C563.95,364.532 570.667,364.666 581.281,361.711C596.327,357.412 604.388,351.635 608.687,342.231C608.909,341.723 609.267,341.493 609.747,341.481Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="g_top" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M597.026,239.487C597.026,239.487 599.523,218.469 587.545,209.654C577.717,202.272 553.891,209.173 550.595,213.602C544.101,222.331 543.471,238.365 542.995,239.078C542.995,239.078 533.934,245.775 530.978,251.552C526.411,260.687 519.708,260.952 517.424,251.682C517.021,249.936 513.839,247.652 511.153,246.443C508.734,245.368 506.113,242.49 505.172,241.281C502.62,238.191 500.539,239.726 493.15,245.771L486.633,250.382L486.433,249.13L485.896,233.68C485.09,214.334 486.433,204.259 491.001,197.676C492.882,194.854 495.972,189.615 497.852,185.853C502.017,177.524 508.063,171.075 515.049,167.314C523.378,162.88 547.694,163.283 574.16,168.389C585.311,170.538 596.999,172.285 600.357,172.285C606,172.419 606.403,172.15 606.403,168.792C606.403,163.418 609.762,161 619.3,159.656C629.242,158.178 640.392,160.059 644.557,163.821C648.587,167.717 655.036,191.765 658.663,217.424C660.426,229.944 661.727,242.907 662.585,255.887C662.213,251.632 661.729,249.145 661.138,249.234C655.227,249.905 650.871,249.264 647.378,245.368L643.482,241.203C643.482,241.203 638.306,246.676 632.261,247.563C628.637,248.095 623.33,244.428 623.33,244.428C621.229,245.461 620.758,248.18 619.07,249.671C613.521,254.573 611.508,257.594 605.597,246.309C602.416,232.726 598.706,234.687 597.026,239.487" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="y" transform="matrix(0.994804,0,0,1,0.995008,0)">
|
||||
<g id="y_mid" transform="matrix(1,0,0,1,0.799493,0.199139)">
|
||||
<path d="M193.432,190.684C193.268,190.41 191.29,186.27 190.965,180.068C190.35,168.365 191,150.35 191,149.5C191,146 193.8,138.1 196.8,133.4C199.6,128.8 210.1,121.4 216.2,119.6C218.2,119 230.6,117.1 235,119.1C240.6,121.6 243.6,124.4 246.2,129.4C248.6,134.1 248.2,138.2 243.9,152C242.3,157.2 241,162.2 241,163.1C241,165.6 245.7,170.8 249.9,172.9C260.2,178.1 279.9,177.5 289.1,171.8C294,168.9 297,164.8 297,161.4C297,160.4 295.4,156.3 293.5,152.3C288.9,143.1 288.1,136.7 290.9,132.3C295.3,125.3 311.8,115.4 320.8,114.3C330.4,113.2 339.3,119.5 347.6,133.5C352.1,140.9 359.044,156.7 359.044,161.4C359.144,164.9 362.322,218.917 361.922,218.917C361.622,218.917 361,222.7 360.7,227.3C359.7,242.8 355.4,260.6 349.7,273C344.2,285.2 343.5,286.2 336.9,292.4C321.2,306.9 303.8,313 278.2,313C245.9,313 218.3,302.8 201.3,284.7C193.4,276.2 190.6,269.3 191.3,259.7C192.2,246.7 201.8,232.5 211.4,230.1C218.2,228.4 230.5,230.6 237,234.7C239.9,236.5 243.9,241 244,242.5C244,244.8 250.3,250.9 253.7,252.1C263,255.1 283.5,249.3 291.6,241.4C299.8,233.3 300.6,227.9 294.3,224.7C288.6,221.8 283.7,221.9 268.8,225.1C252.3,228.6 243.2,229 231.1,226.6C214,223.3 206.1,217.3 198.5,201.7C196,196.6 193.553,190.886 193.432,190.684Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="y_bottom" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M267.39,327.472C267.46,327.35 275.371,321.969 279.139,322.885C281.02,323.288 285.453,326.512 288.946,329.871C294.723,335.648 295.395,335.917 299.291,334.573C301.575,333.767 306.277,330.946 309.635,328.393C317.293,322.482 320.786,322.348 324.682,327.587C326.428,329.871 328.444,331.617 329.25,331.617C330.19,331.617 333.146,333.23 335.967,335.11C342.819,339.947 350.342,341.156 363.239,339.544C380.972,337.394 382.585,336.991 385.943,333.901C387.824,332.289 391.183,329.468 393.467,327.587C395.885,325.706 400.184,322.213 403.139,319.929C411.066,313.347 418.992,314.287 418.992,321.676C418.992,323.288 419.529,324.9 420.335,325.169C421.007,325.438 421.813,326.915 422.082,328.528C422.888,333.901 425.709,335.782 432.292,335.513C439.681,335.11 441.831,334.036 450.429,326.512C461.042,317.243 466.147,317.646 468.297,327.99C469.103,332.021 473.267,335.648 477.163,335.648C478.234,335.648 479.515,336.385 480.074,337.3C481.612,336.679 483.084,337.986 483.014,338.272C480.464,348.718 477.159,358.64 473.401,366.815C466.012,383.205 465.072,384.548 456.205,392.878C435.113,412.358 411.737,420.553 377.344,420.553C333.951,420.553 296.872,406.849 274.033,382.533C263.42,371.114 259.658,361.844 260.599,348.947C261.104,341.645 263.653,334.061 267.39,327.472Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="y_top" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M260.323,244.206C260.248,243.485 260.189,242.737 260.148,241.966C259.322,226.242 260.196,202.04 260.196,200.899C260.196,196.197 263.957,185.584 267.988,179.269C271.749,173.089 285.856,163.148 294.051,160.73C296.738,159.924 313.396,157.371 319.308,160.058C326.831,163.417 330.861,167.178 334.354,173.896C337.578,180.21 337.041,185.718 331.264,204.257C329.115,211.243 327.368,217.961 327.368,219.17C327.368,222.528 333.682,229.514 339.325,232.336C353.162,239.321 379.628,238.515 391.988,230.858C398.571,226.962 402.601,221.454 402.601,216.886C402.601,215.542 400.452,210.034 397.899,204.661C391.719,192.301 390.645,183.703 394.406,177.792C400.317,168.387 422.484,155.087 434.575,153.609C447.472,152.132 459.429,160.595 470.58,179.404C476.625,189.345 485.954,210.572 485.954,216.886C486.019,219.14 487.72,249.612 487.72,249.612C487.72,249.612 479.04,257.13 476.697,258.235C472.665,260.135 470.559,257.798 468.968,253.026C466.55,245.637 463.326,242.816 456.34,242.01C451.235,241.472 450.026,241.875 446.533,245.234C441.562,250.07 435.919,253.698 433.233,253.698C429.471,253.698 425.709,248.055 425.709,242.681C425.709,239.86 425.038,237.576 424.231,237.576C423.56,237.576 420.067,239.726 416.708,242.278C409.588,247.786 407.573,248.055 403.408,244.159L400.318,241.338L394.676,247.518C388.093,254.772 381.913,255.981 378.151,250.742C377.076,248.995 374.658,245.906 372.912,243.89C369.687,240.129 369.687,240.129 364.582,242.144C361.761,243.353 358.537,245.502 357.596,247.115C355.984,249.398 354.372,249.667 346.849,249.398C339.863,249.13 337.848,249.533 336.907,251.414C334.623,255.31 331.534,253.966 322.667,245.502C312.86,236.098 310.979,235.964 303.456,244.293C298.753,249.398 291.768,253.698 288.275,253.698C287.334,253.698 284.647,251.682 282.229,249.398C275.915,242.681 269.601,239.726 263.958,240.8C261.567,241.256 260.148,242.144 260.148,242.144C260.148,242.144 260.311,243.823 260.323,244.206Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="P">
|
||||
<g id="p_mid" transform="matrix(1,0,0,1,-0.159349,-0.379322)">
|
||||
<path d="M66,313.1C57.5,312 51.3,310 49.1,307.5C45.5,303.4 39.5,274.1 37.5,250.5C37.1,246.7 36.7,243.3 36.5,243C35.5,241.4 34.5,213.7 34.5,189.5C34.5,161.3 32.65,141.124 56.083,126.221C65.592,120.172 87.72,114.795 121.454,117.51C157.729,120.43 174.2,129.4 180.7,136.1C186.7,142.3 187.872,144.144 191.065,153.822C192.281,157.507 191.415,172.976 191.6,180.036C191.764,186.27 192.27,192.5 191.6,198.7C190.817,205.95 189.8,212.2 186.3,223.5C184.6,228.9 177.4,238.3 170.6,243.7C168.3,245.5 166,247.4 165.4,247.9C162.9,249.9 154.5,253.2 147.2,255C142.2,256.2 130.855,257.29 123.466,257.363C116.361,257.434 107.076,258.199 103.11,259.676C101.328,260.339 99.971,261.085 98.731,263.093C98.358,263.699 99.022,267.22 99.317,268.614C100.214,272.851 100.587,275.152 101.389,278.383C102.902,284.481 106.707,299.147 104.51,303.459C100.548,311.236 90.6,313.1 82.3,313.5C76.9,313.7 69.6,313.5 66,313.1ZM123.7,210.9C135.1,206.7 142,195.2 142,180.5C142,173.8 141.8,173.1 138.5,169.3C134.3,164.4 128.8,162 119.9,161.3C103,159.9 92.2,169.4 91.2,186.7C90.8,193.1 91.1,194.5 93.4,198.4C99.7,209.2 113.3,214.8 123.7,210.9Z" style="fill:rgb(106,240,42);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<path id="p_bottom" d="M98.4,309.2C91.07,313.505 79.043,314.066 67.094,313.199C61.497,312.793 49.5,309.727 47.8,305.527C45.1,298.927 40.781,279.135 38.381,260.035C37.381,252.635 38.2,251.6 39.8,249.5C43.3,245.1 51.1,239 53.3,239C54.6,239 57,240.3 58.8,242C63.6,246.4 66,246.6 71.5,243.4C74.1,241.9 76.4,240.1 76.7,239.4C77,238.6 77.8,238 78.5,238C79.1,238 80.5,237.1 81.5,236C83.9,233.3 88.6,233.4 90,236.1C90.7,237.2 91,240 90.8,242.3L90.5,246.5L95.4,246.4C99,246.4 100.6,245.9 101.9,244.3C103.7,242 107.1,240 109.4,240C110.2,240 111.4,241.6 112.1,243.5C113.6,247.6 114.7,247.5 121.5,242.9C128.1,238.5 132.3,239.4 133.4,245.5C134.1,248.9 134.2,249 139,249C143.5,249 144.3,248.6 148.5,244.6C152.9,240.3 156.6,238.2 157.7,239.4C158,239.7 158.5,241.4 158.9,243.2C159.4,245.5 160.2,246.6 162,247L164.683,247.897C164.683,247.897 163.185,248.928 161.377,249.743C158.626,250.983 155.11,252.213 154.7,252.4C149,255 137.7,256.7 124.4,256.9C107.4,257.2 102.3,259.117 98.5,262.9C98.212,264.732 99.6,271.5 101.6,279.6C103.6,287.8 105.2,296.2 105.3,298.2C105.5,302.4 102.9,306.6 98.4,309.2Z" style="fill:rgb(193,253,32);fill-rule:nonzero;"/>
|
||||
<g id="p_top" transform="matrix(0.744353,0,0,0.744353,-0.610017,-0.116225)">
|
||||
<path d="M49.619,242.099C47.214,240.103 46.19,237.641 47.458,220.097C47.854,214.616 48.739,207.932 50.114,202.532C58.737,168.674 94.056,153.306 155.334,156.748C219.585,160.358 250.468,177.263 257.292,206.299C258.589,211.816 258.238,216.423 258.252,221.969C258.255,223.054 257.895,227.086 257.918,233.93C257.931,237.542 258.025,242.243 258.055,242.732C257.078,243.011 251.337,246.879 249.916,246.583C248.495,246.287 245.572,244.647 243.422,242.938C236.122,237.137 224.486,240.586 217.454,250.635C209.612,261.843 202.655,259.252 199.584,243.98C199.011,241.13 191.289,238.099 191.289,236.256C191.289,229.648 182.534,222.56 180.114,221.335C172.905,217.689 163.343,215.524 153.974,216.339C139.038,217.636 122.995,228.356 122.995,252.627C122.995,259.04 113.957,244.373 114.718,242.25C115.654,239.641 111.922,241.155 108.287,244.859C103.361,249.878 92.087,257.247 90.353,256.582C87.407,255.451 90.007,247.061 94.723,242.48C99.323,238.014 98.077,235.576 92.823,238.761C90.995,239.869 86.674,241.791 83.219,243.033C78.693,244.66 76.129,246.311 74.044,248.944C68.344,256.141 51,252.863 51,244.588C51,243.849 50.379,242.729 49.619,242.099Z" style="fill:rgb(8,223,28);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="c" transform="matrix(0.312039,0,0,0.312039,390.718,399.086)">
|
||||
<g id="c-extrusion" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M721.851,550.457C727.928,550.457 827.348,533.112 830.075,576.298C836.462,677.412 730.733,884.128 643.719,942.226C595.227,974.604 509.776,1019.62 389.313,1023.31C312.833,1025.65 295.55,1021.96 261.937,1013.38C236.346,1007.04 150.829,957.052 116.958,932.22C75.565,901.872 33.515,807.197 25.506,778.197C-30.302,576.1 8.064,139.815 185.865,78.764C192.119,76.617 247.501,27.528 308.818,14.681C447.417,-14.357 522.335,18.904 534.822,24.158C595.781,49.808 653.353,90.498 660.872,96.816C668.39,103.134 756.34,187.743 787.01,250.792C798.526,274.467 805.342,296.115 812.092,339.024C835.733,489.315 490.214,504.804 477.641,401.466C475.891,387.082 466.894,342.731 456.232,332.791C439.136,316.855 442.025,311.346 402,314.612C351.26,318.752 329.799,353.696 326.218,394.37C315.165,519.909 301.873,569.753 352.679,610.82C362.298,618.595 411.291,670.367 464.573,651.936C500.5,639.508 508.146,590.677 513.668,585.155C518.691,580.132 522.063,577.845 526.68,573.227C533.254,566.653 579.914,558.047 596.074,558.047C599.784,558.047 633.609,558.462 634.024,558.047C638.412,553.659 669.719,560.303 673.058,556.963C678.054,551.967 710.725,550.457 721.851,550.457Z" style="fill:rgb(0,1,0);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-middle" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M291,519.706C288.27,524.9 287.724,533.405 288.031,551.262C288.916,587.817 295.108,601.806 321.644,627.53C347.296,652.351 364.987,662.73 406.562,676.269C451.674,691.613 473.788,691.613 495.46,676.269C516.689,661.828 524.65,651.448 541.899,619.858C557.821,589.17 565.339,585.56 619.297,582.401C641.411,580.596 677.678,577.437 700.234,574.729C752.423,567.96 788.69,571.119 796.651,581.95C814.342,606.771 791.786,680.33 743.578,755.696C724.56,785.029 644.95,864.907 619.74,879.8C607.798,887.02 583.031,896.497 564.455,901.01C518.458,912.292 421.157,911.841 371.179,900.108C261.937,873.933 177.904,821.132 123.946,744.413C100.505,710.567 76.622,664.535 69.103,639.263C50.742,622.578 51.964,364.924 73.084,332.839C100.505,197.904 184.538,98.621 309.26,54.846C345.97,42.21 354.373,40.856 402.581,40.856C510.497,41.307 590.549,77.41 675.909,165.411C709.522,199.709 722.348,216.858 732.963,240.325C740.482,257.023 751.096,277.782 756.404,286.356C770.999,310.726 791.222,347.507 768.566,382.281C746.071,416.806 558.984,414.773 552.464,388C545.983,361.388 535.596,349.417 531,317C517.625,222.658 355.13,238.706 317,302C287.5,350.969 291,519.706 291,519.706Z" style="fill:rgb(153,70,242);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-bottom" transform="matrix(4.52766,0,0,4.51288,-3764.68,-498.884)">
|
||||
<path d="M930.5,311C917.7,310.3 914.2,309.7 902.5,305.9C876.6,297.5 853.2,273.9 846.8,249.7C846.8,249.7 845.894,245.341 846.511,242.24C846.796,240.806 850.5,240.4 850.5,240.4C853.3,237.9 856.6,235.2 857.9,234.3C860.1,232.7 860.3,232.7 862.1,235.1C863.1,236.4 864.7,239.2 865.6,241.3C867.2,244.9 867.5,245 872.5,245C877,245 878,244.6 881,241.5C883.4,239 885.3,238 887.5,238C891.1,238 892.8,239.2 895.9,243.8C897.1,245.5 898.6,247 899.2,247C899.7,247 902.3,248.8 904.8,251.1C910.3,255.9 918.9,260.1 928.2,262.6C937.2,265 941.7,263.7 948.1,256.9C951,253.9 953.6,252 955,252C956.9,252 969.5,246.2 974.9,242.9C976.4,241.9 977.9,242 982.1,243.2C985.1,244 989.5,244.6 992,244.4C997.3,244.1 1003.9,241.5 1004.7,239.5C1006.2,235.3 1013,239.7 1013,244.8C1013,256.1 999.2,280.6 985.3,294.1C974.6,304.5 965.9,309.1 954.5,310.5C944.9,311.6 943.4,311.7 930.5,311Z" style="fill:rgb(198,146,254);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="c-top" transform="matrix(1.02371,0,0,1,-0.0419524,0)">
|
||||
<path d="M65.546,358.465C65.203,360.038 69.738,337.922 73.084,332.839C100.505,197.904 184.538,98.621 309.26,54.846C345.97,42.21 354.373,40.856 402.581,40.856C510.497,41.307 590.549,77.41 675.909,165.411C709.522,199.709 722.348,216.858 732.963,240.325C740.482,257.023 787.585,339.53 751.194,280.69C738.368,277.982 702.522,280.239 683.504,289.716C670.236,296.034 656.083,305.511 651.66,310.475C639.719,324.014 621.585,321.306 603.894,303.254C589.299,288.813 588.414,288.362 585.761,296.936C582.974,305.822 540.505,306.909 531,306.227C531,306.227 530.735,309.837 530.802,315.677C516.101,222.809 354.951,239.003 317,302C310.99,311.977 306.349,326.926 302.77,344.406L304,325.997C293.036,325.642 271.03,351.475 269.013,348.183C260.61,335.095 230.977,313.434 221.689,313.434C210.632,313.434 181.884,342.767 166.847,368.491C157.117,385.64 150.04,384.286 130.58,363.075C112.447,343.219 97.852,340.06 79.718,352.244L65.546,358.465Z" style="fill:rgb(104,7,207);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="e1" serif:id="e" transform="matrix(1.43823,0,0,1.43823,-549.373,239.665)">
|
||||
<g id="e-shadow" transform="matrix(0.744353,0,0,0.744353,-1.87816,0.159385)">
|
||||
<path d="M1161.47,407.188C1143.12,390.566 1134.18,360.225 1130.7,335.715C1127.31,311.881 1125.42,237.207 1141.98,209.558C1148.97,198.556 1165.01,183.286 1175.53,174.05C1182.12,168.269 1200.67,158.118 1209.12,155.481C1268.43,136.969 1328.89,170.649 1358.63,222.959C1370.14,243.212 1371.18,267.401 1373.26,289.896C1373.97,297.61 1374.55,299.828 1368.76,305.69C1367.38,307.088 1359.91,309.888 1360.87,310.456C1362.22,311.256 1370.29,313.789 1372.51,316.185C1377.62,321.709 1375.37,337.912 1373.56,344.025C1366.05,369.409 1355.27,388.28 1328.64,416.762C1307.42,439.455 1284.32,447.168 1251.85,447.17C1199.55,447.173 1171.68,416.438 1161.47,407.188ZM1245.62,341.29C1244.21,340.763 1239.45,338.913 1240.01,337.967C1240.65,336.892 1246.99,337.11 1248.94,337.059C1252.79,336.96 1260.71,336.771 1261.74,337.797C1262.32,338.381 1260.78,340.517 1260.26,341.156C1257.71,344.112 1253.41,344.246 1245.62,341.29Z" style="fill:rgb(0,1,0);"/>
|
||||
</g>
|
||||
<path id="e-mid" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.143,255.637 847.1,252.2C843.25,239.518 846.7,190.7 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1005.8,179.4 1009,194 1009.7,207C1010.2,217 1010.1,218.8 1008.6,220.2C1004.6,224.3 989.2,226 957,226C935.5,226.1 902.8,224.6 901.1,223.6C900.7,223.3 899.4,223.7 898.4,224.5C896.8,225.6 896.5,227 896.6,232.7C896.8,240.8 898.2,243.9 904.2,249.6C910,255.1 914,257.4 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C948.3,257.2 950.1,254.9 954,247.9C957.6,241.1 959.3,240.3 971.5,239.6C976.5,239.2 984.7,238.5 989.8,237.9C1001.6,236.4 1009.8,237.1 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310ZM953.301,188.795C960.3,185.245 960.401,182.995 954.301,177.295C951.701,174.995 946.501,171.395 942.701,169.395C933.201,164.395 926.301,164.295 918.001,168.995C908.701,174.195 903.101,181.095 905.501,184.395C907.401,186.995 913.201,190.095 917.601,190.895C920.201,191.395 928.201,191.695 935.301,191.495C946.801,191.295 948.901,190.995 953.301,188.795Z" style="fill:rgb(153,70,242);fill-rule:nonzero;"/>
|
||||
<path id="e-bottom" d="M915.4,310C890.7,304.2 871.7,292.5 859.5,275.5C854.2,268 848.643,256.913 847.099,252.006C846.316,249.515 845.963,246.467 845.849,244.662C845.849,244.662 850.035,243.131 852.171,241.133C854.492,238.961 857.52,234.318 859.421,233.824C863.646,232.725 867.463,245.149 868.323,245.671C869.184,246.193 878.128,246.496 879.014,245.471C883.406,240.386 890.428,236.145 893.431,240.239C895.241,242.707 897.537,247.018 900.157,248.101C901.106,248.493 902.327,248.032 902.327,248.032C902.327,248.032 904.74,250.108 904.913,250.268C910.341,255.292 914.39,257.524 923.4,260.4C933.6,263.8 938.6,263.8 943.5,260.4C947.145,257.97 949.06,256.059 951.478,252.215C952.245,250.997 957.62,253.098 965.253,249.516C976.375,244.298 977.437,240.052 981.251,242.813C985.726,246.054 987.611,245.008 993.844,245.324C1004.38,245.859 1005.31,237.213 1008.93,238.352C1010.13,238.732 1011.15,238.9 1011.6,239.5C1015.6,245 1007.61,267.208 999.6,278C990.85,289.783 973.133,304.867 959.1,310.2C945.483,315.375 926.7,312.6 915.4,310Z" style="fill:rgb(198,146,254);fill-rule:nonzero;"/>
|
||||
<path id="e-top" d="M1006.3,184.38C1006.56,185.396 1000.28,179.352 993.999,180.776C981.283,183.657 983.188,189.019 978.097,189.873C971.966,190.902 967.482,179.035 966.858,181.812C965.881,186.162 963.835,190.772 957.481,186.227C957.127,185.974 959.509,185.207 958.376,182.235C956.295,176.779 938.186,164.162 927.852,165.608C916.427,167.206 903.439,178.535 905.164,183.785C905.926,186.105 905.637,190.321 900.038,190.094C890.009,189.825 889.385,179.676 882.167,180.827C875.385,181.909 871.592,192.172 867.226,195.781C864.545,197.998 862.159,187.096 854.763,187.009C851.701,186.973 850.448,189.405 849.092,190.668C848.337,191.371 847.4,191.225 847.423,190.806C847.599,187.628 847.793,185.319 848,184.3C854.2,154.4 873.2,132.4 901.4,122.7C909.7,119.9 911.6,119.6 922.5,119.6C946.9,119.7 965,127.7 984.3,147.2C991.9,154.8 994.8,158.6 997.2,163.8C998.9,167.5 1001.3,172.1 1002.5,174C1003.84,176.188 1005.16,179.888 1006.3,184.38Z" style="fill:rgb(104,7,207);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snake-tail" transform="matrix(1,0,0,1,0,-19)">
|
||||
<path id="snake_tail_base" d="M359.539,568.196C376.328,592.171 434.458,633.823 472.406,645.044C518.279,658.609 587.405,660.336 679.897,656.156C766.077,652.261 877.439,609.231 885.968,606.044C946.203,583.541 1010.35,581.336 1024.8,581.48C1072.41,581.954 1166.08,591.673 1191.54,640.808C1241.14,736.51 1122.27,841.091 1121.98,841.124C1121.98,841.124 1180.23,735.492 1153.26,686.934C1120.06,627.175 999.275,635.919 914.644,682.241C888.624,696.484 860.366,709.234 855.562,711.402C791.611,740.257 741.065,754.86 723.718,760.028C655.604,780.321 608.2,785.752 597.768,787.339C538.289,796.383 497.033,794.764 478.312,794.054C412.814,791.57 368.605,777.343 347.322,770.155C284.795,749.036 228.899,704.313 207.141,681.184" style="fill:rgb(240,204,0);stroke:black;stroke-width:5px;"/>
|
||||
<g id="snake_tail_light" transform="matrix(1,5.64119e-17,-3.05311e-16,1.01623,2.04636e-12,-12.3165)">
|
||||
<path d="M1129.37,829.496C1133.35,823.075 1168.31,768.787 1171.61,715.148C1172.62,698.912 1170.28,688.498 1168.82,683.297C1168.82,683.289 1167.57,679.069 1165.18,674.411C1158.93,662.202 1150.62,657.932 1149.84,657.275C1148.58,656.213 1147.37,654.623 1141.76,651.159C1129.57,643.644 1118.37,638.218 1106.26,634.457C1106.25,634.451 1098.6,632.137 1084.79,629.965C1075.66,628.529 1065.34,627.435 1060.6,627.17C1005.5,624.09 983.211,634.075 948.278,642.101C928.198,646.714 911.007,652.983 907.838,654.139C888.855,661.062 880.168,665.562 867.741,670.826C856.106,675.755 847.416,679.058 843.487,680.707C832.025,685.518 801.045,698.232 793.103,701.25C748.92,718.042 689.336,732.385 626.096,739.591C621.57,740.106 603.757,741.352 585.499,741.953C524.766,743.953 473.627,738.788 427.225,725.459C418.846,723.053 380.272,714.391 335.632,687.877C306.044,670.303 284.46,651.124 283.438,650.241C269.065,637.82 257.484,625.864 248.863,616.315C248.475,615.886 247.982,615.34 244.376,610.658C240.966,606.231 240.967,606.211 238.523,601.207C236.944,597.975 235.712,594.561 234.814,591.085C233.931,587.661 233.401,584.133 233.206,580.605C233.012,577.1 233.166,573.56 233.653,570.083C234.14,566.605 234.963,563.156 236.112,559.833C237.269,556.489 238.748,553.233 240.539,550.171C242.357,547.063 244.481,544.104 246.889,541.411C246.901,541.399 255.12,533.868 255.128,533.863C258.326,531.945 261.347,529.707 264.723,528.11C268.008,526.556 271.477,525.344 275.01,524.461C278.49,523.591 282.075,523.07 285.66,522.878C289.222,522.687 292.819,522.839 296.353,523.318C299.887,523.797 303.391,524.607 306.769,525.738C310.167,526.876 313.476,528.331 316.588,530.094C319.746,531.883 322.753,533.973 325.489,536.343C331.279,541.356 330.941,541.683 335.67,547.673C336.83,549.142 338.585,552.102 343.596,558.971C363.795,586.657 382.154,601.39 386.972,605.288C410.994,624.724 434.58,635.983 452.398,642.992C452.432,643.005 463.683,647.093 480.134,651.047C497.712,655.271 539.273,664.142 612.616,662.358C617.977,662.228 617.972,662.153 621.297,662.151C631.558,662.143 685.723,662.281 747.011,651.086C769.877,646.91 782.025,643.272 794.319,639.903C826.892,630.978 828.216,630.422 831.991,629.223C861.034,619.998 860.872,618.862 881.638,612.379C908.52,603.986 929.107,600.095 933.297,599.303C941.591,597.735 941.631,597.949 955.262,595.238C984.178,589.488 1013.49,583.48 1065.62,589.687C1068.03,589.974 1093.75,592.164 1115.9,598.447C1122.27,600.256 1138.58,604.312 1163.42,618.593C1171.16,623.044 1176.7,627.998 1177.27,628.63C1196.07,649.324 1197.33,672.284 1197.9,680.262C1200.9,722.271 1177.4,776.526 1129.37,829.496Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Powered" transform="matrix(0.871912,0,0,0.871912,247.291,617.703)">
|
||||
<g id="outline_shadow" transform="matrix(1.03507,0,0,1.03507,-17.9576,-137.135)">
|
||||
<path d="M40.1,358C31.3,355.9 29.3,354.5 27.1,348.7C24.7,342.3 21.7,325.9 19.2,306.5C16.8,286.6 16.7,232.1 19.1,223.7C22.4,212.2 29.6,204.1 41,199C43.4,197.9 47.9,194.7 50.9,191.9C65.694,178.092 90.173,178.752 99.573,178.452C108.873,178.152 132.668,179.493 153.034,187.583C161.833,191.079 166.893,198.006 170.192,200.576C181.101,190.608 186.651,194.897 193.801,190.19C206.32,181.948 224.361,178.051 242.246,178.051C268.888,178.051 285.454,191.502 294.606,202.643C308.782,190.208 319.618,191.136 324.042,191.172C335.02,180.749 348.921,178.702 358.271,179.031C375.914,179.652 371.008,206.511 363.921,229.758C361.368,238.132 361.302,241.063 360.5,245.679C362.465,242.157 364.411,237.738 370.745,237.788C372.076,235.329 374.055,233.55 378.418,230.754C380.815,229.217 384.364,229.162 385.122,227.808C389.299,220.352 375.624,203.931 379.989,196.032C385.02,186.93 399.097,187.467 405.603,190.068C409.141,191.483 409.091,192.554 412.662,193.707C415.384,188.658 420.672,184.118 424.26,183.656C451.139,180.197 464.307,199.057 469.296,208.015C474.5,201.746 486.964,194.469 492.85,193.339C495.484,192.833 500.425,191.926 503.477,191.81C525.79,177.1 545.052,181.037 559.1,184.821C583.254,191.326 598.141,214.745 599.204,216.201C599.6,215.494 600.009,213.781 604.69,206.019C608.201,200.196 622.297,195.242 629.928,194.417C632.922,189.817 635.574,188.495 646.89,184.682C659.602,180.398 672.783,181.97 685.447,183.512C711.343,186.665 724.951,200.679 729.17,204.818C731.695,201.119 737.68,196.723 742.563,194.236C755.664,187.562 761.514,189.586 764.347,188.433C772.249,185.215 779.811,180.685 798.75,181.635C823.911,182.896 842.589,197.363 854.213,214.096C857.777,219.226 860.239,223.794 862.011,227.808C862.483,228.877 872.387,220.164 888.09,220.793C891.81,220.941 898.276,218.787 901.511,218.018C907.144,216.681 918.384,216.15 920.709,216.37C922.583,216.042 916.773,205.651 916.27,204.045C913.825,196.236 920.52,192.228 927.243,189.512C935.836,186.04 933.814,187.688 937.054,185.11C946.74,177.402 967.6,173.6 980.7,177.5C991.1,180.6 994.1,185.8 1000.4,211.5C1010.7,253.3 1008.5,298.1 994.8,325.2C990.7,333.4 988.5,335.3 979.9,338C972.7,340.2 972.2,340.5 969.6,345.2C966.3,351 962.1,353.2 948,356.1C934.8,358.9 899.6,358.3 887.9,355.2C868.2,349.9 855.6,342.9 849.8,333.9C848.1,331.2 846.3,329 845.9,329C845.5,328.9 843.5,330.4 841.3,332.1C839.2,333.8 835.2,336.3 832.5,337.6C829.7,338.9 824.4,342.7 820.6,345.9C814.822,350.942 808.8,355.284 797.327,356.109C794.105,356.341 769.742,358.094 757,354.1C743.9,350 728.6,341 722.2,333.6L720,331L714.7,335C711.8,337.2 707.9,339.5 706,340.1C704,340.7 699.7,343.8 696.3,346.9C693,350.1 688.2,353.6 685.8,354.8C680.5,357.4 672.2,357.7 667.9,355.4C664.5,353.7 660.6,347.4 658.9,341C658.3,338.5 657.5,336.1 657.3,335.7C656.4,334.3 644.4,341.2 641.1,345.1C639,347.6 634.5,350.6 628.5,353.6C620.9,357.3 617.9,358.3 612.2,358.7C597.7,359.7 590.3,353.6 587,337.7C586.3,334.5 585.6,332 585.4,332C585.2,331.9 582.9,333.3 580.3,334.9C577.7,336.6 575.1,337.9 574.4,338C573.8,338 570.4,340.5 566.9,343.5C565.707,344.537 555.035,354.83 539.97,356.48C536.04,356.91 511.517,359.596 490.9,350.6C481.3,346.4 473.8,341.5 466.7,334.4L461,328.8L457.2,331.7C455.2,333.4 451.3,335.5 448.6,336.5C446,337.5 442.6,339.7 441.1,341.4C430,354.6 414.5,358 394.6,351.8C379.6,347 372.4,347.2 360,352.7C344.3,359.5 332.3,360.4 316.6,356.1C304.8,352.8 297.6,346.1 290.7,332.3L286.6,324.2L281.6,328.1C278.554,330.493 275.099,332.315 271.9,334.5C268.364,336.915 264.622,339.08 261.4,341.9C247.8,353.5 233.9,358.2 213,358.3C196.6,358.3 188,356.6 176.4,351C157.1,341.6 148,327.2 145.4,301.7C145.136,299.19 146.063,295.416 143.8,294.3C141.752,293.29 139.778,296.551 138.1,298.1C130.9,304.9 124,308.8 115.5,310.9C112.295,311.72 108.945,311.973 105.8,313C103.403,313.782 104.862,321.566 105,322.3C105.9,327.4 105.8,328.6 104,332.3C101.4,337.6 96.7,340.8 89,342.3C83.5,343.3 82.9,343.7 81.9,346.6C80.4,351.2 75.3,355.8 69.7,357.5C64.3,359.1 46.2,359.5 40.1,358ZM537.5,293.6C539.4,294.3 541.6,294.7 542.5,294.5C543.3,294.2 546.5,293.6 549.6,293.2C557.004,292.203 557.634,288.667 556.8,288.5C553.812,287.901 543.46,288.17 542.3,288.2L528.5,288.5L531.2,290.3C532.7,291.3 535.5,292.8 537.5,293.6ZM224.7,287.7C226.052,288.418 227.463,289.201 228.988,289.35C231.98,289.642 235.008,288.708 238,289C238.198,284.704 239.098,280.459 239.296,276.162C239.358,274.824 239.703,267.353 235.475,259.85C229.312,248.914 226.697,251.999 214.7,248.6C215.431,256.614 215.222,264.695 215.953,272.709C216.947,283.602 223.472,287.051 224.7,287.7ZM98.6,250C98.978,250.334 105.357,255.971 104.9,250.2C104.122,240.373 101.703,241.25 93.5,235.8C93.661,237.664 93.082,239.543 93.242,241.408C93.595,245.509 97.997,249.459 98.6,250ZM792.1,292.6C794.8,293.9 797.9,294.7 799,294.5C800.1,294.2 803.3,293.7 806.2,293.3C806.897,293.225 814.268,292.436 814,289.3C813.844,287.48 790.539,287.756 787.075,288.725C785.327,289.214 791.646,292.373 792.1,292.6ZM527.186,237.245C528.143,242.949 550.388,241.835 550.944,239.829C553.545,233.115 533.2Line truncated
|
||||
</g>
|
||||
<g id="P1" serif:id="P">
|
||||
<g id="P_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.966)">
|
||||
<path d="M49,216L49,214.2C49,213.2 49.7,210 50.5,207C51.7,202.8 53.3,200.4 56.7,197.2C59.2,194.9 63.5,191.8 66.3,190.5C69.2,189.1 74.9,187.2 79,186.4C100.968,181.567 124.429,186.145 128.3,186.9C134.2,188.1 142.1,190.2 145.8,191.6C147.435,192.174 158.348,196.009 163.2,204.5C164.663,207.133 168,218.125 168,219.5L168,229.5C168,230.901 166.973,230.741 166,246.9C165.3,260.2 164.8,262.7 162.5,267.4C161,270.4 157.9,274.9 155.5,277.3C153.1,279.8 148.9,283 146,284.4C143.2,285.8 138.3,287.6 135.2,288.4C132,289.2 122.9,290.3 114.8,290.8C106.5,291.3 98.9,292.3 97.3,293.1C95.526,293.928 94.002,295.419 93,297.1C91.494,299.626 94.586,312.493 94.9,313.8C97.901,325.985 102.891,329.764 91.3,334.4C89.191,335.317 71.739,336.344 65,334.9C55.087,332.568 57.105,329.751 55,319.8C53.9,314.5 52,303.3 50.9,294.8C49.3,283.4 48.6,271.9 48.2,249.9C47.9,233.6 48,219.3 48.3,218.1L49,216ZM93.9,218.3C92.5,219.6 88,226.7 88,226.7C87.497,228.008 84.191,236.604 86,244.1C88.325,253.402 99.361,259.912 100.5,260.4C104.83,262.132 115.648,262.041 118.5,260.9C125.938,258.421 130.512,250.492 131.2,249.3C132.6,246.6 134.3,241.7 135,238.4C136.1,233.1 136.1,231.6 134.6,227.4C133.7,224.7 133,222.3 133,222.2L133,222L132.7,221.9C132.6,221.9 131.3,220.7 130,219.3C128.6,217.9 126.1,216.1 124.5,215.2C122.8,214.3 118.3,213.4 114.4,213.2C112.713,213.095 99.906,212.294 93.9,218.3Z" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="P_bottom" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M123.106,388.683C123.766,396.422 126.371,407.263 126.732,408.766C131.636,428.679 139.791,434.853 120.849,442.43C117.402,443.928 88.883,445.607 77.87,443.247C61.671,439.435 64.968,434.833 61.528,418.571C60.535,413.787 59.144,406.062 57.794,397.764C62.283,403.678 72.599,403.263 75.234,397.993C75.999,396.464 81.601,396.565 82.771,394.225C82.868,394.031 83.437,392.895 84.323,392.008C85.328,391.003 84.65,389.239 88.314,388.017C95.611,385.585 101.853,394.145 111.591,390.899C117.274,389.005 117.219,388.951 123.106,388.683Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
<g id="P_top" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M50.137,267.627C50.188,259.028 50.347,253.303 50.579,252.375L51.723,248.943L51.723,246.001C51.723,244.367 52.867,239.138 54.174,234.235C56.135,227.372 58.75,223.45 64.306,218.22C68.392,214.462 75.419,209.396 79.994,207.271C84.733,204.984 94.048,201.879 100.748,200.571C136.648,192.673 174.987,200.154 181.313,201.388C190.955,203.349 203.865,206.781 209.912,209.069C212.583,210.008 230.417,216.274 238.346,230.15C240.737,234.453 246.19,252.415 246.19,254.663L246.19,270.369C241.398,270.158 241.398,270.264 240.447,269.947C240.288,269.894 238.814,269.403 238.673,268.838C237.299,263.341 250.349,263.001 241.777,254.429C237.717,250.369 229.991,252.119 229.362,252.434C228.328,252.951 225.697,253.477 225.372,253.542C216.907,255.235 220.425,258.47 220.938,258.641C224.053,259.679 226.963,262.983 228.476,263.74C231.197,265.1 232.596,265.605 230.471,267.73C228.61,269.59 228.344,269.191 227.589,269.947C226.423,271.112 217.674,271.223 207.859,267.952C207.42,267.805 207.86,267.435 207.415,267.287C201.726,265.39 201.638,259.313 205.642,257.311C207.219,256.522 214.27,244.879 208.302,238.911C202.814,233.422 202.752,239.14 200.321,241.571C198.816,243.076 198.669,242.78 197.218,244.231C194.676,246.773 195.096,247.017 192.562,249.552C192.08,250.034 191.943,249.727 191.454,250.217C186.518,255.153 185.96,254.554 185.69,255.094C185.544,255.385 185.453,255.574 185.393,255.7C184.971,255.269 184.531,254.809 184.092,254.336C181.804,252.048 177.718,249.106 175.104,247.636C172.325,246.165 164.972,244.694 158.598,244.367C155.842,244.195 134.912,242.887 125.098,252.702C124.147,253.584 122.321,256.104 120.512,258.747C118.891,257.766 117.395,256.63 116.08,255.315C113.991,253.227 109.295,254.255 108.764,255.315C107.995,256.854 99.545,258.771 98.788,259.528C94.56,263.756 84.331,254.405 82.605,253.542C82.419,253.449 76.856,247.585 76.841,247.556C74.04,241.953 72.614,275.283 67.53,280.366C66.076,281.82 53.452,272.382 53.121,271.72C51.924,269.327 51.801,269.277 50.137,267.627Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="O">
|
||||
<g id="O_bottom" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M449.25,394.27C449.047,394.661 448.851,395.027 448.665,395.365C445.887,400.104 440.331,407.622 436.245,412.197C431.996,416.937 424.316,423.637 418.923,427.232C413.694,430.827 404.052,435.566 397.842,437.691C391.469,439.815 380.03,442.43 372.185,443.41C364.505,444.554 352.902,444.881 346.365,444.227C342.84,443.956 324.618,442.554 303.713,432.625C300.499,431.059 280.311,421.224 270.213,403.046C268.105,398.982 266.324,394.042 264.841,388.97C268.403,389.302 273.036,390.51 279.31,396.784C289.142,406.616 295.439,395.713 295.66,395.676C303.091,394.437 300.899,390.002 308.13,388.194C310.586,387.58 314.686,385.468 323.371,387.64C335.4,390.647 335.331,387.686 341.106,386.531C349.234,384.906 349.091,384.314 357.455,384.314C368.544,384.314 375.828,382.182 381.841,388.194C388.333,394.686 398.685,382.881 410.66,384.592C411.35,384.69 412.362,390.371 418.973,383.76C420.082,382.652 422.067,378.68 422.299,378.218C422.566,377.682 423.189,374.952 424.792,376.555C424.862,376.625 426.127,384.818 428.118,386.808C428.972,387.662 429.731,393.404 430.335,393.459C436.817,394.048 444.612,394.22 449.25,394.27Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
<g id="O_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.966)">
|
||||
<path d="M175.8,231.5C177.397,223.97 182,211.8 183.4,209.2C184.7,206.6 187.5,202.8 189.6,200.7C191.353,199.031 197.431,193.242 217.2,188.3C225.5,186.1 229.8,185.6 240,185.6C250.3,185.5 253.7,185.9 260,187.8C280.713,194.367 288.246,206.332 289.8,208.8C291.5,211.4 293,213.9 293,214.3L293,215L293.3,215C293.456,215 297.493,223.618 299,229C299.7,231.6 300.4,242.1 300.7,254C300.9,265.2 301,276.2 301,278.4C300.9,280.6 299.5,286.4 297.9,291.4C296.2,296.4 293.5,302.7 291.9,305.6C290.2,308.5 286.8,313.1 284.3,315.9C281.7,318.8 277,322.9 273.7,325.1C270.5,327.3 264.6,330.2 260.8,331.5C256.9,332.8 249.9,334.4 245.1,335C240.4,335.7 233.3,335.9 229.3,335.5C227.142,335.334 215.992,334.476 203.2,328.4C201.233,327.442 188.88,321.423 182.7,310.3C178.162,301.549 176.09,286.156 175.8,284C174.404,273.431 174.886,235.36 175.8,231.5ZM245,226L240.5,225.9C238,225.8 233.4,226.3 230.2,227C227,227.6 222.5,229.1 220.2,230.2C217.9,231.3 214.7,233.6 213.3,235.3C211.8,237 209.9,240 209.1,242C207.9,244.6 207.5,249 207.5,259.5C207.5,268 208,275.5 208.8,278.7C209.5,281.6 211.5,285.8 213.1,288C215.1,290.7 217.9,293 221.5,294.6C225.4,296.4 229.3,297.2 235.7,297.6C243.1,298.1 245.3,297.8 250,296C253.2,294.8 257.5,292.1 260.1,289.6C262.6,287.3 265.6,283.2 266.8,280.7C268.2,277.9 269.4,272.8 269.9,268.2C270.3,263.9 270.2,257.3 269.7,253.5C269.2,249.5 267.6,244.2 265.9,240.9C264.3,237.7 261.3,233.8 259.3,232.1C257.2,230.4 254.5,228.5 253.2,228L251,227L245,226Z" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="O_top" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M268.552,244.252C269.736,241.273 270.738,238.98 271.357,237.831C273.481,233.582 278.057,227.372 281.489,223.94C284.353,221.212 294.285,211.753 326.592,203.676C340.156,200.081 347.183,199.264 363.851,199.264C380.683,199.101 386.239,199.754 396.535,202.859C430.383,213.592 442.694,233.144 445.233,237.177C448.011,241.426 450.463,245.511 450.463,246.165L450.463,247.309L450.953,247.309C451.028,247.309 451.655,248.534 452.565,250.487C452.425,250.514 452.273,250.545 452.104,250.578C443.685,252.262 443.535,251.389 443.015,251.908C443.004,251.919 436.036,254.653 435.921,255.455C435.059,261.489 445.019,259.782 451.883,263.214C456.956,265.751 444.841,271.319 437.251,269.422C436.669,269.276 434.481,267.149 433.039,267.87C431.326,268.727 431.364,268.722 429.492,268.535C424.577,268.043 417.333,268.024 422.177,258.337C422.684,257.323 425.522,255.598 425.724,254.79C426.838,250.333 428.533,251.81 428.606,251.465C428.945,249.852 428.246,245.204 427.941,244.593C427.84,244.392 426.914,239.575 425.502,238.164C422.229,234.891 421.345,236.946 419.295,241.046C416.007,247.622 413.152,246.237 411.757,249.026C410.913,250.714 410.727,250.5 407.545,253.682C398.947,262.28 404.845,264.846 401.56,271.417C399.436,275.664 394.136,268.148 394.022,268.092C390.377,266.269 389.741,259.259 387.15,260.554C384.894,261.682 383.256,264.452 382.102,267.044L381.827,266.919L372.022,265.285L369.587,265.231C368.848,261.151 360.285,249.064 352.123,249.692C351.638,249.729 347.676,260.828 340.374,259.002C335.514,257.787 334.929,250.419 331.507,252.13C325.027,255.37 324.631,254.35 324.191,254.79C321.597,257.384 309.933,259.306 306.678,252.795C304.428,248.297 303.816,248.815 299.362,246.588C293.844,243.829 293.21,253.183 291.381,255.012C289.822,256.571 288.943,266.981 288.721,267.648C285.079,278.575 283.302,278.018 282.514,277.624C282.162,277.449 274.794,271.456 274.09,270.752C270.801,267.464 273.616,266.579 272.316,258.781C271.215,252.172 270.269,246.234 268.552,244.252Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="W">
|
||||
<g id="W_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.966)">
|
||||
<path d="M314,216.3C318.274,205.319 329.013,194.613 336,190.7C339.987,188.208 352.906,185.027 353.9,185.4C354.8,185.6 356.7,186 358.2,186.4C359.9,186.8 361.5,188.2 362.6,190.2C363.8,192.5 364.1,195 363.7,199.5C363.4,202.8 361.9,210.8 360.3,217.3C358.7,223.7 357.3,228.9 357.2,228.9L357,229L357,229.5C357,229.8 355.6,235.3 354,241.8C353.313,244.55 348.227,264.894 349.2,276.9C349.5,280.8 350.4,284.7 351.3,286C352.1,287.2 354.1,289.1 355.6,290.1C362.339,294.312 367.356,289.773 368.1,289.1C369.467,285.152 371.486,282.574 372.2,269.3C372.338,266.73 373.503,245.061 377.7,237.6C378.7,236 381.1,233.8 383.1,232.8C385.1,231.7 388.3,230.6 390.3,230.3C392.2,230 395,230 396.4,230.3C397.8,230.7 399.7,232.1 400.5,233.4C401.4,234.8 402.5,237.7 403,239.8C403.5,242 404.6,251.5 405.4,261.1C406.3,270.6 407.7,280.3 408.5,282.6C409.3,284.8 410.8,287.5 411.9,288.4C417.149,293.124 423.117,290.315 424,289.9C425.6,289.3 428,287.3 429.2,285.6C431.1,282.9 431.4,281.3 431.3,274C431.2,267.4 430.1,261.3 426.6,247.6C424,237.9 413.247,204.406 418.5,193.9C419.3,192.3 421.4,190.3 423.1,189.4C425.3,188.2 427.8,187.9 431.4,188.2C434.2,188.5 439.1,189.7 442.3,190.9C455.253,196.162 461.048,206.097 462.1,207.9C464.2,211.4 466,214.7 466,215.1L466,216L466.4,216C466.6,216 467.8,218.5 469,221.7C470.1,224.8 471.3,229.5 471.6,231.9C471.9,234.4 471.4,241 470.6,246.6C467.625,264.78 469.778,278.924 470.2,281.7C471.3,289.7 471.3,290.3 468.5,298.7C467,303.5 464.6,309.7 463.2,312.5C461.8,315.2 459.4,319.3 457.8,321.6C455.8,324.5 453.2,326.6 449.2,328.5C445.5,330.3 441.2,331.4 436.9,331.7C431.5,332.1 428.8,331.7 420.4,328.9C412,326.2 408.9,325.7 400.5,325.6C391,325.5 390,325.7 382.5,329.1C378.1,331.1 372.7,333.3 370.5,334C358.924,338.209 344.184,333.759 342,333.1C335.6,331.1 333.7,330 329.4,325.6C326.6,322.7 322.8,317.2 320.7,313C318.7,308.8 315.9,301.4 314.5,296.5C313,291.5 311.2,283 310.3,277.7C309.2,270.5 308.9,263.1 309.2,250.2C309.5,237.8 310.2,230.1 311.4,224.7" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="W_bottom" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M733.882,393.911C731.982,399.032 729.99,403.862 728.6,406.641C726.312,411.053 722.39,417.754 719.775,421.512C716.507,426.251 712.258,429.683 705.721,432.788C699.675,435.73 692.648,437.527 685.621,438.017C676.796,438.671 672.384,438.017 658.657,433.442C644.93,429.029 639.864,428.212 626.137,428.049C610.612,427.886 608.978,428.212 596.722,433.769C589.531,437.037 580.707,440.632 577.111,441.776C558.195,448.655 534.106,441.383 530.537,440.305C520.079,437.037 516.974,435.239 509.947,428.049C505.371,423.31 499.161,414.322 495.729,407.458C492.844,401.399 488.94,391.265 486.49,383.463C498.105,384.26 498.614,386.098 511.61,386.098C520.081,386.098 549.95,388.514 550.682,389.978C551.479,391.572 559.901,396.149 560.935,397.182C566.2,402.447 570.083,398.564 570.634,398.014C572.88,395.767 572.447,395.306 575.345,393.857C578.139,392.46 580.218,393.417 582.827,390.809C593.441,380.194 598.827,392.369 607.489,388.038C608.284,387.64 615.979,387.861 617.742,386.098C617.805,386.035 620.05,385.453 621.345,384.158C622.576,382.927 631.86,383.896 633.815,381.941C635.607,380.149 649.867,379.112 650.718,381.664C652.247,386.252 668.79,391.026 672.887,386.929C673.279,386.537 676.988,382.828 678.429,382.773C684.589,382.536 684.782,381.654 690.345,384.435C691.336,384.931 690.882,385.446 692.008,385.821C698.539,387.998 697.994,382.051 703.092,376.953C707.406,372.639 705.071,380.08 707.803,385.544C709.776,389.491 707.422,391.034 711.405,393.026C713.65,394.148 725.106,393.822 733.882,393.911Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
<g id="W_top2" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M659.924,268.203C654.724,247.27 650.367,223.197 655.552,212.828C656.859,210.213 660.291,206.945 663.069,205.474C666.664,203.513 670.75,203.023 676.633,203.513C681.209,204.003 689.216,205.964 694.445,207.925C715.613,216.524 725.083,232.759 726.802,235.706C730.234,241.426 733.176,246.819 733.176,247.472L733.176,248.943L733.829,248.943C733.957,248.943 734.334,249.566 734.862,250.636C733.581,250.692 732.084,250.553 731.773,250.242C729.172,247.641 723.541,250.456 722.905,250.774C719.534,252.46 719.011,250.149 715.634,251.838C714.241,252.534 714.552,252.911 713.151,253.612C712.464,253.955 713.433,258.327 714.57,259.464C714.917,259.812 714.891,259.752 715.102,260.174C715.398,260.765 728.117,263.612 728.226,263.721C730.563,266.058 722.517,266.591 721.841,267.268C721.004,268.104 716.061,269.077 713.86,267.977C710.479,266.286 705.072,267.062 701.64,266.721C701.455,265.044 701.902,264.886 700.736,263.721C700.603,263.587 700.323,263.307 701.269,261.415C701.763,260.427 702.19,260.815 702.687,259.819C703.384,258.426 705.415,256.736 705.525,256.627C708.033,254.119 707.224,242.746 706.766,241.375C705.931,238.87 705.76,235.757 705.525,235.522C704.017,234.015 701.43,234.877 701.091,234.99C697.753,236.103 698.487,241.6 697.722,241.907C690.116,244.949 690.043,250.117 688.322,251.838C687.731,252.429 684.834,258.873 684.775,258.932L681.405,265.671C678.71,271.063 680.71,273.832 678.922,273.475C678.51,273.392 676.267,271.36 676.262,271.347C674.673,266.58 675.785,266.163 675.375,266.026C673.547,265.417 673.575,265.554 673.425,265.494C670.701,263.224 672.142,262.261 670.942,261.06C668.837,258.956 668.499,258.824 665.799,260.174C662.656,261.745 663.621,265.696 661.542,266.736C661.422,266.796 660.601,267.825 659.924,268.203Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
<g id="W_top1" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M483.246,254.391L484.78,249.433C491.764,231.488 509.314,213.993 520.732,207.598C527.248,203.526 548.36,198.328 549.984,198.937C551.455,199.264 554.56,199.918 557.011,200.571C559.789,201.225 562.404,203.513 564.201,206.781C566.162,210.54 566.653,214.625 565.999,221.979C565.509,227.372 563.058,240.445 560.443,251.067C557.828,261.526 555.54,270.024 555.377,270.024L555.05,270.187L555.05,271.004C555.05,271.071 555.008,271.295 554.928,271.659C552.989,270.955 548.828,268.366 551.408,258.045C552.348,254.286 553.562,250.445 550.876,247.759C548.643,245.526 543.639,245.62 542.009,246.163C538.474,247.341 538.947,248.14 538.639,251.838C538.616,252.109 536.995,253.884 536.688,254.498C535.886,256.102 532.931,255.838 532.432,257.336C531.654,259.669 527.025,259.806 526.193,264.796C525.674,264.74 525.147,264.841 524.628,264.785C521.883,264.488 524.274,261.593 522.145,253.08C521.506,250.523 520.507,252.257 517.889,252.548C514.953,252.874 505.029,257.683 504.942,257.691C499.849,258.154 500.023,260.112 495.011,259.109C492.371,258.581 493.492,255.825 490.045,254.676C489.459,254.481 487.273,253.752 483.246,254.391Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="e2" serif:id="e">
|
||||
<g id="e_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.966)">
|
||||
<path d="M484.3,226C485.7,222.4 488.9,215.9 490.1,214C491.3,212 493.6,208.9 495.2,207C507.397,192.651 524.767,188.929 527.7,188.3C532.8,187.2 537.8,186.9 542.5,187.3C545.025,187.499 558.097,188.531 572.3,198C574.144,199.277 590.101,210.308 597.263,224.902C605.247,241.171 604.38,261.126 603.8,261.6C603.1,262.2 599.2,263.2 595.3,263.8C590.544,264.632 542.752,265.1 529.1,263.8L517.7,262.7L515.1,265.4C511.639,268.861 511.592,279.932 515.2,286C516.6,288.6 519.5,291.9 521.4,293.3C523.4,294.8 528,297.5 531.7,299.2C536.3,301.4 540.4,302.5 544.7,302.8C548.1,303 552,302.9 553.4,302.6C554.8,302.2 557.5,300.5 559.5,298.7C561.5,297 564.5,293.2 566.1,290.4L569,285.1L576.2,284.5C582.011,284.064 587.789,283.236 593.6,282.8C597.559,282.503 601.734,281.045 605.5,282.3C606.9,282.9 607.1,283.8 606.5,287.2C606.2,289.5 604.8,293.8 603.4,296.7C602.1,299.6 598.7,305.4 595.9,309.5C593,313.6 587.9,319.5 584.6,322.6C581.2,325.7 576.1,329.4 573.2,330.7C569.4,332.4 564.9,333.4 557.8,334C551.4,334.6 544.8,334.5 540.1,333.9C535.9,333.3 529.3,332 525.5,330.8C521.6,329.7 515.3,327.1 511.5,325.2C506.7,322.7 501.8,318.9 496.3,313.5C489.9,307.1 487.4,303.7 484.1,297C481.8,292.3 479.2,285.1 478.3,281C477.1,275.4 476.9,270.5 477.3,262C477.7,255.6 478.8,246.4 479.9,241.5C480.9,236.5 482.9,229.5 484.3,226ZM544.3,216.3C538.835,216.112 518.362,220.389 519.349,233.585C519.501,235.62 519.162,245.404 545.602,245.404C572.043,245.404 569.702,237.468 569.702,234.565C569.701,230.612 559.439,216.822 544.3,216.3Z" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="e_bottom1" serif:id="e_bottom" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M951.027,393.024C949.197,396.054 947.251,399.11 945.455,401.739C940.716,408.439 932.382,418.08 926.989,423.146C921.433,428.212 913.099,434.259 908.359,436.383C902.15,439.161 894.796,440.796 883.193,441.776C872.734,442.757 861.949,442.593 854.268,441.613C847.405,440.632 836.619,438.508 830.409,436.547C824.036,434.749 813.741,430.5 807.531,427.395C799.687,423.31 791.679,417.1 782.691,408.275C775.552,401.137 771.383,396.282 767.74,390.437C769.928,390.986 773.012,391.73 778.888,397.606C781.344,400.062 786.964,396.804 788.586,395.181C789.055,394.713 795.633,392.172 796.207,391.025C800.835,381.768 809.642,391.649 835.695,385.136C836.071,385.042 837.392,384.742 839.272,384.31C839.701,384.516 840.124,384.715 840.541,384.907C848.058,388.502 854.758,390.299 861.785,390.79C867.342,391.116 873.715,390.953 876.003,390.463C877.85,389.935 881.083,388.022 883.98,385.756C884.047,385.781 884.116,385.805 884.189,385.829C884.771,386.023 890.008,387.769 891.463,383.404C891.714,382.651 891.898,382.098 901.162,381.326C901.721,381.279 906.316,380.896 907.743,383.751C909.561,387.386 913.626,382.071 913.632,382.019C913.725,381.081 914.286,375.476 918.481,371.281C919.461,370.301 923.408,383.56 923.677,384.097C925.134,387.011 924.471,387.315 926.794,389.639C928.18,391.025 931.231,392.55 931.644,392.757C933.254,393.562 933.879,393.874 951.027,393.024Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
<g id="e_top1" serif:id="e_top" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M764.865,261.041C767.431,255.252 771.012,248.124 772.559,245.675C774.52,242.406 778.279,237.34 780.894,234.235C800.826,210.786 829.211,204.703 834.004,203.676C842.339,201.879 850.51,201.388 858.19,202.042C862.317,202.368 883.678,204.054 906.889,219.528C909.903,221.614 935.979,239.64 947.683,263.491C948.098,264.336 948.498,265.187 948.884,266.043C939.194,267.406 925.862,267.698 918.643,265.292C916.917,264.716 916.861,259.801 918.99,257.672C923.653,253.009 922.995,239.161 921.415,237.581C913.768,229.934 907.145,251.158 900.978,257.325C898.571,259.732 899.056,265.705 898.899,266.331C898.653,267.317 897.86,267.851 896.891,268.252C889.968,259.735 877.239,249.989 861.132,249.433C856.132,249.261 843.447,251.375 833.53,257.054C832.865,256.629 832.36,256.253 832.047,255.94C830.174,254.067 830.809,253.663 828.929,251.783C827.366,250.219 819.293,253.107 818.538,253.861C813.391,259.008 802.321,253.578 798.448,249.705C794.876,246.133 794.871,245.556 789.788,245.894C787.61,246.04 786.785,264.831 785.631,265.985C784.854,266.762 784.649,266.274 783.899,267.024C779.708,271.216 783.058,277.341 777.664,274.645C766.923,269.274 770.046,264.38 764.865,261.041Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="R">
|
||||
<g id="R_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.966)">
|
||||
<path d="M623,219L623,218.7C623,218.6 624.1,215.2 625.4,211.1C626.7,207.1 628.8,202.3 630.1,200.5C631.3,198.6 634.2,195.9 636.4,194.5C638.6,193.1 643.6,190.9 647.5,189.7C653.5,187.8 656.5,187.5 669.5,187.6C681.3,187.7 686.1,188.1 692.2,189.8C696.5,190.9 703.7,193.8 708.1,196.1C712.6,198.4 718.3,202.4 720.9,205C723.5,207.6 726.1,211 726.8,212.6C727.4,214.2 728,216 728,216.7L728,218L729,224L729,227.7C729,228.1 728.8,230.9 728.4,234C728.1,237 727,241.3 726,243.6C725,245.8 722.5,249.6 720.4,251.8C718.3,254.2 713.9,257.3 710.3,259C706.4,260.9 703.4,263 702.8,264.5C702.2,265.7 702,267.9 702.3,269.3C702.7,270.7 704,273 705.2,274.4C706.4,275.9 711.7,279.4 716.9,282.3C722.1,285.2 727.3,288.8 728.4,290.3C729.7,292.1 730.4,294.5 730.3,296.9C730.3,299.1 728.8,303.9 727,307.6C725.3,311.4 722,316.8 719.9,319.7C717.7,322.6 713.6,326.7 710.9,328.9C708.1,331.1 704.3,333.2 702.4,333.5C700.5,333.9 697.8,333.9 696.4,333.5C694.6,333.1 693.2,331.6 691.8,328.4C690.7,326 688.3,318.3 686.4,311.3C684.5,304.4 682.1,296.9 681.1,294.6C680.1,292.3 678.1,289.5 676.8,288.3C675.5,287.2 673.1,285.8 671.4,285.2C669.8,284.7 667,284.4 665.3,284.7C663.6,284.9 660.9,286.4 659.4,288C656.8,290.7 656.7,291.2 657.2,298.6C657.5,302.9 658.4,310.2 659.1,314.8L660.4,323.2L657.2,325.9C655.5,327.3 651.1,330 647.4,331.8C643.6,333.7 638.5,335.3 635.4,335.7C632.1,336 628.9,335.7 627,335C625.3,334.3 623.1,332.5 622,331C621,329.6 619.4,325.9 618.5,322.8C617.6,319.7 616.5,311.1 616,303.8C615.4,295.6 615.4,283.4 616,272C616.6,261.8 617.7,248.9 618.5,243.4C619.3,237.8 620.6,230.2 621.4,226.4C622.3,222.6 622.9,219.3 622.9,219.2L623,219ZM655,222L654.9,222.2C654.9,222.806 653.405,222.156 652.012,229.2C651.803,230.258 650.26,238.064 653.5,242.6C654.7,244.2 658.3,246.8 661.5,248.5C671.088,253.388 684.16,250.97 687.5,249.3C689.7,248.1 692.9,245.6 694.6,243.8C696.4,242 698.3,238.6 698.9,236.4C699.5,233.9 699.6,231.2 699,229.3C698.6,227.6 697.7,225.4 697.2,224.3C696.6,223.3 694.506,220.63 692.7,219.3C690.55,217.717 687.7,216.4 684.3,214.8C681,213.2 675.9,211.6 673.1,211.3C669.9,210.9 666.9,211.2 664.9,212C663.3,212.7 660.3,215 658.4,217.3C656.5,219.5 655,221.5 655,221.6L655,222Z" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="R_bottom1" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M1045.82,386.375C1046.44,393.49 1047.72,403.698 1048.74,410.4L1050.86,424.127L1045.63,428.539C1042.85,430.827 1035.66,435.239 1029.62,438.181C1023.41,441.286 1015.07,443.9 1010,444.554C1004.61,445.044 999.383,444.554 996.278,443.41C993.5,442.266 989.905,439.325 988.107,436.873C986.473,434.586 983.859,428.539 982.388,423.473C981.107,419.062 979.579,407.835 978.665,397.131C983.603,398.433 985.638,401.454 988.627,398.466C989.905,397.187 990.247,397.696 992.032,395.912C994.821,393.123 997.444,395.587 998.984,392.507C999.566,391.344 999.718,391.489 1003.1,388.109C1009.64,381.566 1010.93,386.593 1017.71,387.115C1025.01,387.677 1025.74,390.294 1028.64,387.399C1029.25,386.784 1037.07,386.37 1045.82,386.375Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
<g id="R_bottom2" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M1163.4,389.278C1162.43,392.361 1161.12,395.708 1159.7,398.634C1156.92,404.844 1151.53,413.668 1148.09,418.407C1144.5,423.146 1137.8,429.847 1133.39,433.442C1128.81,437.037 1122.6,440.469 1119.5,440.959C1116.39,441.613 1111.98,441.613 1109.69,440.959C1106.75,440.305 1104.46,437.854 1102.17,432.625C1100.38,428.703 1096.45,416.119 1093.35,404.68C1091.75,398.876 1089.93,392.812 1088.33,387.78C1089.42,387.697 1090.27,387.614 1090.78,387.541C1093.55,387.145 1094,387.765 1094.75,386.264C1094.89,385.982 1094.48,384.179 1095.89,383.71C1096.8,383.406 1101.76,382.91 1102.27,382.859C1102.8,382.806 1108.87,382.199 1108.94,382.859C1109.46,387.526 1113.52,387.747 1115.29,384.204C1115.52,383.757 1115.37,382.286 1118.98,378.671C1122.02,375.628 1120.99,373.429 1122.99,374.63C1125.1,375.899 1124.71,376.239 1125.82,378.461C1127.45,381.716 1127.25,381.737 1127.95,385.271C1128.96,390.287 1129.04,392.65 1129.51,392.804C1134.21,394.372 1136.58,393.525 1149.43,392.24C1154.16,391.767 1154.64,391.284 1154.97,390.963C1155.64,390.294 1159.83,389.349 1163.4,389.278Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
<g id="R_top" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M987.066,266.228C987.087,266.13 987.107,266.034 987.127,265.938C988.598,259.729 989.578,254.336 989.578,254.172L989.742,253.845L989.742,253.355C989.742,253.192 991.539,247.636 993.664,240.935C995.788,234.399 999.22,226.555 1001.34,223.613C1003.31,220.508 1008.04,216.096 1011.64,213.808C1015.24,211.52 1023.41,207.925 1029.78,205.964C1039.58,202.859 1044.49,202.369 1065.73,202.532C1085.01,202.696 1092.86,203.349 1102.83,206.127C1109.85,207.925 1121.62,212.664 1128.81,216.423C1136.16,220.181 1145.48,226.718 1149.73,230.967C1153.98,235.216 1158.23,240.772 1159.37,243.387C1160.35,246.001 1161.33,248.943 1161.33,250.087L1161.33,252.211L1161.36,252.399C1158.94,251.631 1158.94,251.346 1158.53,251.3C1153.93,250.789 1154.07,250.511 1149.88,248.418C1149.63,248.291 1147.52,247.235 1146.34,248.418C1143.02,251.737 1136.64,252.577 1135.7,253.517C1132.52,256.693 1132.98,258.3 1137.25,259.724C1145.39,262.438 1154.82,263.548 1149.66,265.266C1149.58,265.294 1139.87,270.121 1133.26,266.818C1129.89,265.137 1129.75,266.153 1125.94,266.153C1121.67,266.153 1118.91,267.891 1119.96,263.714C1121.84,256.175 1132.43,256.587 1125.94,237.112C1123.24,229.014 1118.93,239.25 1116.63,241.545C1114.78,243.393 1110.66,245.7 1110.42,246.423C1109.74,248.464 1108,250.673 1107.99,250.856C1107.94,251.303 1107.59,254.797 1106.21,256.177C1106.14,256.251 1106.07,256.323 1105.99,256.393C1105.21,255.616 1104.41,254.902 1103.64,254.336C1100.13,251.748 1095.47,249.597 1089.92,246.982C1084.52,244.367 1076.19,241.753 1071.61,241.262C1066.38,240.609 1061.48,241.099 1058.21,242.406C1055.6,243.55 1050.7,247.309 1047.59,251.067C1044.49,254.663 1042.04,257.931 1042.04,258.094L1042.04,258.748L1041.87,259.075C1041.87,259.465 1041.49,259.536 1040.89,260.184C1038.11,258.22 1036.57,255.698 1033.28,252.408C1029.83,248.958 1028.69,253.493 1026.63,254.182C1018.73,256.814 1018.82,256.985 1018.42,257.064C1009.88,258.771 1010.82,254.7 1008.45,253.517C1004.25,251.42 1003.6,247.392 1000.69,246.423C992.559,243.713 992.662,252.989 989.161,263.492C989.003,263.966 988.734,263.68 988.496,264.158C988.049,265.052 987.564,265.726 987.066,266.228Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="e3" serif:id="e">
|
||||
<g id="e_middle1" serif:id="e_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.966)">
|
||||
<path d="M745,217L745,216.6C745,216.3 747,213.4 749.4,210.1C750.657,208.39 756.453,200.508 770.1,193.5C773.8,191.5 780.2,189.2 784.6,188.3C789.7,187.3 794.7,186.9 798.9,187.3C802.5,187.6 808.6,188.8 812.5,190C816.3,191.1 822.5,193.9 826.3,196.1C830,198.3 836.4,203.3 840.5,207.3C847.66,214.285 854.8,226.7 855.9,229.2C857,231.6 858.6,236.7 859.5,240.4C860.4,244.3 860.9,250.3 860.7,254.8L860.5,262.5L854,263.6C850.4,264.2 836.2,264.8 822.5,264.8C808.8,264.9 792.4,264.4 786.1,263.8L774.6,262.7L771.8,265.8C770.931,266.782 766.754,271.504 770.1,282.1C770.7,283.9 772.3,286.9 773.7,288.7C775,290.6 778.4,293.6 781.3,295.5C784.1,297.4 789.1,299.8 792.4,300.9C806.641,305.926 813.262,301.058 814.7,300C816.9,298.4 820.3,294.4 822.3,291.1L826,285.2L833.2,284.5C839.011,284.064 844.789,283.238 850.6,282.8C854.526,282.504 858.802,280.701 862.4,282.3C865.293,283.385 862.093,291.92 861.8,292.7C860.6,295.8 857.8,301.6 855.5,305.4C853.3,309.2 848,315.8 843.8,320C839.3,324.6 834.1,328.7 830.8,330.3C826.8,332.3 822.8,333.2 815.2,333.9C808.4,334.6 802.2,334.6 796.7,333.9C792.2,333.3 785.7,332 782.3,331C778.9,329.9 773.3,327.6 769.8,325.9C766.3,324.1 761.4,321.1 759,319.2C756.5,317.2 752.3,313.3 749.7,310.5C748.3,308.932 741.119,300.889 736.8,287.6C734.7,281.3 734.5,278.6 734.6,264.5C734.6,249.9 734.9,247.4 737.8,236.7C739.5,230.2 741.8,223.2 742.9,221.2C744,219.1 744.9,217.3 744.9,217.2L745,217ZM801.237,216.3C795.772,216.112 775.299,220.389 776.285,233.585C776.438,235.62 776.099,245.404 802.539,245.404C828.98,245.404 826.639,237.468 826.639,234.565C826.638,230.612 816.376,216.822 801.237,216.3Z" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="e_top2" serif:id="e_top" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M1186.73,255.418C1188.02,252.923 1188.95,251.034 1188.95,250.904L1189.11,250.577L1189.11,249.923C1189.11,249.433 1192.38,244.694 1196.3,239.301C1198.36,236.507 1207.83,223.626 1230.13,212.174C1236.18,208.906 1246.63,205.147 1253.83,203.676C1262.16,202.042 1270.33,201.388 1277.19,202.042C1283.08,202.532 1293.05,204.493 1299.42,206.454C1305.63,208.252 1315.76,212.828 1321.97,216.423C1328.02,220.018 1338.48,228.189 1345.17,234.726C1349.44,238.891 1353.71,244.237 1357.49,249.547C1355.51,249.789 1353.68,250.392 1353.12,251.506C1351.85,254.046 1350.18,253.821 1351.13,255.718C1354.4,262.263 1357.17,258.653 1359.33,260.817C1362.67,264.159 1364.01,264.123 1362.88,265.25C1362.32,265.81 1357.93,270.201 1353.35,267.91C1352.03,267.253 1348.51,266.396 1348.25,266.137C1347.58,265.468 1339.38,265.032 1339.16,264.807C1338.57,264.219 1335.19,263.676 1337.38,261.482C1338.41,260.454 1341.96,252.693 1342.48,252.171C1345.17,249.484 1344.77,238.943 1344.04,238.204C1342.81,236.98 1342.61,232.49 1338.71,234.436C1336.41,235.588 1336.28,236.871 1335.39,237.318C1333.5,238.262 1333.55,238.273 1331.4,240.421C1330.71,241.105 1331.18,241.305 1330.51,241.973C1328.92,243.569 1326.68,248.025 1326.3,248.402C1324.97,249.732 1323,253.682 1322.75,254.166C1322.15,255.363 1321.4,254.661 1320.98,255.939C1319.48,260.452 1320.06,260.514 1319.87,265.25C1319.79,267.219 1319.02,268.623 1317.88,269.672C1311.27,260.858 1298.02,250.02 1281.01,249.433C1276.57,249.28 1266.05,250.934 1256.8,255.294C1254.29,253.655 1251.78,251.694 1249.38,249.289C1248.94,248.856 1248.8,248.878 1241.84,250.619C1239.61,251.175 1233.21,257.733 1229.87,254.388C1227.81,252.327 1226.46,251.658 1223.88,249.51C1218.35,244.9 1218.34,243.359 1209.91,244.412C1209.09,244.515 1209.45,244.9 1209.25,247.737C1209.16,249.006 1208.57,248.738 1208.36,249.954C1206.8,259.328 1207.01,259.351 1206.81,260.151C1206.66,260.752 1205.48,265.472 1203.71,267.245C1203.3,267.657 1200.98,276.265 1198.39,273.674C1196.05,271.34 1196.26,271.171 1193.29,269.684C1185.51,265.795 1187.61,263.678 1186.73,255.418Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
<g id="e_bottom2" serif:id="e_bottom" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M1372.03,390.954C1371.23,392.406 1370.44,393.788 1369.69,395.039C1366.09,401.248 1357.43,412.034 1350.57,418.898C1343.21,426.415 1334.72,433.115 1329.32,435.73C1322.79,438.998 1316.25,440.469 1303.83,441.613C1292.72,442.757 1282.59,442.757 1273.6,441.613C1266.25,440.632 1255.62,438.508 1250.07,436.873C1244.51,435.076 1235.36,431.317 1229.64,428.539C1223.92,425.598 1215.91,420.695 1211.99,417.59C1207.9,414.322 1201.04,407.949 1196.79,403.373C1195.62,402.06 1191.97,397.972 1187.74,391.378C1190.99,393.103 1196.04,394.033 1197.4,395.389C1201.75,399.742 1203.89,397.639 1208.75,395.212C1210.17,394.502 1211.55,393.121 1211.77,392.906C1213.9,390.77 1215.12,393.98 1217.26,391.842C1218.47,390.631 1216.25,388.271 1226.49,383.152C1230.02,381.386 1229.55,384.063 1230.92,384.748C1231.67,385.126 1235.19,385.121 1236.42,386.344C1236.45,386.376 1239.29,388.402 1242.8,387.231C1243.3,387.063 1253.17,386.015 1260.72,385.391C1262.82,386.31 1264.84,387.107 1266.57,387.685C1289.73,395.857 1300.56,388.021 1302.98,386.24C1310.7,386.551 1311.04,386.551 1311.08,385.812C1311.11,385.362 1311.37,380.632 1312.32,380.314C1316.87,378.8 1320.93,380.287 1323.67,381.201C1325.66,381.862 1325.82,380.592 1327.75,381.556C1328.61,381.985 1327.66,385.68 1329.53,384.748C1335.71,381.656 1334.38,370.879 1340.88,373.043C1343.49,373.913 1342.14,375.194 1343.71,376.767C1344.85,377.9 1344.95,383.152 1345.49,385.28C1345.84,386.681 1345.7,390.488 1346.37,390.601C1357.2,392.405 1361.02,391.945 1372.03,390.954Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="D">
|
||||
<g id="d_middle" transform="matrix(1.03507,0,0,1.03507,-17.9576,-136.916)">
|
||||
<path d="M952.9,228.1C951.8,225.7 948.5,217.7 946.1,212.6C943.5,206.8 940.975,201.578 940.675,198.078C940.175,193.078 940.9,192.1 943.1,190.6C944.4,189.6 949.2,187.7 953.7,186.3C960.7,184.1 963.3,183.8 970.8,184.1C976.8,184.4 980.5,185.1 982.2,186.2C983.8,187.2 985.6,190.2 986.9,193.6C988.1,196.8 990.2,203.2 991.5,207.8C992.9,212.4 996.6,232.6 997.5,239.3C998.3,245.9 999,256.9 999,263.7C999,270.5 998.5,280.4 997.9,285.7C997.3,291.1 995.7,299.7 994.4,304.8C993,309.9 990.3,317.4 988.2,321.3C985.3,326.8 983.6,328.8 981,330.1C979,331 975,332.2 972,332.9C968.9,333.6 961.5,334.5 955.5,334.9C949.4,335.3 939.3,335.3 933,334.8C926.6,334.3 917.1,332.8 911.7,331.5C906.3,330.1 899.1,327.7 895.7,326.1C892.3,324.5 887.6,321.8 885.3,320.1C883,318.4 879.9,315 878.4,312.5C876.8,309.7 875.2,304.7 874.3,299.2C873.2,293 872.9,286.5 873.2,277C873.5,268.7 874.4,260.9 875.5,257C876.4,253.4 878.2,248.2 879.4,245.4C880.7,242.6 883.3,238.1 885.3,235.3C887.3,232.5 890.6,229.1 892.7,227.6C894.8,226.2 898.5,224.3 901,223.3C904.1,222.1 909.7,221.5 920,221.2C923.968,220.99 931.049,220.5 934.667,222.078C949.663,228.619 955.512,235.536 955.512,235.536C955.512,235.536 954,230.5 952.9,228.1ZM931.7,301.451C936.9,303.251 938.4,303.251 951.1,301.551C962.7,300.051 964.9,298.451 967,290.651C970,279.451 964.7,267.051 954.6,261.651C950.189,259.256 926.606,256.259 919.1,266.651C910.8,278.451 917.3,296.451 931.7,301.451Z" style="fill:rgb(106,240,42);"/>
|
||||
</g>
|
||||
<g id="d_top" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M1527.34,265.351C1524.91,259.714 1520.86,250.093 1517.75,243.467C1513.5,233.989 1509.37,225.455 1508.88,219.735C1508.06,211.564 1509.25,209.966 1512.84,207.515C1514.97,205.881 1522.81,202.776 1530.16,200.488C1541.6,196.893 1545.85,196.403 1558.11,196.893C1567.91,197.383 1573.96,198.527 1576.74,200.325C1579.35,201.959 1582.3,206.861 1584.42,212.418C1586.38,217.647 1589.81,228.106 1591.94,235.623C1592.76,238.333 1594.07,244.355 1595.49,251.462C1594.02,251.355 1592.67,251.21 1591.93,250.84C1590.9,250.325 1591.25,249.929 1590.23,249.421C1589.88,249.248 1586.23,246.47 1584.56,248.144C1581.82,250.878 1580.59,249.118 1579.87,250.556C1578.08,254.153 1569.16,249.353 1572.35,258.927C1572.62,259.725 1572.31,259.953 1573.06,260.204C1575,260.851 1574.99,260.811 1575.48,261.055C1576.65,261.645 1588.09,263.504 1587.82,264.318C1587.46,265.383 1585.37,266.08 1585.12,266.163C1584.7,266.305 1580.23,267.794 1579.87,268.149C1578.13,269.897 1572.34,268.12 1572.21,267.865C1571.89,267.225 1571.98,267.255 1571.64,266.588C1571.31,265.921 1560.16,266.673 1559.73,266.021C1556.97,261.884 1562.69,259.25 1564.27,256.089C1565.81,253.005 1564.98,238.501 1564.55,237.645C1564.11,236.759 1563.86,236.967 1563.41,236.084C1562.26,233.782 1561.69,234.614 1560.72,234.808C1553.48,236.256 1557.64,242.124 1550.65,244.455C1548.02,245.332 1548.38,248.991 1547.1,250.272C1545.74,251.636 1545.44,252.645 1545.11,252.968C1544.34,253.737 1545.16,254.627 1543.13,256.657C1538.67,261.11 1541.92,265.384 1540.86,266.447C1540.55,266.756 1538.71,273.781 1537.59,273.966C1534.03,274.56 1532.08,268.731 1532.06,268.717C1531.81,268.47 1530.92,264.277 1527.34,265.351ZM1507.26,262.817C1510.87,264.648 1514.05,266.455 1516.84,268.178C1515.78,269.138 1514.86,270.529 1514.18,272.547C1513.23,275.42 1510.17,272.364 1509.93,272.122C1507.04,269.23 1507.72,265.774 1507.26,262.817Z" style="fill:rgb(193,253,32);"/>
|
||||
</g>
|
||||
<g id="d_bottom" transform="matrix(0.633387,0,0,0.633387,-2.16023e-13,-71.0691)">
|
||||
<path d="M1598.07,388.181C1597.6,390.354 1597.12,392.374 1596.68,394.138C1594.39,402.473 1589.98,414.729 1586.54,421.102C1581.8,430.09 1579.03,433.359 1574.78,435.483C1571.51,436.954 1564.97,438.915 1560.07,440.059C1555,441.203 1542.91,442.673 1533.11,443.327C1523.14,443.981 1506.63,443.981 1496.34,443.164C1485.88,442.347 1470.35,439.895 1461.53,437.771C1452.7,435.483 1440.94,431.561 1435.38,428.946C1429.83,426.332 1422.14,421.919 1418.39,419.141C1414.63,416.363 1409.56,410.807 1407.11,406.721C1404.91,402.866 1402.7,396.457 1401.18,389.157C1414.18,390.323 1413.76,392.665 1418.99,397.898C1423.03,401.941 1425.71,398.263 1427.86,397.188C1429.48,396.378 1428.89,395.694 1430.52,394.883C1432.68,393.8 1436.08,395.595 1436.72,392.4C1436.89,391.553 1442.22,386.606 1442.93,386.37C1444.9,385.712 1444.16,384.489 1445.41,384.419C1448,384.275 1448.16,384.149 1450.02,386.015C1450.92,386.913 1456.93,387.245 1456.94,387.257C1458.9,389.22 1465.14,389.346 1467.23,387.257C1469.03,385.451 1472.39,391.134 1480,383.532C1480.65,382.877 1481.41,382.35 1482.28,381.928C1485.74,384.796 1489.74,387.114 1494.21,388.665C1502.71,391.607 1505.16,391.607 1525.92,388.829C1536.04,387.519 1541.79,386.163 1545.46,383.239C1545.83,383.471 1546.18,383.742 1546.5,384.064C1547,384.567 1551.71,387.418 1553.06,383.355C1553.96,380.678 1555.43,381.638 1558.74,375.02C1562,368.494 1564.12,380.991 1565.66,381.759C1566.46,382.161 1565.17,386.589 1566.72,388.143C1568.01,389.435 1567.41,392.484 1569.2,392.932C1571.02,393.387 1575.74,393.072 1577.72,392.577C1578.6,392.356 1588.95,392.69 1591.19,390.449C1591.96,389.68 1596.89,388.448 1597.4,388.321C1597.65,388.258 1597.87,388.213 1598.07,388.181Z" style="fill:rgb(8,223,28);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="controller" transform="matrix(1.74196,0.213885,-0.213885,1.74196,-1198.25,-318.016)">
|
||||
<g id="controller_shadow" transform="matrix(0.565541,-0.0694397,0.0694397,0.565541,696.515,84.3871)">
|
||||
<path d="M1419.81,473.179C1401.86,469.487 1386.35,459.968 1375.04,446.884C1374.98,446.81 1374.85,446.662 1374.85,446.662L1259.66,432.449C1259.66,432.449 1259.45,432.597 1259.34,432.671C1243.52,443.799 1223.68,449.326 1202.99,446.782C1158.7,441.334 1127.16,400.948 1132.61,356.65C1138.06,312.352 1178.44,280.81 1222.74,286.257L1446.05,313.721C1466.36,316.219 1484,326.07 1496.61,340.276C1460.72,398.605 1438.4,442.425 1419.81,473.179Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="controller_base" transform="matrix(1,1.38778e-17,-1.38778e-17,1,0.0303899,0.00185873)">
|
||||
<path d="M1543.54,151.836C1568.96,151.841 1589.6,172.491 1589.6,197.922C1589.59,223.352 1568.94,243.995 1543.52,243.99C1531.63,243.988 1520.8,239.476 1512.62,232.076C1512.58,232.039 1512.5,231.964 1512.5,231.964L1446.37,231.924C1446.37,231.924 1446.26,232.023 1446.21,232.072C1438.03,239.464 1427.2,243.967 1415.32,243.965C1389.89,243.96 1369.25,223.31 1369.26,197.879C1369.26,172.448 1389.91,151.806 1415.34,151.811C1428.76,151.814 1531.15,151.834 1543.54,151.836Z" style="fill:rgb(203,207,204);stroke:black;stroke-width:2.65px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="panel-right">
|
||||
<g id="back" transform="matrix(1.25194,6.94183e-05,-6.94266e-05,1.25209,702.158,-210.326)">
|
||||
<path d="M671.126,294.011C688.787,293.917 703.201,308.18 703.295,325.841C703.388,343.502 689.126,357.916 671.465,358.01C653.804,358.104 639.389,343.841 639.296,326.18C639.202,308.519 653.465,294.104 671.126,294.011Z" style="fill:rgb(70,93,99);"/>
|
||||
</g>
|
||||
<g id="labels">
|
||||
<g id="X" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1073.74,-61.4904)">
|
||||
<path d="M671.925,328.927L674.297,325.264L672.113,321.931L673.764,321.922L675.178,324.162L676.541,321.907L678.177,321.899L676.019,325.308L678.429,328.893L676.726,328.902L675.162,326.491L673.619,328.918L671.925,328.927Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="Y" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1026.13,-24.0172)">
|
||||
<path d="M674.752,329.265L674.736,326.321L672.153,322.284L673.808,322.275L675.469,325.034L677.067,322.258L678.694,322.249L676.144,326.323L676.16,329.258L674.752,329.265Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="B" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1043.41,-8.06965)">
|
||||
<path d="M673,322.152L675.797,322.137C676.35,322.134 676.763,322.155 677.035,322.2C677.307,322.244 677.551,322.339 677.767,322.484C677.982,322.63 678.162,322.823 678.307,323.066C678.451,323.309 678.524,323.581 678.526,323.883C678.528,324.211 678.441,324.512 678.266,324.786C678.091,325.061 677.852,325.267 677.551,325.406C677.978,325.528 678.307,325.737 678.537,326.035C678.768,326.333 678.884,326.684 678.886,327.088C678.888,327.406 678.816,327.716 678.669,328.017C678.523,328.319 678.322,328.56 678.067,328.741C677.812,328.922 677.497,329.034 677.122,329.078C676.887,329.104 676.319,329.123 675.419,329.134L673.038,329.147L673,322.152ZM674.419,323.309L674.428,324.926L675.353,324.921C675.904,324.918 676.246,324.908 676.379,324.892C676.621,324.862 676.81,324.777 676.948,324.638C677.086,324.499 677.154,324.317 677.153,324.091C677.151,323.875 677.091,323.699 676.971,323.565C676.851,323.43 676.673,323.349 676.438,323.322C676.298,323.307 675.895,323.301 675.23,323.304L674.419,323.309ZM674.434,326.09L674.444,327.961L675.751,327.954C676.26,327.951 676.583,327.935 676.72,327.906C676.929,327.867 677.1,327.773 677.231,327.624C677.362,327.475 677.427,327.277 677.426,327.029C677.425,326.819 677.373,326.641 677.27,326.495C677.168,326.349 677.02,326.244 676.827,326.178C676.634,326.112 676.217,326.081 675.574,326.084L674.434,326.09Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g id="A" transform="matrix(0.715199,3.96568e-05,-3.96615e-05,0.715285,1092.32,-44.9897)">
|
||||
<path d="M679.066,328.752L677.53,328.76L676.911,327.174L674.115,327.189L673.546,328.781L672.047,328.789L674.735,321.78L676.228,321.772L679.066,328.752ZM676.451,325.998L675.474,323.408L674.543,326.008L676.451,325.998Z" style="fill:rgb(200,208,210);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="button-set2">
|
||||
<g id="reduttonframe1" transform="matrix(0.756173,0.897271,-0.581386,0.490079,1194.96,-604.73)">
|
||||
<path d="M733.551,309.883C733.526,302.643 729.697,296.797 725.006,296.836C720.315,296.874 716.526,302.782 716.551,310.022L716.677,346.788C716.702,354.027 720.531,359.873 725.222,359.835C729.913,359.796 733.702,353.888 733.677,346.649L733.551,309.883Z" style="fill:rgb(209,209,205);"/>
|
||||
</g>
|
||||
<g id="redbutton2" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1381.18,-536.495)">
|
||||
<path d="M678.124,355.079C682.497,355.056 686.065,358.587 686.088,362.959C686.111,367.331 682.581,370.9 678.208,370.923C673.836,370.946 670.267,367.415 670.244,363.043C670.221,358.671 673.752,355.102 678.124,355.079Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton21" serif:id="redbutton2" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1382.78,-538.55)">
|
||||
<path d="M678.124,355.079C682.497,355.056 686.065,358.587 686.088,362.959C686.111,367.331 682.581,370.9 678.208,370.923C673.836,370.946 670.267,367.415 670.244,363.043C670.221,358.671 673.752,355.102 678.124,355.079Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
<g id="redbutton1" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1401.09,-553.279)">
|
||||
<path d="M677.987,355.079C682.359,355.056 685.927,358.587 685.951,362.959C685.974,367.332 682.443,370.9 678.07,370.923C673.698,370.946 670.13,367.416 670.106,363.043C670.083,358.671 673.614,355.102 677.987,355.079Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton11" serif:id="redbutton1" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1402.7,-555.334)">
|
||||
<path d="M677.987,355.079C682.359,355.056 685.927,358.587 685.951,362.959C685.974,367.332 682.443,370.9 678.07,370.923C673.698,370.946 670.13,367.416 670.106,363.043C670.083,358.671 673.614,355.102 677.987,355.079Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="button-set1">
|
||||
<g id="redbuttonframe2" transform="matrix(0.756173,0.897271,-0.581386,0.490079,1174.3,-621.108)">
|
||||
<path d="M733.575,310.063C733.55,302.823 729.721,296.977 725.03,297.015C720.339,297.054 716.55,302.962 716.575,310.202L716.701,346.967C716.726,354.207 720.555,360.053 725.246,360.015C729.937,359.976 733.726,354.068 733.701,346.828L733.575,310.063Z" style="fill:rgb(209,209,205);"/>
|
||||
</g>
|
||||
<g id="redbutton4" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1360.52,-552.873)">
|
||||
<path d="M678.152,355.215C682.525,355.192 686.093,358.723 686.116,363.096C686.14,367.468 682.609,371.036 678.236,371.06C673.864,371.083 670.295,367.552 670.272,363.179C670.249,358.807 673.78,355.239 678.152,355.215Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton41" serif:id="redbutton4" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1362.13,-554.928)">
|
||||
<path d="M678.152,355.215C682.525,355.192 686.093,358.723 686.116,363.096C686.14,367.468 682.609,371.036 678.236,371.06C673.864,371.083 670.295,367.552 670.272,363.179C670.249,358.807 673.78,355.239 678.152,355.215Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
<g id="redbutton3" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1380.43,-569.657)">
|
||||
<path d="M678.015,355.216C682.387,355.193 685.955,358.724 685.979,363.096C686.002,367.468 682.471,371.037 678.099,371.06C673.726,371.083 670.158,367.552 670.135,363.18C670.111,358.808 673.642,355.239 678.015,355.216Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="redbutton31" serif:id="redbutton3" transform="matrix(0.645468,0.76591,-0.765818,0.645545,1382.04,-571.712)">
|
||||
<path d="M678.015,355.216C682.387,355.193 685.955,358.724 685.979,363.096C686.002,367.468 682.471,371.037 678.099,371.06C673.726,371.083 670.158,367.552 670.135,363.18C670.111,358.808 673.642,355.239 678.015,355.216Z" style="fill:rgb(190,0,3);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="panel-middle">
|
||||
<g id="button2_shadow" transform="matrix(0.7629,-0.596793,0.50169,0.641485,825.176,317.256)">
|
||||
<path d="M595.758,371.768C595.756,374.34 593.999,376.426 591.836,376.424L578.232,376.41C576.07,376.407 574.316,374.317 574.318,371.745C574.319,369.173 576.077,367.087 578.239,367.089L591.843,367.104C594.005,367.106 595.759,369.196 595.758,371.768Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="button1_shadow" transform="matrix(0.762933,-0.596751,0.501656,0.641513,849.213,314.296)">
|
||||
<path d="M593.889,374.588C593.889,377.16 592.133,379.248 589.971,379.247L576.367,379.246C574.204,379.245 572.449,377.157 572.449,374.585C572.449,372.013 574.205,369.925 576.368,369.925L589.971,369.927C592.134,369.927 593.889,372.016 593.889,374.588Z" style="fill-opacity:0.5;"/>
|
||||
</g>
|
||||
<g id="button2" transform="matrix(0.7629,-0.596793,0.50169,0.641485,826.704,315.3)">
|
||||
<path d="M594.538,371.767C594.539,369.996 593.331,368.556 591.842,368.555L578.238,368.54C576.749,368.539 575.539,369.976 575.538,371.747C575.536,373.518 576.744,374.957 578.233,374.959L591.837,374.973C593.326,374.974 594.536,373.538 594.538,371.767Z" style="fill:rgb(51,66,73);stroke:black;stroke-width:2.64px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="button1" transform="matrix(0.762933,-0.596751,0.501656,0.641513,850.741,312.34)">
|
||||
<path d="M592.669,374.588C592.669,372.816 591.461,371.378 589.971,371.378L576.368,371.376C574.878,371.376 573.669,372.814 573.669,374.585C573.669,376.356 574.878,377.794 576.367,377.795L589.971,377.796C591.46,377.796 592.669,376.359 592.669,374.588Z" style="fill:rgb(50,65,72);stroke:black;stroke-width:2.64px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="infobox" transform="matrix(0.427146,0.052447,-0.0524533,0.427198,1387.96,77.9999)">
|
||||
<path d="M292.484,163.35C291.66,156.627 285.532,151.838 278.809,152.662L176.592,165.191C169.869,166.015 165.08,172.142 165.904,178.865L168.891,203.228C169.716,209.951 175.843,214.741 182.566,213.917L284.783,201.388C291.506,200.564 296.295,194.436 295.471,187.713L292.484,163.35Z" style="fill:rgb(100,100,100);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="panel-left">
|
||||
<g id="d-pad">
|
||||
<g id="dpad_shadow" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-11.5965,85.393)">
|
||||
<path d="M1409.57,204.851L1409.57,212.522C1409.57,216.449 1409.13,216.008 1413.06,216.009L1420.03,216.01C1423.95,216.01 1423.51,216.451 1423.51,212.524L1423.52,204.854L1431.18,204.855C1435.11,204.855 1434.67,205.296 1434.67,201.369L1434.67,194.396C1434.67,190.468 1435.11,190.91 1431.19,190.909L1423.52,190.908L1423.52,183.238C1423.52,179.31 1423.96,179.751 1420.03,179.751L1413.06,179.75C1409.13,179.749 1409.58,179.308 1409.57,183.236L1409.57,190.906L1401.9,190.905C1397.98,190.904 1398.42,190.463 1398.42,194.39L1398.42,201.363C1398.41,205.291 1397.97,204.85 1401.9,204.85L1409.57,204.851Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="dpad" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-9.03074,82.109)">
|
||||
<path d="M1409.57,204.851L1409.57,212.522C1409.57,216.449 1409.13,216.008 1413.06,216.009L1420.03,216.01C1423.95,216.01 1423.51,216.451 1423.51,212.524L1423.52,204.854L1431.18,204.855C1435.11,204.855 1434.67,205.296 1434.67,201.369L1434.67,194.396C1434.67,190.468 1435.11,190.91 1431.19,190.909L1423.52,190.908L1423.52,183.238C1423.52,179.31 1423.96,179.751 1420.03,179.751L1413.06,179.75C1409.13,179.749 1409.58,179.308 1409.57,183.236L1409.57,190.906L1401.9,190.905C1397.98,190.904 1398.42,190.463 1398.42,194.39L1398.42,201.363C1398.41,205.291 1397.97,204.85 1401.9,204.85L1409.57,204.851Z" style="fill:rgb(32,44,51);stroke:black;stroke-width:2.47px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="shadow1" transform="matrix(0.998332,-0.05773,0.05773,0.998332,-8.59573,82.0861)">
|
||||
<path d="M1404.38,197.522L1428.35,197.526C1429.56,197.526 1431.18,198.212 1431.18,198.212C1431.18,198.212 1431.2,197.683 1431.2,197.375L1431.2,196.227C1431.2,192.861 1431.92,193.758 1428.35,193.757L1420.24,193.772L1420.24,185.044C1420.24,181.678 1420.97,182.575 1417.39,182.574L1415.79,182.599C1412.21,182.599 1412.93,181.702 1412.93,185.068L1412.93,193.796L1404.38,193.754C1400.81,193.753 1401.53,192.856 1401.53,196.223L1401.53,197.371C1401.53,197.714 1401.52,198.076 1401.52,198.076C1401.52,198.076 1403.2,197.522 1404.38,197.522Z" style="fill:rgb(17,22,24);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="shadow2" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1416.31,227.099C1416.96,227.133 1423.74,227.37 1431.27,222.565C1435.87,219.629 1439.4,213.952 1439.4,213.952C1439.4,213.952 1437.11,219.468 1431.59,223.028C1424.74,227.454 1417.01,227.137 1416.31,227.099C1416.28,227.097 1416.26,227.096 1416.26,227.096C1416.26,227.096 1416.28,227.097 1416.31,227.099Z" style="fill:rgb(128,128,128);"/>
|
||||
</g>
|
||||
<g id="shadow11" serif:id="shadow1" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1440.8,187.23C1440.26,186.136 1439.52,184.911 1438.53,183.776C1435.8,180.65 1431.2,177.888 1427.12,176.064C1423.77,174.562 1420.01,172.858 1415.45,172.492C1411.33,172.162 1405.21,173.498 1405.21,173.498C1405.21,173.498 1417.69,168.118 1428.8,174.116C1435.62,177.8 1439.15,183.588 1440.8,187.23C1441.71,189.099 1442.04,190.584 1442.04,190.584C1442.04,190.584 1441.7,189.231 1440.8,187.23Z" style="fill:rgb(59,59,59);"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snake-head" transform="matrix(1.74196,0.213885,-0.213885,1.74196,-1198.25,-318.016)">
|
||||
<g id="head-shadow">
|
||||
<g id="jaw_shadow" transform="matrix(0.966789,-0.000509118,0.000541645,1.02855,886.258,-166.995)">
|
||||
<path d="M569.42,389.108C573.599,388.846 591.189,392.816 601.973,392.583C621.269,392.166 625.866,390.112 629.084,390.607C644.095,392.916 646.899,404.867 645.412,412.246C643.561,421.437 636.374,436.903 599.987,436.671C558.349,436.406 552.265,415.036 553.411,405.263C554.978,391.9 564.566,389.412 569.42,389.108Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
<g id="head_shadow" transform="matrix(0.565541,-0.0694397,0.0694397,0.565541,696.515,84.3871)">
|
||||
<path d="M1547.17,262.701C1547.17,262.701 1536.35,276.182 1532.38,281.213C1526.64,288.487 1515.91,289.702 1507.77,294.127C1498.91,298.942 1487.62,304.343 1479.24,310.102C1471.38,315.503 1464.59,323.65 1457.47,328.679C1450.97,333.281 1443.72,336.763 1436.57,340.278C1428.4,344.292 1418.27,349.836 1408.47,352.763C1398.66,355.69 1388.11,357.435 1377.73,357.84C1364.98,358.338 1346.48,357.539 1331.94,355.751C1317.94,354.028 1302.17,350.614 1290.5,347.112C1280.56,344.128 1270.72,339.956 1261.92,334.74C1253.11,329.525 1244.63,321.692 1237.68,315.818C1231.59,310.675 1225.4,305.541 1220.21,299.5C1214.52,292.897 1209.91,283.347 1203.59,276.202C1196.85,268.583 1187.21,260.607 1179.78,253.79C1172.96,247.525 1162.84,243.745 1159.03,235.297C1155.59,227.661 1154.69,215.841 1155.61,205.634C1156.14,202.246 1156.96,198.847 1158.07,195.448C1163.17,200.777 1167.82,205.426 1174.09,207.518C1195.65,56.069 1407.89,13.746 1500.57,141.687C1519.42,167.713 1531.85,194.242 1539.26,215.859C1547.78,240.687 1549.69,259.035 1547.17,262.701Z" style="fill-opacity:0.15;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="head_base" transform="matrix(1,1.38778e-17,-1.38778e-17,1,0.0303899,0.00185873)">
|
||||
<path d="M1484.47,23.611C1503.71,23.627 1503.94,13.26 1521.53,9.733C1531.13,7.809 1543.3,9.516 1546.57,10.36C1563.32,14.679 1569.08,31.326 1572.6,40.656C1576.37,50.617 1576.56,55.129 1581.61,66.701C1585.58,75.79 1588.48,82.31 1590.51,88.715C1592.68,95.56 1594.62,100.761 1594.62,107.772C1594.62,114.255 1593.45,122.13 1590.61,126.803C1587.87,131.316 1581.89,132.748 1577.59,135.816C1572.92,139.154 1566.91,142.993 1562.57,146.831C1558.5,150.432 1555.22,155.511 1551.55,158.849C1548.19,161.904 1544.33,164.376 1540.53,166.861C1536.19,169.698 1530.85,173.536 1525.5,175.873C1520.16,178.209 1514.32,179.928 1508.48,180.878C1501.3,182.045 1490.78,182.878 1482.43,182.876C1474.39,182.874 1465.24,182.038 1458.4,180.868C1452.57,179.871 1446.71,178.195 1441.37,175.856C1436.03,173.518 1430.69,169.677 1426.35,166.838C1422.55,164.352 1418.69,161.878 1415.34,158.823C1411.66,155.483 1408.39,150.403 1404.32,146.801C1399.98,142.96 1393.97,139.119 1389.3,135.779C1385.01,132.71 1379.02,131.275 1376.28,126.762C1373.44,122.087 1372.11,114.073 1372.28,107.729C1372.45,101.385 1374.99,94.84 1377.29,88.698C1379.8,82.021 1384.45,74.886 1387.31,67.665C1390.48,59.652 1392.56,49.579 1396.33,40.622C1400.2,31.428 1407.69,16.425 1419.46,11.157C1427.43,7.591 1441.82,8.413 1448.42,9.719C1466.03,13.208 1465.82,23.595 1484.47,23.611Z" style="fill:rgb(254,227,45);stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="face-shadows" transform="matrix(1.00155,-1.38778e-17,-1.52656e-16,1.00167,894.193,-165.734)">
|
||||
<g id="shadow3" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1521.82,12.219C1527.23,9.394 1538.79,9.481 1545.1,11.167C1551.13,12.782 1555.87,17.325 1559.67,22.34C1564.5,28.725 1565.64,26.87 1575.93,56.91C1578.26,63.681 1580.8,70.655 1582.88,75.235C1584.34,78.453 1585.51,81.112 1586.79,84.39C1588.45,88.629 1590.48,95.58 1591.22,100.666C1591.9,105.384 1592.5,110.336 1591.22,114.908C1589.93,119.486 1589.5,125.306 1585.1,128.134C1577.97,132.71 1561.1,144.367 1561.1,144.367C1559.79,142.192 1564.48,132.508 1557.88,121.126C1550.22,107.89 1542.21,104.758 1542.21,104.758C1542.21,104.758 1559.02,95.808 1561.88,71.169C1563.1,60.673 1559.36,41.955 1552.55,33.64C1541.13,19.685 1532.92,19.952 1524,19.12C1519.91,18.738 1520.21,13.064 1521.82,12.219Z" style="fill:rgb(255,223,38);"/>
|
||||
</g>
|
||||
<g id="shadow21" serif:id="shadow2" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1489.73,26.181C1489.73,26.181 1497.4,24.469 1500.5,22.616C1505.93,19.368 1513.67,13.307 1519.81,12.617C1522.82,12.279 1520.63,15.733 1519.77,17.161C1518.47,19.303 1518.94,17.039 1508.98,26.004C1499.72,34.342 1493.84,51.231 1493.74,66.247C1493.69,73.217 1499.3,89.043 1500.75,89.284L1486.73,87.283C1486.73,87.283 1485.25,67.912 1485.72,58.235C1486.22,48.051 1489.73,26.181 1489.73,26.181Z" style="fill:rgb(240,204,0);"/>
|
||||
</g>
|
||||
<g id="shadow12" serif:id="shadow1" transform="matrix(0.998451,1.38332e-17,1.52165e-16,0.998331,-892.808,165.457)">
|
||||
<path d="M1405.32,145.622C1405.32,145.622 1390.63,134.282 1385.68,131.88C1382.04,130.116 1379.62,128.685 1378.27,126.84C1374.35,121.509 1374.05,113.99 1373.89,109.714C1373.6,101.948 1376.82,94.4 1379.12,88.301C1381.31,82.535 1384.28,77.92 1386.77,72.849C1387.2,71.954 1391.56,60.25 1391.85,59.281C1396.63,43.665 1396.04,45.384 1400.14,36.004C1405.24,24.368 1413.02,15.889 1419.26,12.845C1425.33,9.888 1437.14,10.531 1434.52,14.005C1433.35,15.56 1430.27,17.487 1424.6,21.097C1419.41,24.395 1413.77,29.993 1412.28,32.384C1409.35,37.071 1402.77,50.733 1402.43,64.479C1402.3,69.822 1404.06,80.38 1405.04,83.942C1406.61,89.608 1408.61,100.817 1408.61,103.321C1408.61,105.561 1406.55,107.298 1405.61,109.332C1404.61,111.502 1403.13,113.855 1402.6,116.344C1401.94,119.516 1401.31,124.354 1401.6,128.364C1401.94,132.871 1405.32,145.622 1405.32,145.622Z" style="fill:rgb(239,204,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="face-highlights" transform="matrix(1.00155,-1.38778e-17,-1.66533e-16,1.00167,895.927,-160.133)">
|
||||
<g id="highlight3" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1552.81,19.744C1554.06,17.836 1559.64,20.775 1561.12,22.839C1562.85,25.236 1563.88,31.689 1563.07,32.085C1561.92,32.65 1559.86,27.69 1558.19,25.358C1556.46,22.961 1552.32,20.496 1552.81,19.744Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g id="highlight2" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1584.59,109.737C1583.34,109.289 1583.02,112.525 1582.09,115.48C1581.03,118.886 1580.42,119.824 1578.89,121.573C1574.18,126.985 1573.99,130.665 1575,130.752C1579.32,131.121 1582.1,125.084 1583.68,120.932C1584.64,118.437 1585.29,109.991 1584.59,109.737Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g id="highlight1" transform="matrix(0.991009,-0.121666,0.121681,0.99089,-891.119,346.576)">
|
||||
<path d="M1473.1,23.129C1473.68,22.527 1476.81,24.424 1477.83,25.726C1478.85,27.027 1479.79,30.338 1479.21,30.94C1478.63,31.542 1475,30.067 1473.99,28.765C1472.97,27.463 1472.52,23.731 1473.1,23.129Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="eyes">
|
||||
<g id="eye-r">
|
||||
<g id="eyeball-r" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1528.21,22.677C1545.14,22.68 1558.88,41.607 1558.87,64.916C1558.87,88.225 1545.12,107.146 1528.2,107.143C1511.27,107.139 1497.54,88.213 1497.54,64.904C1497.55,41.595 1511.29,22.674 1528.21,22.677Z" style="fill:white;stroke:black;stroke-width:2.77px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="pupil-r" transform="matrix(1.17746,1.11022e-16,8.32667e-17,1.17746,-268.628,-25.7873)">
|
||||
<path d="M1514.56,72.669C1519.87,72.67 1524.19,76.987 1524.19,82.303C1524.19,87.619 1519.87,91.935 1514.55,91.934C1509.24,91.933 1504.92,87.616 1504.92,82.299C1504.93,76.983 1509.24,72.668 1514.56,72.669Z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="eye-l">
|
||||
<g id="eyeball-l" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1437.73,22.659C1454.65,22.663 1468.39,41.589 1468.38,64.898C1468.38,88.207 1454.63,107.128 1437.71,107.125C1420.79,107.122 1407.05,88.195 1407.05,64.886C1407.06,41.577 1420.8,22.656 1437.73,22.659Z" style="fill:white;stroke:black;stroke-width:2.77px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="pupil-l" transform="matrix(1.17746,1.11022e-16,8.32667e-17,1.17746,-257.448,-25.7851)">
|
||||
<path d="M1451.56,72.656C1456.87,72.657 1461.19,76.974 1461.19,82.291C1461.19,87.607 1456.87,91.922 1451.55,91.921C1446.24,91.92 1441.92,87.603 1441.92,82.287C1441.92,76.971 1446.24,72.655 1451.56,72.656Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="jaw">
|
||||
<g id="jaw-base" transform="matrix(0.966789,-0.000509118,0.000541645,1.02855,892.707,-175.25)">
|
||||
<path d="M569.42,389.108C573.599,388.846 591.189,392.816 601.973,392.583C621.269,392.166 625.866,390.112 629.084,390.607C644.095,392.916 646.899,404.867 645.412,412.246C643.561,421.437 636.374,436.903 599.987,436.671C558.349,436.406 552.265,415.036 553.411,405.263C554.978,391.9 564.566,389.412 569.42,389.108Z" style="fill:rgb(240,204,0);stroke:black;stroke-width:2.83px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="jaw-light" transform="matrix(0.931083,-0.000490315,0.00052164,0.990567,913.997,-159.516)">
|
||||
<path d="M587.362,396.695C592.828,396.373 597.492,396.713 604.111,396.033C614.154,394.999 620.211,392.212 627.296,391.234C634.38,390.256 640.519,394.432 643.726,399.294C647.362,404.804 646.532,409.459 645.797,412.778C642.972,425.521 631.326,433.025 602.625,432.724C591.307,432.605 585.525,431.883 577.278,426.782C571.056,422.933 566.066,412.338 569.276,405.034C572.991,396.583 582.194,396.999 587.362,396.695Z" style="fill:rgb(254,227,45);"/>
|
||||
</g>
|
||||
<g id="hilight1" transform="matrix(0.966789,-0.000509118,0.00050918,0.966905,672.291,-152.965)">
|
||||
<path d="M859.405,400.127C860.405,400.126 863.362,401.485 864.406,403.124C865.574,404.957 866.41,409.789 866.41,411.123C866.411,411.789 864.882,411.595 864.41,411.124C863.743,410.458 863.303,408.317 862.408,407.125C861.408,405.792 858.907,404.293 858.406,403.127C857.99,402.158 858.405,400.127 859.405,400.127Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="snout" transform="matrix(1.01627,2.49019e-17,-2.49019e-17,1.01627,-24.0994,-2.4617)">
|
||||
<g id="tooth_r" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1532.52,170.866L1544.54,163.856L1540.52,211.936L1532.52,170.866Z" style="fill:white;stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="tooth_l" transform="matrix(1,0,0,1,0.0303899,0.00185873)">
|
||||
<path d="M1430.36,170.846L1418.34,163.832L1422.34,211.913L1430.36,170.846Z" style="fill:white;stroke:black;stroke-width:2.9px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="snout_base" transform="matrix(1.16089,0.000531638,-0.000959148,2.0944,804.244,-533.637)">
|
||||
<path d="M584.086,297.961C620.512,297.97 650.077,307.836 650.067,319.978C650.056,332.12 620.474,341.97 584.047,341.961C547.621,341.951 518.056,332.085 518.067,319.943C518.077,307.801 547.659,297.951 584.086,297.961Z" style="fill:rgb(254,227,45);stroke:black;stroke-width:1.72px;stroke-linecap:round;stroke-miterlimit:1.5;"/>
|
||||
</g>
|
||||
<g id="shadow13" serif:id="shadow1" transform="matrix(0.590658,0.000270496,-0.000270529,0.590729,-605.649,-55.1469)">
|
||||
<path d="M3478.21,257.973C3478.21,257.973 3427.78,276.329 3427.76,323.263C3427.73,370.198 3476.76,386.865 3476.76,386.865C3476.76,386.865 3411.18,370.19 3411.21,323.255C3411.23,276.321 3478.21,257.973 3478.21,257.973Z" style="fill:rgb(232,197,0);"/>
|
||||
</g>
|
||||
<g id="nostril-r">
|
||||
<g id="nostril_r_base" transform="matrix(1.15237,0.000527734,-0.000608997,1.32981,860.768,-268.078)">
|
||||
<path d="M564.004,297.373C571.731,297.377 578.003,300.292 578.001,303.879C577.999,307.467 571.724,310.377 563.997,310.373C556.27,310.37 549.999,307.455 550.001,303.868C550.003,300.28 556.278,297.37 564.004,297.373Z" style="fill:rgb(247,219,39);"/>
|
||||
</g>
|
||||
<g id="shadow_r" transform="matrix(0.465447,0.000213155,-0.00021318,0.465503,-114.16,3.52739)">
|
||||
<path d="M3456.32,281.48C3458.55,272.379 3473.1,265.348 3490.7,265.357C3509.83,265.366 3525.36,273.694 3525.35,283.942C3525.35,289.793 3520.28,295.013 3512.38,298.413C3512.57,297.618 3512.67,296.808 3512.67,295.985C3512.68,285.736 3497.15,277.409 3478.02,277.399C3469.81,277.395 3462.27,278.924 3456.32,281.48Z" style="fill:rgb(205,177,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="nostril-l">
|
||||
<g id="nostril_l_base" transform="matrix(1.15237,0.000527734,-0.000608997,1.32981,800.675,-268.105)">
|
||||
<path d="M564.004,297.352C571.731,297.355 578.003,300.27 578.001,303.857C577.999,307.445 571.724,310.355 563.997,310.352C556.27,310.348 549.999,307.433 550.001,303.846C550.003,300.258 556.278,297.348 564.004,297.352Z" style="fill:rgb(247,219,39);"/>
|
||||
</g>
|
||||
<g id="shadow_l" transform="matrix(0.465447,0.000213155,-0.00021318,0.465503,-174.253,3.49987)">
|
||||
<path d="M3456.32,281.418C3458.55,272.316 3473.1,265.286 3490.7,265.294C3509.83,265.303 3525.36,273.631 3525.35,283.88C3525.35,289.73 3520.28,294.95 3512.38,298.351C3512.57,297.556 3512.67,296.745 3512.67,295.922C3512.68,285.674 3497.15,277.346 3478.02,277.337C3469.81,277.333 3462.27,278.861 3456.32,281.418Z" style="fill:rgb(205,177,0);"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="highlight11" serif:id="highlight1" transform="matrix(1.00155,-1.45487e-05,-1.45487e-05,1.00167,26.65,-13.0335)">
|
||||
<path d="M1505.26,121.885C1506.28,120.356 1512.93,125.765 1513.57,126.609C1514.35,127.654 1520.6,132.045 1517.75,134.502C1514.82,137.02 1513.11,131.001 1510.92,128.854C1508.92,126.891 1503.41,124.686 1505.26,121.885Z" style="fill:white;"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 17 KiB |
@@ -6,26 +6,26 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight { background: #eeffcc; }
|
||||
.highlight .c { color: #408090; font-style: italic } /* Comment */
|
||||
.highlight .err { border: 1px solid #F00 } /* Error */
|
||||
.highlight .err { border: 1px solid #FF0000 } /* Error */
|
||||
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
|
||||
.highlight .o { color: #666 } /* Operator */
|
||||
.highlight .o { color: #666666 } /* Operator */
|
||||
.highlight .ch { color: #408090; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #007020 } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #408090; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #408090; background-color: #FFF0F0 } /* Comment.Special */
|
||||
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
|
||||
.highlight .gd { color: #A00000 } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
|
||||
.highlight .gr { color: #F00 } /* Generic.Error */
|
||||
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .go { color: #333 } /* Generic.Output */
|
||||
.highlight .gp { color: #C65D09; font-weight: bold } /* Generic.Prompt */
|
||||
.highlight .go { color: #333333 } /* Generic.Output */
|
||||
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #04D } /* Generic.Traceback */
|
||||
.highlight .gt { color: #0044DD } /* Generic.Traceback */
|
||||
.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
|
||||
@@ -33,43 +33,43 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
|
||||
.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #902000 } /* Keyword.Type */
|
||||
.highlight .m { color: #208050 } /* Literal.Number */
|
||||
.highlight .s { color: #4070A0 } /* Literal.String */
|
||||
.highlight .na { color: #4070A0 } /* Name.Attribute */
|
||||
.highlight .s { color: #4070a0 } /* Literal.String */
|
||||
.highlight .na { color: #4070a0 } /* Name.Attribute */
|
||||
.highlight .nb { color: #007020 } /* Name.Builtin */
|
||||
.highlight .nc { color: #0E84B5; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #60ADD5 } /* Name.Constant */
|
||||
.highlight .nd { color: #555; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #D55537; font-weight: bold } /* Name.Entity */
|
||||
.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #60add5 } /* Name.Constant */
|
||||
.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
|
||||
.highlight .ne { color: #007020 } /* Name.Exception */
|
||||
.highlight .nf { color: #06287E } /* Name.Function */
|
||||
.highlight .nf { color: #06287e } /* Name.Function */
|
||||
.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
|
||||
.highlight .nn { color: #0E84B5; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: #BB60D5 } /* Name.Variable */
|
||||
.highlight .nv { color: #bb60d5 } /* Name.Variable */
|
||||
.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #BBB } /* Text.Whitespace */
|
||||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.highlight .mb { color: #208050 } /* Literal.Number.Bin */
|
||||
.highlight .mf { color: #208050 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #208050 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #208050 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #208050 } /* Literal.Number.Oct */
|
||||
.highlight .sa { color: #4070A0 } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #4070A0 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #4070A0 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #4070A0 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #4070A0; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4070A0 } /* Literal.String.Double */
|
||||
.highlight .se { color: #4070A0; font-weight: bold } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4070A0 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #70A0D0; font-style: italic } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #C65D09 } /* Literal.String.Other */
|
||||
.highlight .sa { color: #4070a0 } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
|
||||
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #c65d09 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #235388 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #4070A0 } /* Literal.String.Single */
|
||||
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
|
||||
.highlight .fm { color: #06287E } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #BB60D5 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #BB60D5 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #BB60D5 } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #BB60D5 } /* Name.Variable.Magic */
|
||||
.highlight .fm { color: #06287e } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */
|
||||
.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */
|
||||
@@ -1,32 +0,0 @@
|
||||
|
||||
const htmlElement = document.documentElement;
|
||||
|
||||
if (localStorage.getItem('theme') === null) {
|
||||
localStorage.setItem('theme', 'light-theme');
|
||||
htmlElement.classList.add('light-theme');
|
||||
} else {
|
||||
htmlElement.classList.add(localStorage.getItem('theme'));
|
||||
}
|
||||
|
||||
// Execute once the DOM is loaded
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const search_buttons = document.querySelectorAll('.searchbar-button');
|
||||
const search_submit = document.querySelector('.searchbar-submit');
|
||||
|
||||
// When the icon is clicked, submit the search form
|
||||
search_buttons.forEach((button) => {
|
||||
button.addEventListener('click', () => {
|
||||
search_submit.click();
|
||||
});
|
||||
});
|
||||
|
||||
const theme_icons = document.querySelectorAll('.theme-icon');
|
||||
theme_icons.forEach((icon) => {
|
||||
icon.addEventListener('click', () => {
|
||||
const theme = icon.getAttribute('data-theme');
|
||||
htmlElement.classList.add('light-theme', 'dark-theme');
|
||||
htmlElement.classList.remove(theme);
|
||||
localStorage.setItem('theme', htmlElement.classList[0]);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -1,3 +0,0 @@
|
||||
<svg class="searchbar-button" style="fill:#00ba10;" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M31.715 28.953c0.381 0.381 0.381 0.999 0 1.381l-1.381 1.381c-0.382 0.381-1 0.381-1.381 0l-9.668-9.668c-0.105-0.105-0.175-0.229-0.222-0.361-1.983 1.449-4.418 2.314-7.063 2.314-6.627 0-12-5.373-12-12s5.373-12 12-12c6.627 0 12 5.373 12 12 0 2.645-0.865 5.080-2.314 7.063 0.132 0.047 0.256 0.116 0.361 0.222l9.668 9.668zM12 4c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8c0-4.418-3.582-8-8-8z"></path>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 582 B |
@@ -1,5 +1,12 @@
|
||||
/*
|
||||
* searchtools.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* Sphinx JavaScript utilities for the full-text search.
|
||||
*
|
||||
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
@@ -13,7 +20,7 @@ if (typeof Scorer === "undefined") {
|
||||
// and returns the new score.
|
||||
/*
|
||||
score: result => {
|
||||
const [docname, title, anchor, descr, score, filename, kind] = result
|
||||
const [docname, title, anchor, descr, score, filename] = result
|
||||
return score
|
||||
},
|
||||
*/
|
||||
@@ -40,14 +47,6 @@ if (typeof Scorer === "undefined") {
|
||||
};
|
||||
}
|
||||
|
||||
// Global search result kind enum, used by themes to style search results.
|
||||
class SearchResultKind {
|
||||
static get index() { return "index"; }
|
||||
static get object() { return "object"; }
|
||||
static get text() { return "text"; }
|
||||
static get title() { return "title"; }
|
||||
}
|
||||
|
||||
const _removeChildren = (element) => {
|
||||
while (element && element.lastChild) element.removeChild(element.lastChild);
|
||||
};
|
||||
@@ -65,13 +64,9 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
|
||||
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
|
||||
const contentRoot = document.documentElement.dataset.content_root;
|
||||
|
||||
const [docName, title, anchor, descr, score, _filename, kind] = item;
|
||||
const [docName, title, anchor, descr, score, _filename] = item;
|
||||
|
||||
let listItem = document.createElement("li");
|
||||
// Add a class representing the item's type:
|
||||
// can be used by a theme's CSS selector for styling
|
||||
// See SearchResultKind for the class names.
|
||||
listItem.classList.add(`kind-${kind}`);
|
||||
let requestUrl;
|
||||
let linkUrl;
|
||||
if (docBuilder === "dirhtml") {
|
||||
@@ -120,10 +115,8 @@ const _finishSearch = (resultCount) => {
|
||||
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
|
||||
);
|
||||
else
|
||||
Search.status.innerText = Documentation.ngettext(
|
||||
"Search finished, found one page matching the search query.",
|
||||
"Search finished, found ${resultCount} pages matching the search query.",
|
||||
resultCount,
|
||||
Search.status.innerText = _(
|
||||
"Search finished, found ${resultCount} page(s) matching the search query."
|
||||
).replace('${resultCount}', resultCount);
|
||||
};
|
||||
const _displayNextItem = (
|
||||
@@ -145,7 +138,7 @@ const _displayNextItem = (
|
||||
else _finishSearch(resultCount);
|
||||
};
|
||||
// Helper function used by query() to order search results.
|
||||
// Each input is an array of [docname, title, anchor, descr, score, filename, kind].
|
||||
// Each input is an array of [docname, title, anchor, descr, score, filename].
|
||||
// Order the results by score (in opposite order of appearance, since the
|
||||
// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically.
|
||||
const _orderResultsByScoreThenName = (a, b) => {
|
||||
@@ -255,7 +248,6 @@ const Search = {
|
||||
searchSummary.classList.add("search-summary");
|
||||
searchSummary.innerText = "";
|
||||
const searchList = document.createElement("ul");
|
||||
searchList.setAttribute("role", "list");
|
||||
searchList.classList.add("search");
|
||||
|
||||
const out = document.getElementById("search-results");
|
||||
@@ -326,7 +318,7 @@ const Search = {
|
||||
const indexEntries = Search._index.indexentries;
|
||||
|
||||
// Collect multiple result groups to be sorted separately and then ordered.
|
||||
// Each is an array of [docname, title, anchor, descr, score, filename, kind].
|
||||
// Each is an array of [docname, title, anchor, descr, score, filename].
|
||||
const normalResults = [];
|
||||
const nonMainIndexResults = [];
|
||||
|
||||
@@ -345,7 +337,6 @@ const Search = {
|
||||
null,
|
||||
score + boost,
|
||||
filenames[file],
|
||||
SearchResultKind.title,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -363,7 +354,6 @@ const Search = {
|
||||
null,
|
||||
score,
|
||||
filenames[file],
|
||||
SearchResultKind.index,
|
||||
];
|
||||
if (isMain) {
|
||||
normalResults.push(result);
|
||||
@@ -485,7 +475,6 @@ const Search = {
|
||||
descr,
|
||||
score,
|
||||
filenames[match[0]],
|
||||
SearchResultKind.object,
|
||||
]);
|
||||
};
|
||||
Object.keys(objects).forEach((prefix) =>
|
||||
@@ -596,7 +585,6 @@ const Search = {
|
||||
null,
|
||||
score,
|
||||
filenames[file],
|
||||
SearchResultKind.text,
|
||||
]);
|
||||
}
|
||||
return results;
|
||||
|
||||
@@ -5,19 +5,17 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>pygame C API — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>pygame C API — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygame.css?v=a854c6a8" />
|
||||
<script src="_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="genindex.html" />
|
||||
<link rel="search" title="Search" href="search.html" />
|
||||
<link rel="next" title="Slots and c_api - Making functions and data available from other modules" href="c_api/slots.html" />
|
||||
<link rel="prev" title="Tutorial de Pygame - Ejemplo del Chimpancé, Línea Por Línea" href="tutorials/es/ChimpanceLineaporLinea.html" />
|
||||
<link rel="prev" title="한국어 튜토리얼" href="tut/ko/%EB%B9%A8%EA%B0%84%EB%B8%94%EB%A1%9D%20%EA%B2%80%EC%9D%80%EB%B8%94%EB%A1%9D/%EA%B0%9C%EC%9A%94.html" />
|
||||
</head><body>
|
||||
|
||||
<div class="document">
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="index.html">Help Contents</a> ||
|
||||
<a href="genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="index.html">Help Contents</a> ||
|
||||
<a href="genindex.html">Reference Index</a>
|
||||
|
||||
<form action="search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="ref/color.html">Color</a> |
|
||||
<a href="ref/display.html">display</a> |
|
||||
<a href="ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="ref/cursors.html">cursors</a> |
|
||||
<a href="ref/joystick.html">joystick</a> |
|
||||
<a href="ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="ref/camera.html">camera</a> |
|
||||
<a href="ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="ref/examples.html">examples</a> |
|
||||
<a href="ref/fastevent.html">fastevent</a> |
|
||||
<a href="ref/scrap.html">scrap</a> |
|
||||
<a href="ref/system.html">system</a> |
|
||||
<a href="ref/tests.html">tests</a> |
|
||||
<a href="ref/touch.html">touch</a> |
|
||||
<a href="ref/typing.html">typing</a> |
|
||||
<a href="ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="ref/window.html">Window</a>
|
||||
<a href="ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,14 +102,12 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/display.html">API exported by pygame.display</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/event.html">API exported by pygame.event</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/freetype.html">API exported by pygame._freetype</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/joystick.html">API exported by pygame.joystick</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/mixer.html">API exported by pygame.mixer</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/rect.html">Class Rect API exported by pygame.rect</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/rwobject.html">API exported by pygame.rwobject</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/surface.html">Class Surface API exported by pygame.surface</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/surflock.html">API exported by pygame.surflock</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/version.html">API exported by pygame.version</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="c_api/window.html">Class Window API exported by pygame.window</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>src_c/include/ contains header files for applications
|
||||
@@ -130,7 +118,7 @@ headers used by pygame internally.</p>
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -149,14 +137,16 @@ headers used by pygame internally.</p>
|
||||
<a href="c_api/slots.html" title="Slots and c_api - Making functions and data available from other modules"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="tutorials/es/ChimpanceLineaporLinea.html" title="Tutorial de Pygame - Ejemplo del Chimpancé, Línea Por Línea"
|
||||
<a href="tut/ko/%EB%B9%A8%EA%B0%84%EB%B8%94%EB%A1%9D%20%EA%B2%80%EC%9D%80%EB%B8%94%EB%A1%9D/%EA%B0%9C%EC%9A%94.html" title="한국어 튜토리얼"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">pygame C API</a></li>
|
||||
<li class="nav-item nav-item-0"><a href="index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">pygame C API</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>High level API exported by pygame.base — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="../_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="../_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>High level API exported by pygame.base — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a854c6a8" />
|
||||
<script src="../_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="../_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="../_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="../_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="../_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="../_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="../_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="../search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
|
||||
<form action="../search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="../_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="../ref/color.html">Color</a> |
|
||||
<a href="../ref/display.html">display</a> |
|
||||
<a href="../ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="../ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="../ref/cursors.html">cursors</a> |
|
||||
<a href="../ref/joystick.html">joystick</a> |
|
||||
<a href="../ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="../ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="../ref/camera.html">camera</a> |
|
||||
<a href="../ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="../ref/examples.html">examples</a> |
|
||||
<a href="../ref/fastevent.html">fastevent</a> |
|
||||
<a href="../ref/scrap.html">scrap</a> |
|
||||
<a href="../ref/system.html">system</a> |
|
||||
<a href="../ref/tests.html">tests</a> |
|
||||
<a href="../ref/touch.html">touch</a> |
|
||||
<a href="../ref/typing.html">typing</a> |
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="../ref/window.html">Window</a>
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -209,8 +199,7 @@ No Python exceptions are raised.</p>
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pg_RGBAFromObj">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pg_RGBAFromObj</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span>, <span class="n"><span class="pre">Uint8</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">RGBA</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pg_RGBAFromObj" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>You probably want to use the <a class="reference internal" href="color.html#c.pg_RGBAFromObjEx" title="pg_RGBAFromObjEx"><code class="xref c c-func docutils literal notranslate"><span class="pre">pg_RGBAFromObjEx()</span></code></a> function instead of this.</p>
|
||||
<p>Convert the color represented by object <em>obj</em> into a red, green, blue, alpha
|
||||
<dd><p>Convert the color represented by object <em>obj</em> into a red, green, blue, alpha
|
||||
length 4 C array <em>RGBA</em>.
|
||||
The object must be a length 3 or 4 sequence of numbers having values
|
||||
between 0 and 255 inclusive.
|
||||
@@ -327,21 +316,13 @@ Argument <em>screen</em> may be <em>NULL</em>.
|
||||
This functions is called by pygame.display.set_mode().</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgObject_getRectHelper">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgObject_getRectHelper</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">rect</span></span>, <span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="k"><span class="pre">const</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span>, <span class="n"><span class="pre">Py_ssize_t</span></span><span class="w"> </span><span class="n"><span class="pre">nargs</span></span>, <span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">kwnames</span></span>, <span class="kt"><span class="pre">char</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">type</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgObject_getRectHelper" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return a rectangle covering the entire object. Rectangle will start at (0, 0)
|
||||
with a width and height the same size as the object. You can pass keyword
|
||||
arguments to be applied to the attributes of the rect before it is returned.</p>
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api/base.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api/base.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -362,13 +343,15 @@ arguments to be applied to the attributes of the rect before it is returned.</p>
|
||||
<li class="right" >
|
||||
<a href="slots.html" title="Slots and c_api - Making functions and data available from other modules"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-1"><a href="../c_api.html" accesskey="U">pygame C API</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">High level API exported by pygame.base</a></li>
|
||||
<li class="nav-item nav-item-this"><a href="">High level API exported by pygame.base</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>Class BufferProxy API exported by pygame.bufferproxy — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="../_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="../_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>Class BufferProxy API exported by pygame.bufferproxy — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a854c6a8" />
|
||||
<script src="../_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="../_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="../_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="../_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="../_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="../_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="../_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="../search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
|
||||
<form action="../search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="../_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="../ref/color.html">Color</a> |
|
||||
<a href="../ref/display.html">display</a> |
|
||||
<a href="../ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="../ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="../ref/cursors.html">cursors</a> |
|
||||
<a href="../ref/joystick.html">joystick</a> |
|
||||
<a href="../ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="../ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="../ref/camera.html">camera</a> |
|
||||
<a href="../ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="../ref/examples.html">examples</a> |
|
||||
<a href="../ref/fastevent.html">fastevent</a> |
|
||||
<a href="../ref/scrap.html">scrap</a> |
|
||||
<a href="../ref/system.html">system</a> |
|
||||
<a href="../ref/tests.html">tests</a> |
|
||||
<a href="../ref/touch.html">touch</a> |
|
||||
<a href="../ref/typing.html">typing</a> |
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="../ref/window.html">Window</a>
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -106,24 +96,24 @@
|
||||
<section id="src-c-bufferproxy-c">
|
||||
<h2>src_c/bufferproxy.c<a class="headerlink" href="#src-c-bufferproxy-c" title="Link to this heading">¶</a></h2>
|
||||
<p>This extension module defines Python type <a class="tooltip reference internal" href="../ref/bufferproxy.html#pygame.BufferProxy" title=""><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.BufferProxy</span></code><span class="tooltip-content">pygame object to export a surface buffer through an array protocol</span></a>.</p>
|
||||
<p>Header file: src_c/include/pygame.h</p>
|
||||
<p>Header file: src_c/include/pygame_bufferproxy.h</p>
|
||||
<dl class="c var">
|
||||
<dt class="sig sig-object c" id="c.pgBufferProxy_Type">
|
||||
<span class="n"><span class="pre">PyTypeObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgBufferProxy_Type</span></span></span><a class="headerlink" href="#c.pgBufferProxy_Type" title="Link to this definition">¶</a><br /></dt>
|
||||
<dt class="sig sig-object c" id="c.pgBufproxy_Type">
|
||||
<span class="n"><span class="pre">PyTypeObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgBufproxy_Type</span></span></span><a class="headerlink" href="#c.pgBufproxy_Type" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>The pygame buffer proxy object type pygame.BufferProxy.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgBufferProxy_Check">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgBufferProxy_Check</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">x</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufferProxy_Check" title="Link to this definition">¶</a><br /></dt>
|
||||
<dt class="sig sig-object c" id="c.pgBufproxy_Check">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgBufproxy_Check</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">x</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufproxy_Check" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return true if Python object <em>x</em> is a <a class="reference internal" href="../ref/bufferproxy.html#pygame.BufferProxy" title="pygame.BufferProxy"><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.BufferProxy</span></code></a> instance,
|
||||
false otherwise.
|
||||
This will return false on <a class="reference internal" href="../ref/bufferproxy.html#pygame.BufferProxy" title="pygame.BufferProxy"><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.BufferProxy</span></code></a> subclass instances as well.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgBufferProxy_New">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgBufferProxy_New</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span>, <span class="n"><span class="pre">getbufferproc</span></span><span class="w"> </span><span class="n"><span class="pre">get_buffer</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufferProxy_New" title="Link to this definition">¶</a><br /></dt>
|
||||
<dt class="sig sig-object c" id="c.pgBufproxy_New">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgBufproxy_New</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span>, <span class="n"><span class="pre">getbufferproc</span></span><span class="w"> </span><span class="n"><span class="pre">get_buffer</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufproxy_New" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return a new <a class="reference internal" href="../ref/bufferproxy.html#pygame.BufferProxy" title="pygame.BufferProxy"><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.BufferProxy</span></code></a> instance.
|
||||
Argument <em>obj</em> is the Python object that has its data exposed.
|
||||
It may be <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.
|
||||
@@ -133,16 +123,16 @@ On failure raise a Python error and return <code class="docutils literal notrans
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgBufferProxy_GetParent">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgBufferProxy_GetParent</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufferProxy_GetParent" title="Link to this definition">¶</a><br /></dt>
|
||||
<dt class="sig sig-object c" id="c.pgBufproxy_GetParent">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgBufproxy_GetParent</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufproxy_GetParent" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return the Python object wrapped by buffer proxy <em>obj</em>.
|
||||
Argument <em>obj</em> must not be <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.
|
||||
On failure, raise a Python error and return <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgBufferProxy_Trip">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgBufferProxy_Trip</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufferProxy_Trip" title="Link to this definition">¶</a><br /></dt>
|
||||
<dt class="sig sig-object c" id="c.pgBufproxy_Trip">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgBufproxy_Trip</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgBufproxy_Trip" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Cause the buffer proxy object <em>obj</em> to create a <a class="reference internal" href="base.html#c.pg_buffer" title="pg_buffer"><code class="xref c c-type docutils literal notranslate"><span class="pre">pg_buffer</span></code></a> view of its parent.
|
||||
Argument <em>obj</em> must not be <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.
|
||||
Return <code class="docutils literal notranslate"><span class="pre">0</span></code> on success, otherwise raise a Python error and return <code class="docutils literal notranslate"><span class="pre">-1</span></code>.</p>
|
||||
@@ -154,7 +144,7 @@ Return <code class="docutils literal notranslate"><span class="pre">0</span></co
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api/bufferproxy.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api/bufferproxy.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -175,13 +165,15 @@ Return <code class="docutils literal notranslate"><span class="pre">0</span></co
|
||||
<li class="right" >
|
||||
<a href="base.html" title="High level API exported by pygame.base"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-1"><a href="../c_api.html" accesskey="U">pygame C API</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">Class BufferProxy API exported by pygame.bufferproxy</a></li>
|
||||
<li class="nav-item nav-item-this"><a href="">Class BufferProxy API exported by pygame.bufferproxy</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>Class Color API exported by pygame.color — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="../_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="../_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>Class Color API exported by pygame.color — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a854c6a8" />
|
||||
<script src="../_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="../_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="../_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="../_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="../_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="../_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="../_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="../search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
|
||||
<form action="../search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="../_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="../ref/color.html">Color</a> |
|
||||
<a href="../ref/display.html">display</a> |
|
||||
<a href="../ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="../ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="../ref/cursors.html">cursors</a> |
|
||||
<a href="../ref/joystick.html">joystick</a> |
|
||||
<a href="../ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="../ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="../ref/camera.html">camera</a> |
|
||||
<a href="../ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="../ref/examples.html">examples</a> |
|
||||
<a href="../ref/fastevent.html">fastevent</a> |
|
||||
<a href="../ref/scrap.html">scrap</a> |
|
||||
<a href="../ref/system.html">system</a> |
|
||||
<a href="../ref/tests.html">tests</a> |
|
||||
<a href="../ref/touch.html">touch</a> |
|
||||
<a href="../ref/typing.html">typing</a> |
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="../ref/window.html">Window</a>
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,7 +95,7 @@
|
||||
<section id="class-color-api-exported-by-pygame-color">
|
||||
<section id="src-c-color-c">
|
||||
<h2>src_c/color.c<a class="headerlink" href="#src-c-color-c" title="Link to this heading">¶</a></h2>
|
||||
<p>This extension module defines the Python type <a class="tooltip reference internal" href="../ref/color.html#pygame.Color" title=""><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.Color</span></code><span class="tooltip-content">Pygame object for color representations.</span></a>.</p>
|
||||
<p>This extension module defines the Python type <a class="tooltip reference internal" href="../ref/color.html#pygame.Color" title=""><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.Color</span></code><span class="tooltip-content">pygame object for color representations</span></a>.</p>
|
||||
<p>Header file: src_c/include/pygame.h</p>
|
||||
<dl class="c var">
|
||||
<dt class="sig sig-object c" id="c.pgColor_Type">
|
||||
@@ -114,8 +104,8 @@
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgColor_CheckExact">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgColor_CheckExact</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgColor_CheckExact" title="Link to this definition">¶</a><br /></dt>
|
||||
<dt class="sig sig-object c" id="c.pgColor_Check">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgColor_Check</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">obj</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgColor_Check" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return true if <em>obj</em> is an instance of type pgColor_Type,
|
||||
but not a pgColor_Type subclass instance.
|
||||
This macro does not check if <em>obj</em> is not <code class="docutils literal notranslate"><span class="pre">NULL</span></code> or indeed a Python type.</p>
|
||||
@@ -124,7 +114,7 @@ This macro does not check if <em>obj</em> is not <code class="docutils literal n
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgColor_New">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgColor_New</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">Uint8</span></span><span class="w"> </span><span class="n"><span class="pre">rgba</span></span><span class="p"><span class="pre">[</span></span><span class="p"><span class="pre">]</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgColor_New" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return a new <a class="reference internal" href="../ref/color.html#pygame.Color" title="pygame.Color"><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.Color</span></code></a> instance from the four element array <em>rgba</em>.
|
||||
<dd><p>Return a new <a class="reference internal" href="../ref/color.html#pygame.Color" title="pygame.Color"><code class="xref py py-class docutils literal notranslate"><span class="pre">pygame.Color</span></code></a> instance for the the four element array <em>rgba</em>.
|
||||
On failure, raise a Python exception and return <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.</p>
|
||||
</dd></dl>
|
||||
|
||||
@@ -137,31 +127,13 @@ Argument <em>length</em> must be between <code class="docutils literal notransla
|
||||
On failure, raise a Python exception and return <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pg_RGBAFromObjEx">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pg_RGBAFromObjEx</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">color</span></span>, <span class="n"><span class="pre">Uint8</span></span><span class="w"> </span><span class="n"><span class="pre">rgba</span></span><span class="p"><span class="pre">[</span></span><span class="p"><span class="pre">]</span></span>, <span class="n"><span class="pre">pgColorHandleFlags</span></span><span class="w"> </span><span class="n"><span class="pre">handle_flags</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pg_RGBAFromObjEx" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Set the four element array <em>rgba</em> to the color represented by object <em>color</em>.
|
||||
Return <code class="docutils literal notranslate"><span class="pre">1</span></code> on success, <code class="docutils literal notranslate"><span class="pre">0</span></code> otherwise and sets a python exception.
|
||||
This in an extension of <a class="reference internal" href="base.html#c.pg_RGBAFromObj" title="pg_RGBAFromObj"><code class="xref c c-func docutils literal notranslate"><span class="pre">pg_RGBAFromObj()</span></code></a> optimized for pgColor_Type
|
||||
instances and tuples. It can also handle integer and string color inputs based
|
||||
on <code class="docutils literal notranslate"><span class="pre">handle_flags</span></code>.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pg_MappedColorFromObj">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pg_MappedColorFromObj</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">val</span></span>, <span class="n"><span class="pre">SDL_Surface</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">surf</span></span>, <span class="n"><span class="pre">Uint32</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">color</span></span>, <span class="n"><span class="pre">pgColorHandleFlags</span></span><span class="w"> </span><span class="n"><span class="pre">handle_flags</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pg_MappedColorFromObj" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Like above function, but returns mapped color instead. One notable point of difference is
|
||||
the way in which ints are handled (this function directly interprets the int passed as the
|
||||
mapped color on the surface <code class="docutils literal notranslate"><span class="pre">surf`</span></code>)</p>
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api/color.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api/color.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,13 +154,15 @@ mapped color on the surface <code class="docutils literal notranslate"><span cla
|
||||
<li class="right" >
|
||||
<a href="bufferproxy.html" title="Class BufferProxy API exported by pygame.bufferproxy"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-1"><a href="../c_api.html" accesskey="U">pygame C API</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">Class Color API exported by pygame.color</a></li>
|
||||
<li class="nav-item nav-item-this"><a href="">Class Color API exported by pygame.color</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>API exported by pygame.display — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="../_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="../_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>API exported by pygame.display — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a854c6a8" />
|
||||
<script src="../_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="../_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="../_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="../_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="../_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="../_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="../_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="../search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
|
||||
<form action="../search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="../_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="../ref/color.html">Color</a> |
|
||||
<a href="../ref/display.html">display</a> |
|
||||
<a href="../ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="../ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="../ref/cursors.html">cursors</a> |
|
||||
<a href="../ref/joystick.html">joystick</a> |
|
||||
<a href="../ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="../ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="../ref/camera.html">camera</a> |
|
||||
<a href="../ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="../ref/examples.html">examples</a> |
|
||||
<a href="../ref/fastevent.html">fastevent</a> |
|
||||
<a href="../ref/scrap.html">scrap</a> |
|
||||
<a href="../ref/system.html">system</a> |
|
||||
<a href="../ref/tests.html">tests</a> |
|
||||
<a href="../ref/touch.html">touch</a> |
|
||||
<a href="../ref/typing.html">typing</a> |
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="../ref/window.html">Window</a>
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,7 +95,7 @@
|
||||
<section id="api-exported-by-pygame-display">
|
||||
<section id="src-c-display-c">
|
||||
<h2>src_c/display.c<a class="headerlink" href="#src-c-display-c" title="Link to this heading">¶</a></h2>
|
||||
<p>This is the <a class="tooltip reference internal" href="../ref/display.html#module-pygame.display" title=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">pygame.display</span></code><span class="tooltip-content">Pygame module to control the display window and screen.</span></a> extension module.</p>
|
||||
<p>This is the <a class="tooltip reference internal" href="../ref/display.html#module-pygame.display" title=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">pygame.display</span></code><span class="tooltip-content">pygame module to control the display window and screen</span></a> extension module.</p>
|
||||
<p>Header file: src_c/include/pygame.h</p>
|
||||
<dl class="c type">
|
||||
<dt class="sig sig-object c" id="c.pgVidInfoObject">
|
||||
@@ -148,7 +138,7 @@ This macro does not check that <em>x</em> is not <code class="docutils literal n
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api/display.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api/display.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -169,13 +159,15 @@ This macro does not check that <em>x</em> is not <code class="docutils literal n
|
||||
<li class="right" >
|
||||
<a href="color.html" title="Class Color API exported by pygame.color"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-1"><a href="../c_api.html" accesskey="U">pygame C API</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">API exported by pygame.display</a></li>
|
||||
<li class="nav-item nav-item-this"><a href="">API exported by pygame.display</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>API exported by pygame.event — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="../_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="../_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>API exported by pygame.event — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a854c6a8" />
|
||||
<script src="../_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="../_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="../_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="../_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="../_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="../_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="../_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="../search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
|
||||
<form action="../search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="../_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="../ref/color.html">Color</a> |
|
||||
<a href="../ref/display.html">display</a> |
|
||||
<a href="../ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="../ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="../ref/cursors.html">cursors</a> |
|
||||
<a href="../ref/joystick.html">joystick</a> |
|
||||
<a href="../ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="../ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="../ref/camera.html">camera</a> |
|
||||
<a href="../ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="../ref/examples.html">examples</a> |
|
||||
<a href="../ref/fastevent.html">fastevent</a> |
|
||||
<a href="../ref/scrap.html">scrap</a> |
|
||||
<a href="../ref/system.html">system</a> |
|
||||
<a href="../ref/tests.html">tests</a> |
|
||||
<a href="../ref/touch.html">touch</a> |
|
||||
<a href="../ref/typing.html">typing</a> |
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="../ref/window.html">Window</a>
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -142,56 +132,19 @@ On failure raise a Python exception and return <code class="docutils literal not
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgEvent_GetKeyDownInfo">
|
||||
<span class="kt"><span class="pre">char</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgEvent_GetKeyDownInfo</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">void</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgEvent_GetKeyDownInfo" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return an array of bools (using char) of length SDL_NUM_SCANCODES
|
||||
with the most recent key presses.</p>
|
||||
<dt class="sig sig-object c" id="c.pgEvent_New2">
|
||||
<span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgEvent_New2</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">type</span></span>, <span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">dict</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgEvent_New2" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return a new pygame event instance of SDL <em>type</em> and with
|
||||
attribute dictionary <em>dict</em>.
|
||||
If <cite>dict</cite> is <code class="docutils literal notranslate"><span class="pre">NULL</span></code> an empty attribute dictionary is created.
|
||||
On failure raise a Python exception and return <code class="docutils literal notranslate"><span class="pre">NULL</span></code>.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgEvent_GetKeyUpInfo">
|
||||
<span class="kt"><span class="pre">char</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgEvent_GetKeyUpInfo</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">void</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgEvent_GetKeyUpInfo" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return an array of bools (using char) of length SDL_NUM_SCANCODES
|
||||
with the most recent key releases.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgEvent_GetMouseButtonDownInfo">
|
||||
<span class="kt"><span class="pre">char</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgEvent_GetMouseButtonDownInfo</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">void</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgEvent_GetMouseButtonDownInfo" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return an array of bools (using char) of length 5
|
||||
with the most recent button presses.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pgEvent_GetMouseButtonUpInfo">
|
||||
<span class="kt"><span class="pre">char</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="sig-name descname"><span class="n"><span class="pre">pgEvent_GetMouseButtonUpInfo</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">void</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgEvent_GetMouseButtonUpInfo" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Return an array of bools (using char) of length 5
|
||||
with the most recent button releases.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pg_post_event">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pg_post_event</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">Uint32</span></span><span class="w"> </span><span class="n"><span class="pre">type</span></span>, <span class="n"><span class="pre">PyObject</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">dict</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pg_post_event" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Posts a pygame event that is an <code class="docutils literal notranslate"><span class="pre">SDL_USEREVENT</span></code> on the SDL side. This
|
||||
function takes a python dict, which can be NULL too.
|
||||
This function does not need GIL to be held if dict is NULL, but needs GIL
|
||||
otherwise. Just like the SDL <code class="docutils literal notranslate"><span class="pre">SDL_PushEvent</span></code> function, returns 1 on
|
||||
success, 0 if the event was not posted due to it being blocked, and -1 on
|
||||
failure.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.pg_post_event_dictproxy">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pg_post_event_dictproxy</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">Uint32</span></span><span class="w"> </span><span class="n"><span class="pre">type</span></span>, <span class="n"><span class="pre">pgEventDictProxy</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">dict_proxy</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pg_post_event_dictproxy" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Posts a pygame event that is an <code class="docutils literal notranslate"><span class="pre">SDL_USEREVENT</span></code> on the SDL side, can also
|
||||
optionally take a dictproxy instance. Using this dictproxy API is especially
|
||||
useful when multiple events that need to be posted share the same dict
|
||||
attribute, like in the case of event timers. This way, the number of python
|
||||
increfs and decrefs are reduced, and callers of this function don't need to
|
||||
hold GIL for every event posted, the GIL only needs to be held during the
|
||||
creation of the dictproxy instance, and when it is freed.
|
||||
Just like the SDL <code class="docutils literal notranslate"><span class="pre">SDL_PushEvent</span></code> function, returns 1 on success, 0 if the
|
||||
event was not posted due to it being blocked, and -1 on failure.</p>
|
||||
<dt class="sig sig-object c" id="c.pgEvent_FillUserEvent">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">pgEvent_FillUserEvent</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="#c.pgEventObject" title="pgEventObject"><span class="n"><span class="pre">pgEventObject</span></span></a><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">e</span></span>, <span class="n"><span class="pre">SDL_Event</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">event</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.pgEvent_FillUserEvent" title="Link to this definition">¶</a><br /></dt>
|
||||
<dd><p>Fill SDL event <em>event</em> with information from pygame user event instance <em>e</em>.
|
||||
Return <code class="docutils literal notranslate"><span class="pre">0</span></code> on success, <code class="docutils literal notranslate"><span class="pre">-1</span></code> otherwise.</p>
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
@@ -200,7 +153,7 @@ event was not posted due to it being blocked, and -1 on failure.</p>
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api/event.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api/event.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -221,13 +174,15 @@ event was not posted due to it being blocked, and -1 on failure.</p>
|
||||
<li class="right" >
|
||||
<a href="display.html" title="API exported by pygame.display"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-1"><a href="../c_api.html" accesskey="U">pygame C API</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">API exported by pygame.event</a></li>
|
||||
<li class="nav-item nav-item-this"><a href="">API exported by pygame.event</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,18 +5,16 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>API exported by pygame._freetype — pygame-ce v2.5.8 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a9f2cf0f" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" />
|
||||
<script src="../_static/documentation_options.js?v=1fd526c0"></script>
|
||||
<script src="../_static/doctools.js?v=9bcbadda"></script>
|
||||
<title>API exported by pygame._freetype — pygame v2.6.1 documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygame.css?v=a854c6a8" />
|
||||
<script src="../_static/documentation_options.js?v=0a414f3d"></script>
|
||||
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||||
<script src="../_static/script.js?v=57918e6b"></script>
|
||||
<link rel="icon" href="../_static/pygame.ico"/>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="API exported by pygame.joystick" href="joystick.html" />
|
||||
<link rel="next" title="API exported by pygame.mixer" href="mixer.html" />
|
||||
<link rel="prev" title="API exported by pygame.event" href="event.html" />
|
||||
</head><body>
|
||||
|
||||
@@ -25,30 +23,24 @@
|
||||
<div class="header">
|
||||
<div class="flex-container">
|
||||
<div class="logo">
|
||||
<a href="https://pyga.me/docs">
|
||||
<img src="../_static/pygame_ce_tiny.webp"/>
|
||||
<a href="https://www.pygame.org/">
|
||||
<img src="../_static/pygame_tiny.png" alt="logo image"/>
|
||||
</a>
|
||||
<h5>pygame-ce documentation</h5>
|
||||
<h5>pygame documentation</h5>
|
||||
</div>
|
||||
<div class="pagelinks">
|
||||
<div class="top">
|
||||
<div class="nav-top-wrapper">
|
||||
<a href="https://pyga.me/docs">Pygame-ce Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
</div>
|
||||
<div class="searchbar-container">
|
||||
<img class="theme-icon" data-theme="dark-theme" src="../_static/light-theme-icon.svg" width="24" height="24" alt="Light Theme Icon">
|
||||
<img class="theme-icon" data-theme="light-theme" src="../_static/dark-theme-icon.svg" width="24" height="24" alt="Dark Theme Icon">
|
||||
<form action="../search.html" method="get" class="searchbar-form" style="display:inline;float:right;">
|
||||
<a href="https://www.pygame.org/">Pygame Home</a> ||
|
||||
<a href="../index.html">Help Contents</a> ||
|
||||
<a href="../genindex.html">Reference Index</a>
|
||||
|
||||
<form action="../search.html" method="get" style="display:inline;float:right;">
|
||||
<input name="q" value="" type="text">
|
||||
<img class="searchbar-button" src="../_static/searchbar-icon.svg" alt="Search">
|
||||
<input class="searchbar-submit" value="search" type="submit">
|
||||
<input value="search" type="submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="color:black;border-bottom:none;border-style: dotted;border-bottom-style:none;">
|
||||
<p class="bottom"><b>Most useful stuff</b>:
|
||||
<p class="bottom"><strong>Most useful stuff</strong>:
|
||||
<a href="../ref/color.html">Color</a> |
|
||||
<a href="../ref/display.html">display</a> |
|
||||
<a href="../ref/draw.html">draw</a> |
|
||||
@@ -66,7 +58,7 @@
|
||||
<a href="../ref/pygame.html">pygame</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Advanced stuff</b>:
|
||||
<p class="bottom"><strong>Advanced stuff</strong>:
|
||||
<a href="../ref/cursors.html">cursors</a> |
|
||||
<a href="../ref/joystick.html">joystick</a> |
|
||||
<a href="../ref/mask.html">mask</a> |
|
||||
@@ -83,17 +75,15 @@
|
||||
<a href="../ref/math.html">math</a>
|
||||
</p>
|
||||
|
||||
<p class="bottom"><b>Other</b>:
|
||||
<p class="bottom"><strong>Other</strong>:
|
||||
<a href="../ref/camera.html">camera</a> |
|
||||
<a href="../ref/sdl2_controller.html#module-pygame._sdl2.controller">controller</a> |
|
||||
<a href="../ref/examples.html">examples</a> |
|
||||
<a href="../ref/fastevent.html">fastevent</a> |
|
||||
<a href="../ref/scrap.html">scrap</a> |
|
||||
<a href="../ref/system.html">system</a> |
|
||||
<a href="../ref/tests.html">tests</a> |
|
||||
<a href="../ref/touch.html">touch</a> |
|
||||
<a href="../ref/typing.html">typing</a> |
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a> |
|
||||
<a href="../ref/window.html">Window</a>
|
||||
<a href="../ref/pygame.html#module-pygame.version">version</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -151,7 +141,7 @@ or not a <code class="xref py py-class docutils literal notranslate"><span class
|
||||
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a href="https://github.com/pygame-community/pygame-ce/edit/main/docs/reST/c_api/freetype.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<a href="https://github.com/pygame/pygame/edit/main/docs/reST/c_api/freetype.rst" rel="nofollow">Edit on GitHub</a>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,18 +157,20 @@ or not a <code class="xref py py-class docutils literal notranslate"><span class
|
||||
<a href="../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="joystick.html" title="API exported by pygame.joystick"
|
||||
<a href="mixer.html" title="API exported by pygame.mixer"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="event.html" title="API exported by pygame.event"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame-ce v2.5.8 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">pygame v2.6.1 documentation</a> »</li>
|
||||
<li class="nav-item nav-item-1"><a href="../c_api.html" accesskey="U">pygame C API</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">API exported by pygame._freetype</a></li>
|
||||
<li class="nav-item nav-item-this"><a href="">API exported by pygame._freetype</a></li>
|
||||
<script type="text/javascript" src="https://www.pygame.org/comment/jquery.plugin.docscomments.js"></script>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2000-2022, pygame developers, 2023 pygame-ce developers.
|
||||
© Copyright 2000-2023, pygame developers.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||