PINE LIBRARY
Atualizado

ToClrToStr

318
Contains functions for conversion of color to string and vice versa:
  • method toClr( string this ) - converts string reperesentation of color (in hex format) to color
  • method toHex( color this ) - converts color to string (hex form)
  • method toRgb( color this ) - converts color to string ("rgb(11,11,11,0)" form)


Thanks to ImmortalFreedom for his `color_tostring()` function from "RGB Color Fiddler"
RGB Color Fiddler
Notas de Lançamento
v2 Removed a log.info()
Notas de Lançamento
v3 Fixed a bug in toClr() (did not work correctly with 6 digit colors).

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.