mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 23:04:06 +00:00
This reverts commit c3b2697568.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// @ts-strict-ignore
|
||||
import { memoize } from 'lodash'
|
||||
|
||||
type RGB = { r: number; g: number; b: number }
|
||||
@@ -34,8 +35,6 @@ function rgbToHsl({ r, g, b }: RGB): HSL {
|
||||
case b:
|
||||
h = (r - g) / d + 4
|
||||
break
|
||||
default:
|
||||
throw new Error('NOT_REACHED')
|
||||
}
|
||||
h /= 6
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user