dreamline2 / Front_End_Exchange

技術交流
2 stars 4 forks source link

Function 動動腦~ #23

Open TerryLee7788 opened 10 years ago

TerryLee7788 commented 10 years ago

寫一個十六進制的轉換color function, ( 例如: #0000ff (藍色), 帶入 getRGB( "#0000FF" ), 他會return "rgb(0,0,255)" ). example code: var green = getRGB( '#00FF00' ); green; // "rgb(0,255,0)"

TerryLee7788 commented 10 years ago

Please have a look if you feel free ! :) @dreamline2 @brain00021 @shizu-liu

dreamline2 commented 10 years ago

!!收到

dreamline2 commented 10 years ago

我最近也遇到這個問題,但是要從 rgba 轉回 16進位色碼表。