{"action":"opened","issue":{"url":"https://api.github.com/repos/harthur/color/issues/46","labels_url":"https://api.github.com/repos/harthur/color/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/harthur/color/issues/46/comments","events_url":"https://api.github.com/repos/harthur/color/issues/46/events","html_url":"https://github.com/harthur/color/issues/46","id":53906419,"number":46,"title":"'.mix()' method fails to work with cloned color","user":{"login":"ZuBB","id":597016,"avatar_url":"https://avatars.githubusercontent.com/u/597016?v=3","gravatar_id":"","url":"https://api.github.com/users/ZuBB","html_url":"https://github.com/ZuBB","followers_url":"https://api.github.com/users/ZuBB/followers","following_url":"https://api.github.com/users/ZuBB/following{/other_user}","gists_url":"https://api.github.com/users/ZuBB/gists{/gist_id}","starred_url":"https://api.github.com/users/ZuBB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZuBB/subscriptions","organizations_url":"https://api.github.com/users/ZuBB/orgs","repos_url":"https://api.github.com/users/ZuBB/repos","events_url":"https://api.github.com/users/ZuBB/events{/privacy}","received_events_url":"https://api.github.com/users/ZuBB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T19:41:23Z","updated_at":"2015-01-09T19:41:23Z","closed_at":null,"body":"Hi there!\r\n\r\nFirst of all I would like to excuse for test case that is not as simple as it should be.\r\n\r\nI have next code\r\n\r\n```javascript\r\n        ...\r\n        //var baseColor = Color('#73FF73');\r\n        var gtColor = Color('#FF7400');\r\n        var ltColor = Color('#004DFF');\r\n        var colors = { '0.00': 'rgb(255,255,255)' };\r\n\r\n        this.getDepDataSet().forEach(function(item) {\r\n            if (typeof colors[item.index] !== 'undefined') {\r\n                return;\r\n            }\r\n\r\n            var value = item.number;\r\n            var otherColor = value > 1 ? gtColor : ltColor;\r\n            var weight = (value > 1 ? (value - 1) : (1 - value)) * 3;\r\n            //var resultColor = baseColor.clone().mix(otherColor, weight);\r\n            var resultColor = Color('#73FF73').mix(otherColor, weight);\r\n            colors[item.index] = resultColor.rgbString();\r\n        });\r\n        ...\r\n```\r\n\r\nCode above produces a set of colors that are used in table coloring. \r\nWith this code I get a right colors that I am expect (lets call them 'correct'). See 1st pic. When I use code that is commented I get wrong colors (see 2nd pic). In both cases same set of data is used\r\n\r\n![2015-01-09-212715_1920x1080_scrot](https://cloud.githubusercontent.com/assets/597016/5685940/a1847ab2-9847-11e4-935f-f46f10e65757.png)\r\n\r\n![2015-01-09-213757_1920x1080_scrot](https://cloud.githubusercontent.com/assets/597016/5685979/e90ae722-9847-11e4-8d7a-f84ef9c03590.png)\r\n"}}