Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add combinator for working with ColorStops #32

Open
safareli opened this issue Aug 29, 2017 · 2 comments
Open

Add combinator for working with ColorStops #32

safareli opened this issue Aug 29, 2017 · 2 comments

Comments

@safareli
Copy link
Contributor

I have used this two combinators for working with ColorStops here

combineStops :: Number  ColorStops  ColorStops  ColorStops
reverseStops :: ColorStops  ColorStops

--  usage:
myStops = fooStops `combineStops 0.5`  (reverseStops fooStops)
@sharkdp
Copy link
Collaborator

sharkdp commented Aug 29, 2017

So combineStops basically concatenates two color scales and the Number defines the transition point (i.e. is a number between 0 and 1)?

Sounds good!

@safareli
Copy link
Contributor Author

yap

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

No branches or pull requests

2 participants