Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. RGB颜色值转换为十进制

RGB颜色值转换为十进制

  • Post author:xfxia
  • Post published:2023年9月8日
  • Post category:其他


//将RGB的值分别移位
c = (components.r << 16) + (components.g << 8) + (components.b);
//解析数据
var components = {
    r: (c & 0xff0000) >> 16, 
    g: (c & 0x00ff00) >> 8, 
    b: (c & 0x0000ff)
};



版权声明:本文为weixin_45242954原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_45242954/article/details/124137950

你可能也喜欢

(code blocks)error: invalid initializer|

HTTP REST请求POST和PUT的区别

Oracle 常用数据库状态查询/修改

海量数据处理常用思路和方法

GoFastDfs下载安装

Spring+MyBatis整合所需jar

struts2 action 页面跳转

钻石型虚拟多重继承的C++对象内存模型

漫谈C#编程语言在游戏领域的应用

6-1单链表逆转(浙大数据结构PTA)

外国人聊天常用的缩写(转)

英伟达最新雷达工作:NVRadar:一种实时的雷达障碍检测和占位栅格预测方法

初识工业互联网

安装ocserv服务

u盘读写测试_三星FIT Plus 128GB开箱评测:4K读写性能突破性提升

TensorFlow深度学习框架学习笔记(1)

zblog多合一搜索引擎推送工具

mac编译apache时出现 checking whether the C compiler works… no 的解决办法

【Reinforcement Learning】什么是强化学习以及算法分类

+= -= *= /= %=

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单