@@ -181,6 +181,7 @@ def vertical_lines(cls, pixels, width, height, gridmapper):
181
181
alternating direction every row.
182
182
183
183
.. code-block:: python
184
+
184
185
PixelMap.vertical_lines(pixels, 32, 8, vertical_strip_gridmap(8))
185
186
186
187
"""
@@ -207,6 +208,7 @@ def horizontal_lines(cls, pixels, width, height, gridmapper):
207
208
alternating direction every row.
208
209
209
210
.. code-block:: python
211
+
210
212
PixelMap.horizontal_lines(pixels, 16, 16, vertical_strip_gridmap(16))
211
213
"""
212
214
if len (pixels ) < width * height :
@@ -423,6 +425,7 @@ def cycle_complete(self):
423
425
def add_cycle_complete_receiver (self , callback ):
424
426
"""
425
427
Adds an additional callback when the cycle completes.
428
+
426
429
:param callback: Additional callback to trigger when a cycle completes. The callback
427
430
is passed the animation object instance.
428
431
"""
@@ -504,6 +507,7 @@ class AnimationSequence:
504
507
:param bool advance_on_cycle_complete: Automatically advance when `cycle_complete` is triggered
505
508
on member animations. All Animations must support
506
509
cycle_complete to use this.
510
+
507
511
.. code-block:: python
508
512
509
513
import board
@@ -584,6 +588,7 @@ def _sequence_complete(self, animation): # pylint: disable=unused-argument
584
588
def add_cycle_complete_receiver (self , callback ):
585
589
"""
586
590
Adds an additional callback when the cycle completes.
591
+
587
592
:param callback: Additional callback to trigger when a cycle completes. The callback
588
593
is passed the animation object instance.
589
594
"""
0 commit comments