WICG / color-api

A proposal and draft spec for a Color object for the Web Platform, loosely influenced by the Color.js work. Heavily WIP, if you landed here randomly, please move along.
https://wicg.github.io/color-api/
Other
135 stars 3 forks source link

Change signature of .get() and .set() #17

Closed LeaVerou closed 3 years ago

LeaVerou commented 3 years ago

As discussed with @tabatkins, there are several changes we want to make to the signatures of .get() and .set():

color.set("lch", {
    l: l => l * 1.2,
    c: c => c + 20
});