Skip to content

v5.0.0

Latest
Compare
Choose a tag to compare
@mikaello mikaello released this 22 Jun 20:21
· 23 commits to master since this release

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()