evilmartians / oklch-picker

Color Picker for LCH
https://oklch.com
Other
849 stars 65 forks source link

use inGamut culori func #153

Closed AlexDroomer closed 3 months ago

AlexDroomer commented 3 months ago

These changes will add a slight rendering improvement. Benchmark --benchmark-color: #a36825 searchParams: ?bench#70,0.1,296,100

Freeze max 5 Freeze sum 7 Worker max 46 Worker sum 149 Paint 46

export const inRGB = inGamut('rbg');
export const inP3 = inGamut('p3');
export const inRec2020 = inGamut('rec2020');
ai commented 3 months ago

Thanks!