Skip to content

Restructuring the code (Refactoring) #34

@stephano33

Description

@stephano33

I love the library! I did an interesting demo that got quite some positive feedback. Will publish that.

The demo showed the performance problems and also that a 1 line change can make the library 22% faster. Now I look for more performance gains. However, there is one problem with the library that hinders the readability.

Rasterific does 4 different things:

  • Low level rendering
  • High level rendering API
  • Helper functions (e.g., "rectangle")
  • Coon (Gradient Mesh)

For me this is bad for readability and also from the standpoint of separation of concerns. I am probably going to rewrite a version of the library for myself to change that.

Minor things are copy/past code or code redundancy but this is a small detail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions