{"action":"created","issue":{"url":"https://api.github.com/repos/ungerik/go-cairo/issues/19","repository_url":"https://api.github.com/repos/ungerik/go-cairo","labels_url":"https://api.github.com/repos/ungerik/go-cairo/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ungerik/go-cairo/issues/19/comments","events_url":"https://api.github.com/repos/ungerik/go-cairo/issues/19/events","html_url":"https://github.com/ungerik/go-cairo/pull/19","id":344030503,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNTIxNjI4","number":19,"title":"Add support for linear and radial gradients","user":{"login":"bit101","id":376980,"node_id":"MDQ6VXNlcjM3Njk4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/376980?v=4","gravatar_id":"","url":"https://api.github.com/users/bit101","html_url":"https://github.com/bit101","followers_url":"https://api.github.com/users/bit101/followers","following_url":"https://api.github.com/users/bit101/following{/other_user}","gists_url":"https://api.github.com/users/bit101/gists{/gist_id}","starred_url":"https://api.github.com/users/bit101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit101/subscriptions","organizations_url":"https://api.github.com/users/bit101/orgs","repos_url":"https://api.github.com/users/bit101/repos","events_url":"https://api.github.com/users/bit101/events{/privacy}","received_events_url":"https://api.github.com/users/bit101/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-24T13:11:46Z","updated_at":"2018-07-29T14:36:59Z","closed_at":"2018-07-29T14:35:10Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ungerik/go-cairo/pulls/19","html_url":"https://github.com/ungerik/go-cairo/pull/19","diff_url":"https://github.com/ungerik/go-cairo/pull/19.diff","patch_url":"https://github.com/ungerik/go-cairo/pull/19.patch"},"body":"- added CreateLinearGradient\r\n- added CreateRadialGradient\r\n- added AddColorStopRGB\r\n- added AddColorStopRGBA\r\n- removed some returns that the linter was complaining about as unreachable code.\r\n\r\nSample Code:\r\n\r\n\tsurface := cairo.NewSurface(cairo.FORMAT_ARGB32, 400, 200)\r\n\tpattern := cairo.CreateLinearGradient(0, 0, 200, 200)\r\n\tpattern.AddColorStopRGB(0, 1, 1, 1)\r\n\tpattern.AddColorStopRGB(1, 0, 0, 0)\r\n\tsurface.SetSource(pattern)\r\n\tsurface.Rectangle(0, 0, 200, 200)\r\n\tsurface.Fill()\r\n\r\n\tpattern = cairo.CreateRadialGradient(300, 100, 0, 300, 100, 100)\r\n\tpattern.AddColorStopRGB(0, 1, 0, 0)\r\n\tpattern.AddColorStopRGB(1, 0, 0, 1)\r\n\tsurface.SetSource(pattern)\r\n\tsurface.Rectangle(200, 0, 200, 200)\r\n\tsurface.Fill()\r\n"},"comment":{"url":"https://api.github.com/repos/ungerik/go-cairo/issues/comments/408682031","html_url":"https://github.com/ungerik/go-cairo/pull/19#issuecomment-408682031","issue_url":"https://api.github.com/repos/ungerik/go-cairo/issues/19","id":408682031,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODY4MjAzMQ==","user":{"login":"bit101","id":376980,"node_id":"MDQ6VXNlcjM3Njk4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/376980?v=4","gravatar_id":"","url":"https://api.github.com/users/bit101","html_url":"https://github.com/bit101","followers_url":"https://api.github.com/users/bit101/followers","following_url":"https://api.github.com/users/bit101/following{/other_user}","gists_url":"https://api.github.com/users/bit101/gists{/gist_id}","starred_url":"https://api.github.com/users/bit101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit101/subscriptions","organizations_url":"https://api.github.com/users/bit101/orgs","repos_url":"https://api.github.com/users/bit101/repos","events_url":"https://api.github.com/users/bit101/events{/privacy}","received_events_url":"https://api.github.com/users/bit101/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T14:36:59Z","updated_at":"2018-07-29T14:36:59Z","author_association":"CONTRIBUTOR","body":"This project is great, but has not seen much work in the last couple of years. I'm doing a lot of clean up and additions to it in my own fork. I will work off and develop that at github.com/bit101/go-cairo. If you ever want to pull my changes in, just let me know."}}
{"actor":{"display_login":"bit101"}}