PINE LIBRARY

ToClrToStr

โดย moebius1977
ที่อัปเดต:
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
เอกสารเผยแพร่
v2 Removed a log.info()
เอกสารเผยแพร่
v3 Fixed a bug in toClr() (did not work correctly with 6 digit colors).
colorcolorsHEXRGBtostring

ไลบรารีไพน์

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์ซไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ