Skip to content

Allowing for custom colors #181

Open

Description

@nadr0

When using the flood fill example I realized there was a limitation of color. I thought it would be useful to allow the coder to provide different colors to a Tracer for they can have custom select or notify etc.. colors.

Any thoughts on this? I am gonna mess around with the code to see if I can get something working.

Edit - Pull Request : #188

Activity

  1. nadr0 commented on Jun 19, 2016

    @nadr0
    ContributorAuthor

    Pull request went through, this can be closed whenever.

  2. Alireza-Farahani commented on Dec 12, 2019

    @Alireza-Farahani

    I can't find this feature. Seems it's been removed from the code.
    I think this is a basic feature and a useful one too. For example in Quicksort, selecting pivot in different color could make things easier to understand.

  3. 64json commented on Dec 19, 2019

    @64json
    Member

    If I remember correctly, I removed this feature while rewriting the entire code base in React because inconsistent custom colors across different visualizations might rather confuse users. However, since I agree that only having two colors restricts a potentially better visualization, I will reopen the issue until we find a solution for the inconsistency issue.

  4. reopened this on Dec 19, 2019
  5. 64json commented on Dec 19, 2019

    @64json
    Member

    Maybe we can have a color legend?

  6. Njancodes commented on Oct 9, 2025

    @Njancodes

    Maybe the color legend could be shown in the corner of the layout. Like, for the functions in the tracers,
    patch : red,
    set : blue

    having a set of colors than the whole spectrum would be better right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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