Skip to content

Surface extend modes #95

Description

@vancluever

Define extend modes for various surfaces (namely gradients).

This defines what to do if a pixel that's needed goes beyond the bounds of the surface. Examples:

  • None: Surface returns blank (black/transparent) pixels outside of the bounds.
  • Repeat: Surface repeats/wraps.
  • Reflect: Reverse repeat/wrap.
  • Pad: Last pixel on the bounds is repeated infinitely. This is pretty much what our gradients do right now.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions