{"action":"created","issue":{"url":"https://api.github.com/repos/DeRampage/GdP/issues/10","repository_url":"https://api.github.com/repos/DeRampage/GdP","labels_url":"https://api.github.com/repos/DeRampage/GdP/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/DeRampage/GdP/issues/10/comments","events_url":"https://api.github.com/repos/DeRampage/GdP/issues/10/events","html_url":"https://github.com/DeRampage/GdP/issues/10","id":137253112,"number":10,"title":"Praktikum 8 Malen","user":{"login":"DeRampage","id":17006596,"avatar_url":"https://avatars.githubusercontent.com/u/17006596?v=3","gravatar_id":"","url":"https://api.github.com/users/DeRampage","html_url":"https://github.com/DeRampage","followers_url":"https://api.github.com/users/DeRampage/followers","following_url":"https://api.github.com/users/DeRampage/following{/other_user}","gists_url":"https://api.github.com/users/DeRampage/gists{/gist_id}","starred_url":"https://api.github.com/users/DeRampage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeRampage/subscriptions","organizations_url":"https://api.github.com/users/DeRampage/orgs","repos_url":"https://api.github.com/users/DeRampage/repos","events_url":"https://api.github.com/users/DeRampage/events{/privacy}","received_events_url":"https://api.github.com/users/DeRampage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-29T13:21:24Z","updated_at":"2016-02-29T13:35:11Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/DeRampage/GdP/issues/comments/190214189","html_url":"https://github.com/DeRampage/GdP/issues/10#issuecomment-190214189","issue_url":"https://api.github.com/repos/DeRampage/GdP/issues/10","id":190214189,"user":{"login":"DeRampage","id":17006596,"avatar_url":"https://avatars.githubusercontent.com/u/17006596?v=3","gravatar_id":"","url":"https://api.github.com/users/DeRampage","html_url":"https://github.com/DeRampage","followers_url":"https://api.github.com/users/DeRampage/followers","following_url":"https://api.github.com/users/DeRampage/following{/other_user}","gists_url":"https://api.github.com/users/DeRampage/gists{/gist_id}","starred_url":"https://api.github.com/users/DeRampage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeRampage/subscriptions","organizations_url":"https://api.github.com/users/DeRampage/orgs","repos_url":"https://api.github.com/users/DeRampage/repos","events_url":"https://api.github.com/users/DeRampage/events{/privacy}","received_events_url":"https://api.github.com/users/DeRampage/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T13:35:11Z","updated_at":"2016-02-29T13:35:11Z","body":"```\r\npackage Praktikum8;\r\n\r\nimport java.wt.Color;\r\nimport java.wt.Graphics;\r\n\r\npublic class Dreieck {\r\n\r\n    public Position pos;\r\n    public double grundseite;\r\n    public double höhe;\r\n    public Color füllfarbe = Color.WHITE;\r\n    public Color randfarbe = Color.WHITE;\r\n\r\n    public void anzeigen(Graphics g) {\r\n        g.setColor(füllfalbe);\r\n        if (randfarbe == Color.WHITE) {\r\n            g.fillPolygon(\r\n                    new int[]{\r\n                        (int) (pos.getX()), //p1\r\n                        (int) (pos.getX() - grundseite / 2), //p2\r\n                        (int) (pos.getX() + grundseite / 2)}, //p3\r\n                    new int[]{\r\n                        (int) (pos.getY()), //p1\r\n                        (int) (pos.getY() + höhe), //p2\r\n                        (int) (pos.getY() + höhe)}, //p3\r\n                    3);\r\n        } else {\r\n            g.drawPolygon(\r\n                    new int[]{\r\n                        (int) (pos.getX()), //p1\r\n                        (int) (pos.getX() - grundseite / 2), //p2\r\n                        (int) (pos.getX() + grundseite / 2)}, //p3\r\n                    new int[]{\r\n                        (int) (pos.getY()), //p1\r\n                        (int) (pos.getY() + höhe), //p2\r\n                        (int) (pos.getY() + höhe)}, //p3\r\n                    3);\r\n\r\n        }\r\n    }\r\n\r\n    public Dreieck(Position posi, double grund, double hoch, Color rand, Color füll) {\r\n        pos = posi;\r\n        grundseite = Grund;\r\n        höhe = hoch;\r\n        randfarbe = rand;\r\n        füllfarbe = füll;\r\n    }\r\n\r\n    public Dreieck(Position posi, double grund, double hoch, Color füll) {\r\n        pos = posi;\r\n        grundseite = Grund;\r\n        höhe = hoch;\r\n        füllfarbe = füll;\r\n    }\r\n}\r\n```"}}