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

Bikeshed `ColorSpace.fromICCProfile()` #34

Open LeaVerou opened 1 year ago

LeaVerou commented 1 year ago

This used to be called ColorSpace.load(), however since it's a factory method, it's good practice to start with from, for consistency. Right now I've named it fromICCProfile() though that's quite a mouthful. Maybe fromProfile() would be better? or fromFile()? Or maybe just from() and redesign its signature to take a dictionary with the ICC profile as a key?