{"action":"opened","issue":{"url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/149","repository_url":"https://api.github.com/repos/omz/Pythonista-Issues","labels_url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/149/comments","events_url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/149/events","html_url":"https://github.com/omz/Pythonista-Issues/issues/149","id":170498970,"number":149,"title":"Stroke color not set for Python3 version of \"_scene2.line\" ","user":{"login":"RichardPotthoff","id":1579528,"avatar_url":"https://avatars.githubusercontent.com/u/1579528?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardPotthoff","html_url":"https://github.com/RichardPotthoff","followers_url":"https://api.github.com/users/RichardPotthoff/followers","following_url":"https://api.github.com/users/RichardPotthoff/following{/other_user}","gists_url":"https://api.github.com/users/RichardPotthoff/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardPotthoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardPotthoff/subscriptions","organizations_url":"https://api.github.com/users/RichardPotthoff/orgs","repos_url":"https://api.github.com/users/RichardPotthoff/repos","events_url":"https://api.github.com/users/RichardPotthoff/events{/privacy}","received_events_url":"https://api.github.com/users/RichardPotthoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-10T19:30:19Z","updated_at":"2016-08-10T19:30:19Z","closed_at":null,"body":"When I tried to convert an old Python 2 game to Python 3 (The game was Guy Carver's ripoff.py, https://gist.github.com/GuyCarver/4115763), I had problems getting the line colors to work. All lines had the color of a rectangle drawn earlier. I was able to get everything to work by drawing a dummy rectangle before drawing each line:\r\n<pre><code>def drawline(p1, p2): \r\n\trect(0,0,0,0) # <-dummy call to get the stoke color working for line()\r\n\tline(p1.x, p1.y, p2.x, p2.y)\r\n</code></pre>\r\n\r\nI also noticed that the default argument values for <code>_screne_types.Color</code> are not working. This means I get error messages if not all 4 arguments are supplied:\r\n<pre><code>    c=_scene_types.Color()\r\nTypeError: __init__() missing 4 required positional arguments: 'r', 'g', 'b', and 'a'\r\n</code></pre>"}}
{"actor":{"display_login":"RichardPotthoff"}}