import chroma from '../../chroma.mjs';
import Color from '../../Color.mjs';
import input from '../input.mjs';
import temperature2rgb from './temperature2rgb.mjs';
import rgb2temperature from './rgb2temperature.mjs';

Color.prototype.temp =
    Color.prototype.kelvin =
    Color.prototype.temperature =
        function () {
            return rgb2temperature(this._rgb);
        };

const temp = (...args) => new Color(...args, 'temp');
Object.assign(chroma, { temp, kelvin: temp, temperature: temp });

input.format.temp =
    input.format.kelvin =
    input.format.temperature =
        temperature2rgb;

export { temp as kelvin, temp, temp as temperature };
//# sourceMappingURL=index.mjs.map
