PINE LIBRARY

ColorGradient

93
Library "ColorGradient"
Library for creating color gradients and palettes with hex colors

hexToColor(hexStr)
  hexToColor
  Parameters:
    hexStr (string): Hex color string (e.g., "#FF0000" or "FF0000")
  Returns: color value

gradientStep(color1, color2, steps, step)
  gradientStep
  Parameters:
    color1 (string): Starting color (hex string)
    color2 (string): Ending color (hex string)
    steps (int): Number of steps including start and end
    step (int): Current step (0 to steps-1)
  Returns: Interpolated color

multiGradientStep(colors, totalSteps, step)
  multiGradientStep
  Parameters:
    colors (array<string>): Array of hex color strings
    totalSteps (int): Total number of steps across all colors
    step (int): Current step (0 to totalSteps-1)
  Returns: Interpolated color

applyPaletteStyle(hexStr, style)
  applyPaletteStyle
  Parameters:
    hexStr (string): Hex color string
    style (string): "normal", "pale", "pastel", "bright", "matte"
  Returns: Adjusted color

getStyledGradient(colors, totalSteps, step, style)
  getStyledGradient
  Parameters:
    colors (array<string>): Array of hex color strings
    totalSteps (int): Total number of steps
    step (int): Current step
    style (string): Palette style ("normal", "pale", "pastel", "bright", "matte")
  Returns: Styled color

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.