diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-06-06 18:27:54 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-06-06 23:09:58 (GMT) |
| commit | 7c45f185a32c7bcff47c8fda1acdec82d3213717 (patch) | |
| tree | 53b0419fe2a19e6ec5c89d0be0a11dcd8d4ceb00 /tools/rle_encode.py | |
| parent | 94b1b330fc1f6e941a797fedabade4e790e28bc2 (diff) | |
| parent | 35dcf8c8607483c104711c9398d47d57147f4389 (diff) | |
Merge remote-tracking branch 'origin/develop' into analog24
Diffstat (limited to 'tools/rle_encode.py')
| -rw-r--r-- | tools/rle_encode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rle_encode.py b/tools/rle_encode.py index 80a0926..58c45b7 100644 --- a/tools/rle_encode.py +++ b/tools/rle_encode.py @@ -101,7 +101,7 @@ class ReverseCLUT: rd = r - (candidate >> 16) gd = g - ((candidate >> 8) & 0xff) bd = b - (candidate & 0xff) - # This is the Euclidian distance (squared) + # This is the Euclidean distance (squared) distance = rd * rd + gd * gd + bd * bd if distance < best: best = distance |
