From 5dc52f0858af55abe41a4c30a7e602cf322b5f29 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Fri, 6 Sep 2019 13:18:26 +1000 Subject: [PATCH] Fix incorrect hue shifting --- ts/components/JazzIcon/JazzIcon.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ts/components/JazzIcon/JazzIcon.tsx b/ts/components/JazzIcon/JazzIcon.tsx index e6494dfa1..ac082c1af 100644 --- a/ts/components/JazzIcon/JazzIcon.tsx +++ b/ts/components/JazzIcon/JazzIcon.tsx @@ -94,12 +94,7 @@ export class JazzIcon extends React.PureComponent { private hueShift(colors: Array, generator: RNG) { const amount = generator.random() * 30 - wobble / 2; - return colors.map(hex => { - const color = Color(hex); - color.rotate(amount); - - return color.hex(); - }); + return colors.map(hex => Color(hex).rotate(amount).hex()); } private genShape(