Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

Commit 85a3f68

Browse files
author
mfe
committed
Add ACES Colorspace
1 parent 0c20efc commit 85a3f68

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

utils/colorspaces.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,37 @@ def gamma_to_lin(self, value):
203203
return colors_helper.gamma_to_lin(value, self._gamma)
204204

205205

206+
class ACES(AbstractColorspace):
207+
def get_red_primaries(self):
208+
return 0.73470, 0.26530
209+
210+
def get_green_primaries(self):
211+
return 0.00000, 1.00000
212+
213+
def get_blue_primaries(self):
214+
return 0.00010, -0.07700
215+
216+
def get_white_point(self):
217+
return 0.32168, 0.33767
218+
219+
def lin_to_gamma(self, value):
220+
return value
221+
222+
def gamma_to_lin(self, value):
223+
return value
224+
225+
206226
REC709 = Rec709()
207227
ALEXALOGCV3 = AlexaLogCV3()
208228
WIDEGAMUT = WideGamut()
209229
REC2020_10B = Rec2020(is_ten_bits=True)
210230
REC2020_12B = Rec2020(is_ten_bits=False)
231+
ACES = ACES()
211232
COLORSPACES = {
212233
'REC709': REC709,
213234
'ALEXALOGCV3': ALEXALOGCV3,
214235
'WIDEGAMUT': WIDEGAMUT,
215236
'REC2020_10bits': REC2020_10B,
216237
'REC2020_12bits': REC2020_12B,
238+
'ACES': ACES,
217239
}

0 commit comments

Comments
 (0)