Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Supply a flat array of colors #2

Description

@btopro

Nested object / array is great for finding stuff, seems like it would also be a useful short hand to provide a transformation of these values into a flat Array.
something like...

let hex = Polymer.SimpleColorsUtility.instance.hexCodes;
                let colors = [];
                for (var i in hex) {
                  for (var j in hex) {
                    colors.push(hex[i][j]);
                  }
                }

This way you could call 1 function / value and get a (flat) list of valid colors for selection or testing against.

Activity

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