Changes
Rewriting all code from Bucklescript to Rescript
Breaking changes
The functions
- analogous
- monochromatic
- polyad
... did previously have data last, but now have data first (previously |>
, now ->
). All parameters except t
are optional, but does now require a unit (()
) since we are doing data first.
In code:
// Previously
TinyColor.random() |> TinyColor.analogous(~slices=10)
TinyColor.random() |> TinyColor.polyad
// Now
TinyColor.random()->TinyColor.analogous(~slices=10, ())
TinyColor.random()->TinyColor.polyad()