Update Interpolation to use new color format
Reviewed By: bestander Differential Revision: D2911363 fb-gh-sync-id: eddfc1f1e33ee6c74f3a492a69f6d93de018e4ae
This commit is contained in:
parent
1c112762e3
commit
042862a010
|
@ -173,10 +173,10 @@ function colorToRgba(input: string): string {
|
|||
|
||||
int32Color = int32Color || 0; // $FlowIssue
|
||||
|
||||
var a = ((int32Color & 0xff000000) >>> 24) / 255;
|
||||
var r = (int32Color & 0x00ff0000) >>> 16;
|
||||
var g = (int32Color & 0x0000ff00) >>> 8;
|
||||
var b = int32Color & 0x000000ff;
|
||||
var r = (int32Color & 0xff000000) >>> 24;
|
||||
var g = (int32Color & 0x00ff0000) >>> 16;
|
||||
var b = (int32Color & 0x0000ff00) >>> 8;
|
||||
var a = (int32Color & 0x000000ff) / 255;
|
||||
|
||||
return `rgba(${r}, ${g}, ${b}, ${a})`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue