Skip to content

Commit

Permalink
PM2 XYZA format
Browse files Browse the repository at this point in the history
  • Loading branch information
Beinsezii committed Jan 24, 2021
1 parent bd4d758 commit 02117c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bsz-pixel-math-2/bsz-pixel-math-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
FORMATS = {
"RGBA": "RGBA double",
"HSLA": "HSLA double",
"XYZA": "CIE XYZ alpha double",
"LABA": "CIE Lab alpha double",
"LCHA": "CIE LCH(ab) alpha double",
}
Expand All @@ -70,6 +71,8 @@ def pixel_math(image, drawable, babl_format, code):
channels = "rgba"
elif babl_format == "HSLA double":
channels = "hsla"
elif babl_format == "CIE XYZ alpha double":
channels = "xyza"
elif babl_format == "CIE Lab alpha double":
channels = "laba"
elif babl_format == "CIE LCH(ab) alpha double":
Expand Down

0 comments on commit 02117c9

Please sign in to comment.