|
487 | 487 | methods - or by using :mod:`pygame.surfarray`/:mod:`pygame.PixelArray`. |
488 | 488 |
|
489 | 489 | This function will temporarily lock and unlock the Surface as needed. |
490 | | - |
| 490 | + |
491 | 491 | .. versionchanged:: 2.3.1 can now also accept both float coordinates and Vector2s for pixels. |
492 | | - |
| 492 | + |
493 | 493 | Returning a Color instead of tuple. Use ``tuple(surf.get_at((x,y)))`` |
494 | 494 | if you want a tuple, and not a Color. This should only matter if |
495 | 495 | you want to use the color as a key in a dict. |
496 | | - |
| 496 | + |
497 | 497 | .. versionaddedold:: 1.9 |
498 | | - |
| 498 | + |
499 | 499 | .. ## Surface.get_at ## |
500 | 500 |
|
501 | 501 | .. method:: set_at |
|
576 | 576 | Set the full palette for an 8-bit Surface. This will replace the colors in |
577 | 577 | the existing palette. A partial palette can be passed and only the first |
578 | 578 | colors in the original palette will be changed. |
579 | | - |
| 579 | + |
580 | 580 | This function has no effect on a Surface with more than 8-bits per pixel. |
581 | 581 |
|
582 | 582 | .. ## Surface.set_palette ## |
|
588 | 588 |
|
589 | 589 | Set the palette value for a single entry in a Surface palette. The index |
590 | 590 | should be a value from 0 to 255. |
591 | | - |
| 591 | + |
592 | 592 | This function has no effect on a Surface with more than 8-bits per pixel. |
593 | 593 |
|
594 | 594 | .. ## Surface.set_palette_at ## |
|
762 | 762 |
|
763 | 763 | | :sl:`get the rectangular area of the Surface` |
764 | 764 | | :sg:`get_frect(\**kwargs) -> FRect` |
765 | | - |
| 765 | +
|
766 | 766 | This is the same as :meth:`Surface.get_rect` but returns an FRect. FRect is similar |
767 | 767 | to Rect, except it stores float values instead. |
768 | 768 |
|
|
1032 | 1032 |
|
1033 | 1033 | .. ## Surface.premul_alpha ## |
1034 | 1034 |
|
1035 | | - .. attribute:: width |
| 1035 | + .. attribute:: width |
1036 | 1036 |
|
1037 | | - | :sl:`Surface width in pixels (read-only)` |
1038 | | - | :sg:`width -> int` |
| 1037 | + | :sl:`Surface width in pixels (read-only)` |
| 1038 | + | :sg:`width -> int` |
1039 | 1039 |
|
1040 | | - Read-only attribute. Same as :meth:`get_width()` |
| 1040 | + Read-only attribute. Same as :meth:`get_width()` |
1041 | 1041 |
|
1042 | | - .. versionadded:: 2.5.0 |
| 1042 | + .. versionadded:: 2.5.0 |
1043 | 1043 |
|
1044 | | - .. attribute:: height |
| 1044 | + .. attribute:: height |
1045 | 1045 |
|
1046 | | - | :sl:`Surface height in pixels (read-only)` |
1047 | | - | :sg:`height -> int` |
| 1046 | + | :sl:`Surface height in pixels (read-only)` |
| 1047 | + | :sg:`height -> int` |
1048 | 1048 |
|
1049 | | - Read-only attribute. Same as :meth:`get_height()` |
| 1049 | + Read-only attribute. Same as :meth:`get_height()` |
1050 | 1050 |
|
1051 | | - .. versionadded:: 2.5.0 |
| 1051 | + .. versionadded:: 2.5.0 |
1052 | 1052 |
|
1053 | | - .. attribute:: size |
| 1053 | + .. attribute:: size |
1054 | 1054 |
|
1055 | | - | :sl:`Surface size in pixels (read-only)` |
1056 | | - | :sg:`height -> tuple[int, int]` |
| 1055 | + | :sl:`Surface size in pixels (read-only)` |
| 1056 | + | :sg:`height -> tuple[int, int]` |
1057 | 1057 |
|
1058 | | - Read-only attribute. Same as :meth:`get_size()` |
| 1058 | + Read-only attribute. Same as :meth:`get_size()` |
1059 | 1059 |
|
1060 | | - .. versionadded:: 2.5.0 |
| 1060 | + .. versionadded:: 2.5.0 |
1061 | 1061 |
|
1062 | 1062 | .. ## pygame.Surface ## |
1063 | 1063 |
|
|
0 commit comments