Skip to content

Draw shapes with optional colors #140

@voetberg

Description

@voetberg

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions