{"action":"closed","issue":{"url":"https://api.github.com/repos/tibiamaps/tibia-maps-script/issues/1","labels_url":"https://api.github.com/repos/tibiamaps/tibia-maps-script/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tibiamaps/tibia-maps-script/issues/1/comments","events_url":"https://api.github.com/repos/tibiamaps/tibia-maps-script/issues/1/events","html_url":"https://github.com/tibiamaps/tibia-maps-script/issues/1","id":94511722,"number":1,"title":"Colors","user":{"login":"BourbonCrow","id":6895650,"avatar_url":"https://avatars.githubusercontent.com/u/6895650?v=3","gravatar_id":"","url":"https://api.github.com/users/BourbonCrow","html_url":"https://github.com/BourbonCrow","followers_url":"https://api.github.com/users/BourbonCrow/followers","following_url":"https://api.github.com/users/BourbonCrow/following{/other_user}","gists_url":"https://api.github.com/users/BourbonCrow/gists{/gist_id}","starred_url":"https://api.github.com/users/BourbonCrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BourbonCrow/subscriptions","organizations_url":"https://api.github.com/users/BourbonCrow/orgs","repos_url":"https://api.github.com/users/BourbonCrow/repos","events_url":"https://api.github.com/users/BourbonCrow/events{/privacy}","received_events_url":"https://api.github.com/users/BourbonCrow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-11T22:10:33Z","updated_at":"2015-07-12T10:00:43Z","closed_at":"2015-07-12T10:00:43Z","body":"I dont really know JS but a tip for you on the Colors for the map that will be future proof that i found with pure luck its a pattern in the color bytes this is php but you can probably easy make it js\r\n```php\r\n$r = 0;\r\n$g = 0;\r\n$b = 0;\r\n\r\nfor ($i = 0; $i < 240; $i++) {\r\n  $col[$i] = imagecolorallocate($im, $r, $g, $b);\r\n\r\n  $b += 51;\r\n\r\n  if ($b > 255) {\r\n    $b = 0;\r\n    $g += 51;\r\n  }\r\n\r\n  if ($g > 255) {\r\n    $g = 0;\r\n    $r += 51;\r\n  }\r\n\r\n  if ($r > 255) {\r\n    $r = 50;\r\n  }\r\n}\r\n```"}}