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

@btopro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions