Skip to content

Commit 7bd5d20

Browse files
Update README.md
1 parent 18e83a4 commit 7bd5d20

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -112,48 +112,48 @@ And a C compiler.
112112
```
113113

114114
### Transparency methods
115-
```
115+
```python
116116
def make_transparent(image_: Surface, alpha_: int)->Surface
117117
def make_transparent_buffer(image_: Surface, alpha_: int)->Surface
118118
def make_array_transparent(rgb_array_: ndarray, alpha_array_: ndarray, alpha_: int)->Surface
119119
def transparent_mask(image: pygame.Surface, mask_alpha: numpy.ndarray)
120120
```
121121
### Opacity methods
122-
```
122+
```python
123123
def make_opaque(image_:Surface, alpha_: int) -> Surface
124124
def make_opaque_buffer(image_:Surface, alpha_: int) -> Surface
125125
def make_array_opaque(rgb_array_:ndarray, alpha_array_:ndarray, alpha_: int) -> Surface
126126
```
127127
### Blink surface
128-
```
128+
```python
129129
def blink32(image_: Surface, alpha_: int) -> Surface
130130
def blink32_mask(image_: Surface, alpha_: int) -> Surface
131131
```
132132
### Filtering RGB values
133-
```
133+
```python
134134
def low_th_alpha(surface_: Surface, new_alpha_: int, threshold_: int) -> Surface
135135
def high_th_alpha(surface_: Surface, new_alpha_: int, threshold_: int) -> Surface
136136
```
137137
### Greyscale methods
138138
```
139139
# Conserve lightness
140-
140+
```python
141141
def greyscale_light_alpha(image: Surface)->Surface
142142
def greyscale_light(image: Surface)->Surface
143-
143+
```
144144
# Conserve luminosity
145-
145+
```python
146146
def greyscale_lum_alpha(image: Surface)->Surface
147147
def greyscale_lum(image: Surface)->Surface
148-
148+
```
149149
# Average values
150-
150+
```python
151151
def make_greyscale_32(image: Surface)->Surface
152152
def make_greyscale_24(image: Surface)->Surface
153153
def make_greyscale_altern(image: Surface)->Surface
154-
154+
```
155155
# greyscale arrays
156-
156+
```python
157157
# 3d array to surface
158158
# in : RGB array shape (width, height, 3)
159159
# out: Greyscale pygame surface
@@ -172,14 +172,14 @@ def greyscale_3d_to_2d(array_: ndarray)->ndarray
172172
def greyscale_2d_to_3d(array_: ndarray)->ndarray
173173
```
174174
### Black and White transform
175-
```
175+
```python
176176
def bw_surface24(image: pygame.Surface)->tuple
177177
def bw_surface32(image: pygame.Surface)->tuple
178178
def bw_array(array: numpy.ndarray)->numpy.ndarray
179179
```
180180

181181
### Colorize
182-
```
182+
```python
183183
# Buffer methods
184184
def redscale_buffer(image: Surface)->Surface
185185
def redscale_alpha_buffer(image: Surface)->Surface
@@ -197,12 +197,12 @@ def bluescale(image: Surface)->Surface
197197
def bluescale_alpha(image: Surface)->Surface
198198
```
199199
### Loading images with per-pixels transparency
200-
```
200+
```python
201201
def load_per_pixel(file: str)->Surface
202202
def load_image32(path: str)->tuple
203203
```
204204
### Loading sprite sheet
205-
```
205+
```python
206206
def spritesheet_per_pixel(file_: str, chunk_: int,
207207
colums_: int, rows_: int)->list:
208208

@@ -223,12 +223,12 @@ def spritesheet_new(file_: str, chunk_: int, columns_: int, rows_: int):
223223

224224
```
225225
### Shadow method
226-
```
226+
```python
227227
def shadow32(image: Surface, attenuation: float)->Surface:
228228
def shadow32buffer(image: Surface, attenuation: float)->Surface:
229229
```
230230
### RGB split
231-
```
231+
```python
232232
# compatible 24 bit
233233
def rgb_split(surface_: Surface)->tuple
234234
def rgb_split_buffer(surface_: Surface)-> tuple

0 commit comments

Comments
 (0)