Skip to content

New Magic Function Ideas #7

@KennyOliver

Description

@KennyOliver

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions