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

Refactored the entire API of the library #9

Merged
merged 8 commits into from
Jun 10, 2021
Merged

Refactored the entire API of the library #9

merged 8 commits into from
Jun 10, 2021

Conversation

anandology
Copy link
Contributor

As discussed in #1 and #2.

Changes:

  • Points are first class citizens
  • Renamed shapes and transforms to TitleCase
  • Added Repeat transform
  • Deleted cycle transform
  • Added Ellipse shape

Closes #1, #2, #3 and #8

Rewrote the entire user facing API of the library.

Major changes:
- all the shapes and transformations are in TitleCase: Circle, Rectangle etc.
- The + operator is used to combine shapes
- The | operator is used to apply transformations, allowing chaining of transformations
- Using Point object wherever makes sense instead of just x and y

Issue #2
Also updated all the images used in README.
Changed the default width and height to 200 and 100 to make the default
shape look like a rectangle. Updated the examples and tests accordingly.
@anandology anandology merged commit 0042149 into main Jun 10, 2021
@anandology anandology deleted the new-api branch June 10, 2021 08:28
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.

repeat - new higher-order transformation
1 participant