Skip to content

Problems creating image patterns with Image.makeShader() in new M144 build #362

@jonathanhogg

Description

@jonathanhogg

Apologies if I've not looked hard enough, but has anything significant changed in Image.makeShader()? I'm getting back a skia.Shader object from it, but painting with it seems to have no effect – i.e., the shader appears to be invalid in some way that stops any drawing.

Note that it's not an "empty" shader (i.e., all alpha zero) or something like that, because if I Shaders.Lerp() blend it with a solid Shaders.Color(), I still get no drawing occurring. I have separately verified that .Color() and .Lerp() are working as before.

To Reproduce
My code is pretty sprawling, so I've not narrowed it down to a small reproducible script yet, but I'll have a go if you need.

Expected behavior
It used to paint using the image I supplied.

Desktop (please complete the following information):

  • OS: macOS 26.3.1
  • Python: 3.13
  • skia-python version: 144.0.post1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions