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

update _draw! to behave like an iterator and take a function as an argument #100

Merged
merged 18 commits into from
Dec 19, 2021

Conversation

Sid-Bhatia-0
Copy link
Owner

  1. Update _draw! to behave like an iterator and take a function as an argument like put_pixel!, or put_pixel_undirected! or any anonymous function. This significantly increases code reuse without sacrificing performance when things are type-stable.
  2. Remove inline macros for drawing Point and Background.
  3. Add shapes CircleOctant and ThickCircleOctant to iterate over the first octant (i >= 0, j >=0, i >= j) for drawing these circles. Accordingly modify OddSymmetricPoints8, OddSymmetricVerticalLines4, OddSymmetricLines8, and their corresponding Even counterparts.
  4. Use explicit iteration for drawing VerticalLine, HorizontalLine, and FilledRectangle.

@Sid-Bhatia-0 Sid-Bhatia-0 merged commit 38d078a into master Dec 19, 2021
@Sid-Bhatia-0 Sid-Bhatia-0 deleted the update__draw branch December 19, 2021 14:00
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.

1 participant