RuiwenTang / Skity

A light weight 2D Vector Graphic renderer library writing in c++ for OpenGL3.3+ / OpenGLES3.0+ / Vulkan 1.1+/ WebGL2 with WASM
https://ruiwentang.github.io/Skity/
MIT License
219 stars 28 forks source link

我使用setStrokeJoin()的时候,曲线连接处没有效果 #24

Closed 0TemetNosce0 closed 2 years ago

RuiwenTang commented 2 years ago

@0TemetNosce0 可以提供一个简单的例子么,或者提一个修复的PR也行

0TemetNosce0 commented 2 years ago
    skity::Paint paint;
    paint.setStyle(skity::Paint::kStroke_Style);
    paint.setAntiAlias(true);
    paint.setStrokeWidth(6.f);
    paint.setStrokeJoin(skity::Paint::kRound_Join);
    paint.setStrokeColor(1, 0, 0x0, 1.f);
    skity::Path path;
    path.moveTo(20, 80);
    path.lineTo(20, 30);
    path.cubicTo(80, 0, 50, 50, 80, 80);
    canvas->drawPath(path, paint);

显示效果:https://note.youdao.com/s/PeNRW14C

RuiwenTang commented 2 years ago

@0TemetNosce0 可以同步一下最新的代码,这个看上去已经正常了

screenshot-20220422-181707