dongshungai4857 2009-03-12 15:09
浏览 73
已采纳

颜色代码传递给Twitter徽章中的flash变量

I'm trying to create a simple interface to automate the creation of a flash twitter badge for a WordPress theme.

My question is this, on the twitter page which has a simple color customizer, the standard hex color codes are getting translated to something to be passed to the flash as a variable.

Can anyone shed any light on what that color code system is? And possibly how I might write a PHP function to translate a six-digit hex code into that system?

  • 写回答

1条回答 默认 最新

  • dongzhuohan7085 2009-03-12 15:19
    关注

    They are passing the hex color value as decimal. E.g:

    (16711680)base10 = (FF0000)base16 = (red)base-layman
    (0)base10        = (0)base16      = (black)base-layman
    

    You don't need any special magic in PHP as far as I can tell. This is a matter of representation and not of encoding.

    Hope that helps!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 php 将rtmp协议转hls协议,无法播放
  • ¥15 miniconda安装不了
  • ¥20 python代码编写
  • ¥20 使用MPI广播数据遇到阻塞
  • ¥15 TinyMCE如何去掉自动弹出的“链接…”工具?
  • ¥15 微信支付转账凭证,如何解决
  • ¥15 在win10下使用指纹登录时,界面上的文字最后一个字产生换行现象
  • ¥20 使用AT89C51微控制器和MAX7219驱动器来实现0到99秒的秒表计数,有开始和暂停以及复位功能,下面有仿真图,请根据仿真图来设计c语言程序
  • ¥15 51单片机 双路ad同步采样
  • ¥15 使用xdocreport 生成word