Open TerryLee7788 opened 10 years ago
寫一個十六進制的轉換color function, ( 例如: #0000ff (藍色), 帶入 getRGB( "#0000FF" ), 他會return "rgb(0,0,255)" ). example code: var green = getRGB( '#00FF00' ); green; // "rgb(0,255,0)"
Please have a look if you feel free ! :) @dreamline2 @brain00021 @shizu-liu
!!收到
我最近也遇到這個問題,但是要從 rgba 轉回 16進位色碼表。
寫一個十六進制的轉換color function, ( 例如: #0000ff (藍色), 帶入 getRGB( "#0000FF" ), 他會return "rgb(0,0,255)" ). example code: var green = getRGB( '#00FF00' ); green; // "rgb(0,255,0)"