辛迪
LÖVE 11 的真实色彩
cindy 向 LÖVE 11.x 添加了接受/返回 [0,255] 范围内的颜色的函数,而不是新引入的 [0.0,1.0] 范围。
在 love.graphics 中:
clearBytes
getColorBytes ,设置setColorBytes
getBackgroundColorBytes , setBackgroundColorBytes
在图像数据中:
getPixelBytes setPixelBytes getPixelBytes ,设置setPixelBytes
mapPixelBytes
在粒子系统中:
setColorsBytes ,获取getColorsBytes
在 SpriteBatch 中:
getColorBytes ,设置setColorBytes
在着色器中:
sendColorBytes