8000 Patterns · Issue #166 · williamngan/pts · GitHub
[go: up one dir, main page]

Skip to content

Patterns #166

Open
Open

Description

@camilleroux

Hi,

Is there a way to create patterns like in SVG?
Can I do it at least in a SVGSpace?

Activity

  1. williamngan commented on Dec 15, 2021

    @williamngan
    Owner

    Thanks @camilleroux - that would be a great feature to add to Pts. I need to think about how to make it simple.

    For now, you can try the standard API from canvas, eg, form.ctx.createPattern(...)

    See MDN docs: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern

  2. williamngan commented on Jul 28, 2022

    @williamngan
    Owner

    Hi again @camilleroux! Took me a while but I finished it -- the Img class now supports both static and dynamic patterns in Canvas. Take a look at the guide here and let me know if you have feedback. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0