第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

字體顏色變不了

切換字體顏色的代碼
private?int?evaluate(float?progress,?int?startValue,?int?endValue)?{
????int?startA?=?(startValue?>>?24)?&?0xff;
????int?startR?=?(startValue?>>?16)?&?0xff;
????int?startG?=?(startValue?>>?8)?&?0xff;
????int?startB?=?startValue?&?0xff;

????int?endA?=?(endValue?>>?24)?&?0xff;
????int?endR?=?(endValue?>>?16)?&?0xff;
????int?endG?=?(endValue?>>?8)?&?0xff;
????int?endB?=?endValue?&?0xff;

????return?(int)((startA?+?(int)?progress?*?(endA?-?startA)))?<<?24?|
????????????(int)((startR?+?(int)?progress?*?(endR?-?startR)))?<<?16?|
????????????(int)((startG?+?(int)?progress?*?(endG?-?startG)))?<<?8?|
????????????(int)?((startB?+?(int)?progress?*?(endB?-?startB)));
}

https://img1.sycdn.imooc.com//5cbe64ea0001f96a09210532.jpg


https://img1.sycdn.imooc.com//5cbe652d00012cf010050505.jpg

if?(positionOffset?>?0)?{
????TabView?left?=?mTabs.get(position);
????TabView?right?=?mTabs.get(position?+?1);
????left.setProgress((1?-?positionOffset));
????right.setProgress(positionOffset);
}


https://img1.sycdn.imooc.com//5cbe659a0001b76608641152.jpg

正在回答

2 回答

private?int?evaluate(float?fraction,?int?startValue,?int?endValue)?{
????int?startInt?=?(Integer)?startValue;
????float?startA?=?((startInt?>>?24)?&?0xff)?/?255.0f;
????float?startR?=?((startInt?>>?16)?&?0xff)?/?255.0f;
????float?startG?=?((startInt?>>??8)?&?0xff)?/?255.0f;
????float?startB?=?(?startInt????????&?0xff)?/?255.0f;

????int?endInt?=?(Integer)?endValue;
????float?endA?=?((endInt?>>?24)?&?0xff)?/?255.0f;
????float?endR?=?((endInt?>>?16)?&?0xff)?/?255.0f;
????float?endG?=?((endInt?>>??8)?&?0xff)?/?255.0f;
????float?endB?=?(?endInt????????&?0xff)?/?255.0f;

????//?convert?from?sRGB?to?linear
????startR?=?(float)?Math.pow(startR,?2.2);
????startG?=?(float)?Math.pow(startG,?2.2);
????startB?=?(float)?Math.pow(startB,?2.2);

????endR?=?(float)?Math.pow(endR,?2.2);
????endG?=?(float)?Math.pow(endG,?2.2);
????endB?=?(float)?Math.pow(endB,?2.2);

????//?compute?the?interpolated?color?in?linear?space
????float?a?=?startA?+?fraction?*?(endA?-?startA);
????float?r?=?startR?+?fraction?*?(endR?-?startR);
????float?g?=?startG?+?fraction?*?(endG?-?startG);
????float?b?=?startB?+?fraction?*?(endB?-?startB);

????//?convert?back?to?sRGB?in?the?[0..255]?range
????a?=?a?*?255.0f;
????r?=?(float)?Math.pow(r,?1.0?/?2.2)?*?255.0f;
????g?=?(float)?Math.pow(g,?1.0?/?2.2)?*?255.0f;
????b?=?(float)?Math.pow(b,?1.0?/?2.2)?*?255.0f;

????return?Math.round(a)?<<?24?|?Math.round(r)?<<?16?|?Math.round(g)?<<?8?|?Math.round(b);
}


1 回復(fù) 有任何疑惑可以回復(fù)我~

沒有看出來哪里有問題

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

字體顏色變不了

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)