Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting font path and font color by frequency #22

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

naslundx
Copy link
Collaborator

@naslundx naslundx commented Aug 18, 2024

Fixes #10
Fixes #23

Also added 'Color' as a type alias for tuple[int, int, int]

@naslundx naslundx force-pushed the font-path-and-color branch from bd6e5d4 to 15bd3e8 Compare August 18, 2024 17:55
@@ -1,3 +1,4 @@
import math
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do we use math? (the stdlib, not the concept)

size: int = 1
color: tuple[int, int, int] = (255, 255, 0)

def color(self, frequency: float) -> Color:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

colour 😠

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not actually bothered about it)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First counterclockwise, now this :(

@naslundx
Copy link
Collaborator Author

So weird, I'm getting wrdcld/util.py Imports are incorrectly sorted and/or formatted. on CI. But there are only two imports, and I get it regardless of order

@naslundx naslundx force-pushed the font-path-and-color branch 2 times, most recently from b1b3951 to 06285e8 Compare August 19, 2024 13:12
@naslundx naslundx force-pushed the font-path-and-color branch from 06285e8 to 0149bbb Compare August 19, 2024 13:15
@naslundx naslundx merged commit 8210834 into main Aug 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow setting font path Support color scales
2 participants