Skip to content

suggestion: be able to set the initial layout as a string #19

@frumbert

Description

@frumbert

I'd like to be able to set the initial value as the css string, rather than having to add handles via handler.setColor

instance.setColorValue('repeating-linear-gradient(to bottom, #085078 0%, #85D8CE 50%, $ffcc33 60%)')

and this would set the initial select box values and create handles at each of the stops.

it would be good to be able to interpret a standard colour value as a default linear gradient

instance.setColorValue('rgb(8, 80, 120)')

would be interpreted as a gradient with identical stops, such as

linear-gradient(to right, rgb(8, 80, 120) 0%, rgb(8, 80, 120) 100%)

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