Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layers for Canvas #7542

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Layers for Canvas #7542

wants to merge 5 commits into from

Conversation

Juanmihd
Copy link

@Juanmihd Juanmihd commented Jan 27, 2022

A javascript interface for using layers within canvas.

Provide a beginLayer() and endLayer() functions that create and close layers for Canvas. These methods provide an alternative method for applying a filter, shadow or compositing to a set of drawn operations (as opposed to a single one), other than having to create a temporary canvas and then draw the temporary canvas into the intended canvas.

Working proposal: https://github.com/fserb/canvas2D/blob/master/spec/layers.md
Whatwg issue: #7329

(See WHATWG Working Mode: Changes for more details.)


/canvas.html ( diff )
/index.html ( diff )

@Kaiido Kaiido mentioned this pull request Feb 11, 2022
@annevk annevk added the do not merge yet Pull request must not be merged per rationale in comment label Mar 4, 2022
@annevk
Copy link
Member

annevk commented Mar 4, 2022

Let's resolve the discussion first and then get back to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge yet Pull request must not be merged per rationale in comment
Development

Successfully merging this pull request may close these issues.

2 participants