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

Draw shapes with optional colors #140

Open
voetberg opened this issue Jul 22, 2024 · 0 comments
Open

Draw shapes with optional colors #140

voetberg opened this issue Jul 22, 2024 · 0 comments
Assignees

Comments

@voetberg
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Right now the program only generates shapes and profiles with 2d b&w images, it would be interesting to also include colorful images. It can also improve the program's ability to produce abstract images for model testing (I can envision applications where it would be useful to understand how well a model can differentiate similar objects with different colors).

Describe the solution you'd like
Modify the shapes module to include a colorful_shapes submodule. Allow randomly placed colors to be drawn from a selection of colors (eg, through a matplot cmap, or a user defined list of hex codes). The randomly generated colors can be applied after the shapes are generated by applying the colors as a filter to the

Describe alternatives you've considered
A more complicated, but robust implementation would be to draw the shapes with color ahead of time (use the "color" parameter in most matplot objects). This would ensure all objects are a solid color (which can be a good or bad thing depending).

@bnord bnord self-assigned this Jul 27, 2024
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

No branches or pull requests

2 participants