Update Interpolation to use new color format

Reviewed By: bestander

Differential Revision: D2911363

fb-gh-sync-id: eddfc1f1e33ee6c74f3a492a69f6d93de018e4ae
This commit is contained in:
Pieter De Baets 2016-02-08 04:48:29 -08:00 committed by facebook-github-bot-5
parent 1c112762e3
commit 042862a010
1 changed files with 4 additions and 4 deletions

View File

@ -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})`;
}