def buildColorStop( offset: _ScalarInput, paletteIndex: int, alpha: _ScalarInput = _DEFAULT_ALPHA, ) -> ot.ColorStop: self = ot.ColorStop() self.StopOffset = _to_variable_f2dot14_float(offset) self.Color = buildColorIndex(paletteIndex, alpha) return self
def buildColorStop( offset: _ScalarInput, paletteIndex: int, transparency: _ScalarInput = _DEFAULT_TRANSPARENCY, ) -> ot.ColorStop: self = ot.ColorStop() self.StopOffset = _to_variable_float(offset) self.Color = buildColor(paletteIndex, transparency) return self
def _defaultColorStop(): colorStop = ot.ColorStop() colorStop.Alpha = _DEFAULT_ALPHA return colorStop