3 ms·
Please take this test ( this must be the result: http://www.amanithvg.com/screenshots/stroke_hot_case.png http://www.amanithvg.com/screenshots/stroke_hot_case.p
by mfabbri77 12y ago
Please take this test ( this must be the result: http://www.amanithvg.com/screenshots/stroke_hot_case.png http://www.amanithvg.com/screenshots/stroke_hot_case.png )
STROKE_LINE_WIDTH = 200
STROKE_CAP_STYLE = CAP_BUTT;
STROKE_JOIN_STYLE = JOIN_ROUND;
<identity transform matrix>
float xy[8];
int j = 0;
for (int i = 0; i < 4; ++i) {
// x coordinate
xy[j++] = 20.0f * (float)cos((i / 4.0f) * 1.7) + 128.0f;
// y coordinate
xy[j++] = 20.0f * (float)sin((i / 4.0f) * 1.7) + 128.0f;
}
<draw stroked polygon whose points are the xy coordinates>
- mfabbri77 12y agoOther Stroke test (OpenVG API, but it's equivalent to Canvas2D) available here: http://www.mazatech.com/amanithvg/testsuite/amanithvg_sre/html/45_test_draw_stroke.html http://www.mazatech.com/amanithvg/testsuite/amanithvg_sre/ht...