<commit_before>Graphics
========

.. module:: sf



Misc
----


.. class:: Color(int r, int g, int b[, int a=255])

   Note: this class overrides comparison operators.

   The following colors are available as static attibutes, e.g. you can use
   ``sf.Color.WHITE`` to obtain a reference to the white color.

    * BLACK
    * WHITE
    * RED
    * GREEN
    * BLUE
    * YELLOW
    * MAGENTA
    * CYAN

   .. attribute:: r
   .. attribute:: g
   .. attribute:: b
   .. attribute:: a




.. class:: Drawable

   Base class for classes like :class:`Sprite` or :class:`Text`. Creating your
   own drawables by deriving this class currently isn't supported, so you
   shouldn't need to directly interact with it.

   .. attribute:: blend_mode
   .. attribute:: color
   .. attribute:: origin
   .. attribute:: position
   .. attribute:: rotation
   .. attribute:: the_scale

      Note that this attribute is named ``the_scale`` to avoid clashes with the
      :meth:`scale()` method.

   .. attribute:: x
   .. attribute:: y

   .. method:: tranform_to_local(float x, float y)
   .. method:: transform_to_global(float x, float y)
   .. method:: move(float x, float y)
   .. method:: rotate(float angle)
   .. method:: scale(float x, float y)





Image display and effects
-------------------------<commit_msg>Added documentation for Matrix3<commit_after>Graphics
========

.. module:: sf



Misc
----


.. class:: Color(int r, int g, int b[, int a=255])

   Note: this class overrides some comparison and arithmetic operators in the
   same way that the C++ class does..

   The following colors are available as static attibutes, e.g. you can use
   ``sf.Color.WHITE`` to obtain a reference to the white color.

    * BLACK
    * WHITE
    * RED
    * GREEN
    * BLUE
    * YELLOW
    * MAGENTA
    * CYAN

   .. attribute:: r
   .. attribute:: g
   .. attribute:: b
   .. attribute:: a




.. class:: Drawable

   Base class for classes like :class:`Sprite` or :class:`Text`. Creating your
   own drawables by deriving this class currently isn't supported, so you
   shouldn't need to directly interact with it.

   .. attribute:: blend_mode
   .. attribute:: color
   .. attribute:: origin
   .. attribute:: position
   .. attribute:: rotation
   .. attribute:: the_scale

      Note that this attribute is named ``the_scale`` to avoid clashes with the
      :meth:`scale()` method.

   .. attribute:: x
   .. attribute:: y

   .. method:: tranform_to_local(float x, float y)
   .. method:: transform_to_global(float x, float y)
   .. method:: move(float x, float y)
   .. method:: rotate(float angle)
   .. method:: scale(float x, float y)



.. class:: Matrix3(float a00, float a01, float a02,\
                   float a10, float a11, float a12,\
                   float a20, float a21, float a22)

   Note: this class overrides the multiplication operator.

   .. attribute:: IDENTITY

      Class attribute containing the identity matrix.

   .. classmethod:: projection(center, size, float rotation)
   .. classmethod:: transformation(origin, translation, float rotation, scale)

   .. method:: __str__()

      Return the content of the matrix in a human-readable format.

   .. method:: get_inverse()
   .. method:: transform()







Image display and effects
-------------------------
{'fraction_non_alphanumeric': 0.1318181818181818, 'fraction_numerical': 0.00787878787878788, 'mean_word_length': 2.4136504653567736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1981862', 'n_tokens_mistral': 1006, 'n_tokens_neox': 912, 'n_words': 362}