Skip to content

Commit

Permalink
docs: ignoring data from example
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermoaguilar committed Aug 13, 2024
1 parent 9f8b7d9 commit 2cf2ba0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
build/
hrl.egg-info/
docs/_build/
docs/useful-examples/example-full-experiment/data*
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import numpy as np
from PIL import Image, ImageDraw, ImageFont

Expand Down Expand Up @@ -127,9 +128,17 @@ def display_text(
# Draw the line
textline.draw(pos=text_pos)

# Accumulate
textures.append(textline)

# Display
ihrl.graphics.flip()

# Cleanup: delete texture
for texture in textures:
# deleting texture
texture.delete()

return


Expand Down
8 changes: 8 additions & 0 deletions docs/useful-examples/text_displays.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,16 @@ def display_text(

# Draw the line
textline.draw(pos=text_pos)

# Accumulate
textures.append(textline)

# Display
ihrl.graphics.flip()

# Cleanup: delete texture
for texture in textures:
texture.delete()


return

0 comments on commit 2cf2ba0

Please sign in to comment.