Skip to content

Commit

Permalink
💚
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Sep 2, 2021
1 parent c036513 commit 7af1141
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ export const hsv2rgb = (h: number, s: number, v: number) => {
};

export const opacity = (c: number): number => {
'worklet';
"worklet";
return ((c >> 24) & 255) / 255;
};

export const red = (c: number): number => {
'worklet';
"worklet";
return (c >> 16) & 255;
};

export const green = (c: number): number => {
'worklet';
"worklet";
return (c >> 8) & 255;
};

export const blue = (c: number): number => {
'worklet';
"worklet";
return c & 255;
};

0 comments on commit 7af1141

Please sign in to comment.