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

New Magic Function Ideas #7

Open
1 of 4 tasks
KennyOliver opened this issue Dec 8, 2021 · 1 comment
Open
1 of 4 tasks

New Magic Function Ideas #7

KennyOliver opened this issue Dec 8, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@KennyOliver
Copy link
Owner

KennyOliver commented Dec 8, 2021

Idea 1 - Pattern

  • Clr.pattern(*args): should allow any number of Clr codes to be passed through, and looped in a pattern (similar to Clr.rainbow(str))
I should be able to do Clr.pattern(Clr.BLACK, Clr.WHITE) and get a black and white string

Idea 2 - Mirror

  • Clr.mirror(str): using a dictionary, swap each letter in a string with an upside version

Idea 3 - Reverse

  • Clr.reverse(str): basically Clr.mirror() except a reverse string is returned using indexing [::-1]
Here's the characters:

abcdefghijklmnopqrstuvwxyz
0123456789
👇
68ㄥ9ϛㄣƐᄅƖ0
zʎxʍʌnʇsɹbdouɯlʞɾᴉɥƃɟǝpɔqɐ


You need to:

  • Add these functions to the README documentation, with appropriate descriptions
@KennyOliver KennyOliver added enhancement New feature or request good first issue Good for newcomers labels Dec 8, 2021
@KennyOliver KennyOliver pinned this issue Dec 8, 2021
@nonepork
Copy link

nonepork commented Feb 4, 2024

Hey, added : ) #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants