python 将rgb值转换为Maya标志的0.0-1.0值

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 将rgb值转换为Maya标志的0.0-1.0值相关的知识,希望对你有一定的参考价值。

def rgb(self, values):
  """converts rgb values to 0.0-1.0 for maya flags"""
  converted = []
  for val in values:
      converted.append(round(val / 255.0, 3))
  return converted

以上是关于python 将rgb值转换为Maya标志的0.0-1.0值的主要内容,如果未能解决你的问题,请参考以下文章