{"action":"closed","issue":{"url":"https://api.github.com/repos/processing/processing/issues/4741","repository_url":"https://api.github.com/repos/processing/processing","labels_url":"https://api.github.com/repos/processing/processing/issues/4741/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/4741/comments","events_url":"https://api.github.com/repos/processing/processing/issues/4741/events","html_url":"https://github.com/processing/processing/issues/4741","id":188722963,"number":4741,"title":"Rotate problem in deg","user":{"login":"StanLepunK","id":3332269,"avatar_url":"https://avatars.githubusercontent.com/u/3332269?v=3","gravatar_id":"","url":"https://api.github.com/users/StanLepunK","html_url":"https://github.com/StanLepunK","followers_url":"https://api.github.com/users/StanLepunK/followers","following_url":"https://api.github.com/users/StanLepunK/following{/other_user}","gists_url":"https://api.github.com/users/StanLepunK/gists{/gist_id}","starred_url":"https://api.github.com/users/StanLepunK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StanLepunK/subscriptions","organizations_url":"https://api.github.com/users/StanLepunK/orgs","repos_url":"https://api.github.com/users/StanLepunK/repos","events_url":"https://api.github.com/users/StanLepunK/events{/privacy}","received_events_url":"https://api.github.com/users/StanLepunK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-11T09:50:30Z","updated_at":"2016-11-11T23:32:51Z","closed_at":"2016-11-11T23:32:51Z","body":"there is a problem to render the rotation in degrees, if we give the value directly or if the value is convert from radian. in Radians there is no problem.\r\n![capture d ecran 2016-11-11 a 10 44 50](https://cloud.githubusercontent.com/assets/3332269/20210982/8d27aad2-a7fc-11e6-9b9e-826f6a110a55.png)\r\n\r\n```\r\nvoid setup() {\r\n  size(300, 300) ;\r\n  background(0) ;\r\n  fill(255) ;\r\n  stroke(255) ;\r\n  strokeWeight(.5) ;\r\n  line(width/2, 0, width/2, height) ;\r\n  line(0, height/2, height, height/2) ;\r\n  line(0, 0, width, height) ;\r\n  line(0, height, width, 0) ;\r\n  \r\n  textSize(24) ;\r\n  \r\n  float angle = 45 ;\r\n  angle = PI / 4 ;\r\n  angle = degrees(angle) ;\r\n  rotate_text(angle) ;\r\n  \r\n  noFill() ;\r\n  rotate_rect(angle, 50) ;\r\n}\r\n\r\nvoid rotate_text(float angle) {\r\n  pushMatrix() ;\r\n  translate(width/2, height/2) ;\r\n  rotate(angle) ;\r\n  text(\"Rotate 45\", 0, 0) ;\r\n  popMatrix() ;\r\n}\r\n\r\nvoid rotate_rect(float angle, int size) {\r\n  pushMatrix() ;\r\n  translate(width/2, height/2) ;\r\n  rotate(angle) ;\r\n  rect(0,0, size, size) ;\r\n  popMatrix() ;\r\n}\r\n```"}}
{"actor":{"display_login":"StanLepunK"}}