Skip to content

Commit

Permalink
Refined code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
annieqqa committed Mar 13, 2024
1 parent 8df7d96 commit b7223a0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# happyPiDay
Generates ASCII art style Pi Day card to surprise your teachers!
A program that generates ASCII art style Pi Day card to surprise your teachers!


## License
This project is licensed under the *MIT* license. See our [LICENSE](LICENSE) for more information.

We are grateful for the support of our community and for the contributions of everyone who has helped make this project what it is.

## Acknowledgments
I would like to thank [Audrey Seng](https://www.instagram.com/artsy_wolfy/) for designing the Pi Day cards for this project!
Binary file modified code/__pycache__/process_img.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
run.font.size = font_size

# Add credits to the footer
credits = "Source code: https://github.com/annieqqa/happyPiDay\nImage: @\Audrey Seng"
credits = "Code: Annie Qin https://github.com/annieqqa/happyPiDay\nImage: Audrey Seng https://www.instagram.com/artsy_wolfy/"
section = doc.sections[0]
footer = section.footer
footer_para = footer.paragraphs[0]
Expand Down
2 changes: 1 addition & 1 deletion code/process_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def getAvgColor(im,w,h):
def splitToGrid(image,m,n):
hsv_image = image.convert("HSV")
h, s, v = hsv_image.split()
s = s.point(lambda x: x * 1.25)
s = s.point(lambda x: x * 2)
adjusted_hsv_image = Image.merge("HSV", (h, s, v))
image = adjusted_hsv_image.convert("RGB")

Expand Down
9 changes: 0 additions & 9 deletions code/test.py

This file was deleted.

File renamed without changes
Binary file modified output/HappyPiDayOwnCard.docx
Binary file not shown.
Binary file added output/~$ppyPiDayOwnCard.docx
Binary file not shown.

0 comments on commit b7223a0

Please sign in to comment.