purescript-colors icon indicating copy to clipboard operation
purescript-colors copied to clipboard

Add combinator for working with ColorStops

Open safareli opened this issue 8 years ago • 2 comments

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)

safareli avatar Aug 29 '17 12:08 safareli

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!

sharkdp avatar Aug 29 '17 19:08 sharkdp

yap

safareli avatar Aug 30 '17 12:08 safareli