TextArt: CIEDE2000 Power Function

This commit is contained in:
Gordon Shumway 2021-03-31 22:29:10 -04:00 committed by GitHub
parent b1f78a1588
commit 8a681362f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,9 @@ class TextArt(callbacks.Plugin):
-math.pow(36 * hh - 55 * math.pi, 2) / (25 * math.pi * math.pi)
)
r = -2 * trc * math.sin(2 * dt * math.pi / 180)
return math.sqrt(fl * fl + fc * fc + fh * fh + r * fc * fh)
de = math.sqrt(fl * fl + fc * fc + fh * fh + r * fc * fh)
dep = 1.43 * de ** 0.70
return dep
def distance(self, c1, c2, speed):
if speed == "fast":