{"action":"created","issue":{"url":"https://api.github.com/repos/littlevgl/lvgl/issues/252","repository_url":"https://api.github.com/repos/littlevgl/lvgl","labels_url":"https://api.github.com/repos/littlevgl/lvgl/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/littlevgl/lvgl/issues/252/comments","events_url":"https://api.github.com/repos/littlevgl/lvgl/issues/252/events","html_url":"https://github.com/littlevgl/lvgl/issues/252","id":322743105,"node_id":"MDU6SXNzdWUzMjI3NDMxMDU=","number":252,"title":"Round line ends or flat related to line angle possible?","user":{"login":"bkht","id":14540138,"node_id":"MDQ6VXNlcjE0NTQwMTM4","avatar_url":"https://avatars2.githubusercontent.com/u/14540138?v=4","gravatar_id":"","url":"https://api.github.com/users/bkht","html_url":"https://github.com/bkht","followers_url":"https://api.github.com/users/bkht/followers","following_url":"https://api.github.com/users/bkht/following{/other_user}","gists_url":"https://api.github.com/users/bkht/gists{/gist_id}","starred_url":"https://api.github.com/users/bkht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkht/subscriptions","organizations_url":"https://api.github.com/users/bkht/orgs","repos_url":"https://api.github.com/users/bkht/repos","events_url":"https://api.github.com/users/bkht/events{/privacy}","received_events_url":"https://api.github.com/users/bkht/received_events","type":"User","site_admin":false},"labels":[{"id":389374647,"node_id":"MDU6TGFiZWwzODkzNzQ2NDc=","url":"https://api.github.com/repos/littlevgl/lvgl/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":389374648,"node_id":"MDU6TGFiZWwzODkzNzQ2NDg=","url":"https://api.github.com/repos/littlevgl/lvgl/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/littlevgl/lvgl/milestones/1","html_url":"https://github.com/littlevgl/lvgl/milestone/1","labels_url":"https://api.github.com/repos/littlevgl/lvgl/milestones/1/labels","id":3180872,"node_id":"MDk6TWlsZXN0b25lMzE4MDg3Mg==","number":1,"title":"v5.2","description":"The main goals of v5.2 release:\r\n- Add new object types\r\n- Extend the API like lv_btn_set_size()\r\n- Add PNG or external image decoder support","creator":{"login":"kisvegabor","id":7599318,"node_id":"MDQ6VXNlcjc1OTkzMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7599318?v=4","gravatar_id":"","url":"https://api.github.com/users/kisvegabor","html_url":"https://github.com/kisvegabor","followers_url":"https://api.github.com/users/kisvegabor/followers","following_url":"https://api.github.com/users/kisvegabor/following{/other_user}","gists_url":"https://api.github.com/users/kisvegabor/gists{/gist_id}","starred_url":"https://api.github.com/users/kisvegabor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisvegabor/subscriptions","organizations_url":"https://api.github.com/users/kisvegabor/orgs","repos_url":"https://api.github.com/users/kisvegabor/repos","events_url":"https://api.github.com/users/kisvegabor/events{/privacy}","received_events_url":"https://api.github.com/users/kisvegabor/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":0,"state":"open","created_at":"2018-03-12T15:53:56Z","updated_at":"2018-06-01T13:35:07Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2018-05-14T09:43:12Z","updated_at":"2018-06-06T14:36:33Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nthanks for this great library!\r\nI notice that the line ends are either ending in a vertical or in a horizontal fashion, I think depending on the slope.\r\nWould it be nice if it could be the related to the angle of the line and optionally have round line ends?\r\nBest Regards!"},"comment":{"url":"https://api.github.com/repos/littlevgl/lvgl/issues/comments/395091354","html_url":"https://github.com/littlevgl/lvgl/issues/252#issuecomment-395091354","issue_url":"https://api.github.com/repos/littlevgl/lvgl/issues/252","id":395091354,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTA5MTM1NA==","user":{"login":"bkht","id":14540138,"node_id":"MDQ6VXNlcjE0NTQwMTM4","avatar_url":"https://avatars2.githubusercontent.com/u/14540138?v=4","gravatar_id":"","url":"https://api.github.com/users/bkht","html_url":"https://github.com/bkht","followers_url":"https://api.github.com/users/bkht/followers","following_url":"https://api.github.com/users/bkht/following{/other_user}","gists_url":"https://api.github.com/users/bkht/gists{/gist_id}","starred_url":"https://api.github.com/users/bkht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkht/subscriptions","organizations_url":"https://api.github.com/users/bkht/orgs","repos_url":"https://api.github.com/users/bkht/repos","events_url":"https://api.github.com/users/bkht/events{/privacy}","received_events_url":"https://api.github.com/users/bkht/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T14:36:33Z","updated_at":"2018-06-06T14:36:33Z","author_association":"NONE","body":"Hi gabor,\r\n\r\nnow I have this:\r\n\r\n    void fill_wrapper(const lv_area_t * coords, const lv_area_t * mask, lv_color_t color, lv_opa_t opa)\r\n    {\r\n        /*`opa` and `mask` are don't care*/\r\n        lcd.SetTextColor((uint32_t) color.full);\r\n        lcd.DrawRect((uint16_t) coords->x1, (uint16_t) coords->y1,\r\n                (uint16_t) lv_area_get_width(coords), (uint16_t) lv_area_get_height(coords));\r\n    }\r\n\r\n    // Rectangle or Circle or what?\r\n    static lv_area_t cords;\r\n    cords.x1 = 110;\r\n    cords.y1 = 10;\r\n    cords.x2 = 500;\r\n    cords.y2 = 240;\r\n    static lv_area_t mask;\r\n    mask.x1 = 10;\r\n    mask.y1 = 10;\r\n    mask.x2 = 400;\r\n    mask.y2 = 240;\r\n    static lv_style_t style_rect;\r\n    lv_style_copy(&style_rect, &lv_style_pretty);\r\n    style_rect.body.main_color =  LV_COLOR_LIME;\r\n    style_rect.body.grad_color =  LV_COLOR_GREEN;\r\n    style_rect.body.radius = LV_RADIUS_CIRCLE;\r\n    style_rect.body.opa = LV_OPA_70;\r\n    style_rect.body.border.color = LV_COLOR_WHITE;\r\n    style_rect.body.border.width = 3;\r\n    style_rect.body.border.part = LV_BORDER_RIGHT;\r\n    style_rect.body.border.opa = LV_OPA_70;\r\n    style_rect.body.shadow.color = LV_COLOR_LIME;\r\n    style_rect.body.shadow.type = LV_SHADOW_BOTTOM;\r\n    style_rect.body.shadow.width = 10;\r\n    style_rect.body.padding.inner = 8;\r\n    style_rect.body.padding.hor = 5;\r\n    style_rect.body.padding.ver = 5;\r\n    style_rect.text.color = LV_COLOR_HEX3(0x333);\r\n    style_rect.text.font = &lv_font_dejavu_30;\r\n    style_rect.text.letter_space = 1;\r\n    style_rect.text.line_space = 1;\r\n    style_rect.text.opa = LV_OPA_50;\r\n    style_rect.image.color = LV_COLOR_HEX(0x202020);\r\n    style_rect.image.intense = LV_OPA_50;\r\n    style_rect.image.opa = LV_OPA_50;\r\n    style_rect.line.color = LV_COLOR_RED;\r\n    style_rect.line.width = 3;\r\n    style_rect.line.opa = LV_OPA_50;\r\n    lv_draw_rect(&cords, &mask, &style_rect);\r\n\r\n    void (*fill_fp)(const lv_area_t * coords, const lv_area_t * mask, lv_color_t color, lv_opa_t opa) = fill_wrapper;\r\n\r\nBut what gets drawn in the buffer is still invisible, to my eyes. :-)\r\n"}}
{"actor":{"display_login":"bkht"}}