Пример #1
0
def test_PathEffect_asPoints(patheffect):
    results = skia.PathEffect.PointData()
    path = skia.Path()
    path.addCircle(10, 10, 5)
    rec = skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
    matrix = skia.Matrix()
    assert isinstance(patheffect.asPoints(results, path, rec, matrix, None),
                      bool)
Пример #2
0
def test_StrokeRec_hasEqualEffect(strokerec):
    assert isinstance(
        strokerec.hasEqualEffect(
            skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)), bool)
Пример #3
0
def strokerec():
    return skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
Пример #4
0
def test_PathEffect_filterPath(patheffect):
    dst = skia.Path()
    src = skia.Path()
    src.addCircle(10, 10, 5)
    rec = skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
    assert isinstance(patheffect.filterPath(dst, src, rec, None), bool)
Пример #5
0
def test_StrokeRec_init(args):
    assert isinstance(skia.StrokeRec(*args), skia.StrokeRec)