| 1 |
pyglet.shapes |
| 2 |
============= |
| 3 |
|
| 4 |
.. automodule:: pyglet.shapes |
| 5 |
|
| 6 |
.. autoclass:: ShapeBase |
| 7 |
|
| 8 |
.. rubric:: Methods |
| 9 |
|
| 10 |
.. automethod:: draw |
| 11 |
.. automethod:: delete |
| 12 |
|
| 13 |
.. rubric:: Attributes |
| 14 |
|
| 15 |
.. autoattribute:: x |
| 16 |
.. autoattribute:: y |
| 17 |
.. autoattribute:: position |
| 18 |
.. autoattribute:: rotation |
| 19 |
.. autoattribute:: anchor_x |
| 20 |
.. autoattribute:: anchor_y |
| 21 |
.. autoattribute:: anchor_position |
| 22 |
.. autoattribute:: color |
| 23 |
.. autoattribute:: opacity |
| 24 |
.. autoattribute:: visible |
| 25 |
.. autoattribute:: group |
| 26 |
.. autoattribute:: batch |
| 27 |
|
| 28 |
|
| 29 |
.. autoclass:: Arc |
| 30 |
:show-inheritance: |
| 31 |
|
| 32 |
.. autoattribute:: angle |
| 33 |
.. autoattribute:: start_angle |
| 34 |
.. autoattribute:: thickness |
| 35 |
|
| 36 |
|
| 37 |
.. autoclass:: BezierCurve |
| 38 |
:show-inheritance: |
| 39 |
|
| 40 |
.. autoattribute:: points |
| 41 |
.. autoattribute:: t |
| 42 |
.. autoattribute:: thickness |
| 43 |
|
| 44 |
|
| 45 |
.. autoclass:: Circle |
| 46 |
:show-inheritance: |
| 47 |
|
| 48 |
.. autoattribute:: radius |
| 49 |
|
| 50 |
|
| 51 |
.. autoclass:: Ellipse |
| 52 |
:show-inheritance: |
| 53 |
|
| 54 |
.. autoattribute:: a |
| 55 |
.. autoattribute:: b |
| 56 |
|
| 57 |
|
| 58 |
.. autoclass:: Sector |
| 59 |
:show-inheritance: |
| 60 |
|
| 61 |
.. autoattribute:: angle |
| 62 |
.. autoattribute:: start_angle |
| 63 |
.. autoattribute:: radius |
| 64 |
|
| 65 |
|
| 66 |
.. autoclass:: Line |
| 67 |
:show-inheritance: |
| 68 |
|
| 69 |
.. autoattribute:: x2 |
| 70 |
.. autoattribute:: y2 |
| 71 |
|
| 72 |
|
| 73 |
.. autoclass:: Rectangle |
| 74 |
:show-inheritance: |
| 75 |
|
| 76 |
.. autoattribute:: width |
| 77 |
.. autoattribute:: height |
| 78 |
|
| 79 |
|
| 80 |
.. autoclass:: Box |
| 81 |
:show-inheritance: |
| 82 |
|
| 83 |
.. autoattribute:: width |
| 84 |
.. autoattribute:: height |
| 85 |
|
| 86 |
|
| 87 |
.. autoclass:: BorderedRectangle |
| 88 |
:show-inheritance: |
| 89 |
|
| 90 |
.. autoattribute:: width |
| 91 |
.. autoattribute:: height |
| 92 |
.. autoattribute:: border_color |
| 93 |
|
| 94 |
|
| 95 |
.. autoclass:: Triangle |
| 96 |
:show-inheritance: |
| 97 |
|
| 98 |
.. autoattribute:: x2 |
| 99 |
.. autoattribute:: y2 |
| 100 |
.. autoattribute:: x3 |
| 101 |
.. autoattribute:: y3 |
| 102 |
|
| 103 |
|
| 104 |
.. autoclass:: Star |
| 105 |
:show-inheritance: |
| 106 |
|
| 107 |
.. autoattribute:: outer_radius |
| 108 |
.. autoattribute:: inner_radius |
| 109 |
.. autoattribute:: num_spikes |
| 110 |
|
| 111 |
|
| 112 |
.. autoclass:: Polygon |
| 113 |
:show-inheritance: |
| 114 |
|
| 115 |
|
| 116 |
.. autoclass:: MultiLine |
| 117 |
:show-inheritance: |
| 118 |
|
| 119 |
.. autoattribute:: thickness |