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

Graphics Example: regular polygons #26

Closed
nikochiko opened this issue Oct 8, 2023 · 6 comments
Closed

Graphics Example: regular polygons #26

nikochiko opened this issue Oct 8, 2023 · 6 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@nikochiko
Copy link
Collaborator

We use graphics library for joy's implementation. It'd be useful to understand how graphics works. This is a suggestion for creating an illustration with the graphics library.

Make regular polygons -- triangle, square, pentagon, hexagon -- in the same canvas. Use a canvas size of 500 x 500.

Reference: https://ocaml.github.io/graphics/graphics/Graphics/index.html#val-draw_poly

@nikochiko nikochiko added the good first issue Good for newcomers label Oct 8, 2023
@nikochiko
Copy link
Collaborator Author

@joanita-51 would you like to take this up?

@joanita-51
Copy link
Contributor

Yes, i would love to

@nikochiko
Copy link
Collaborator Author

Please go ahead!

@nikochiko
Copy link
Collaborator Author

@joanita-51 were you able to make the local setup (as described in #1) and get the project to compile (dune build) ?

@joanita-51
Copy link
Contributor

Y

@joanita-51 were you able to make the local setup (as described in #1) and get the project to compile (dune build) ?

Yes, i was able to

@joanita-51
Copy link
Contributor

Hey @nikochiko, we already have an implementation for the triangle polygon. Should I create another polygon using the draw_poly function?

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

No branches or pull requests

2 participants