Skip to content

Commit

Permalink
Fix 28465: Restore list of values to globalCompositeOperation page
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Oct 19, 2023
1 parent 7afa94e commit bb95933
Show file tree
Hide file tree
Showing 5 changed files with 370 additions and 327 deletions.
3 changes: 2 additions & 1 deletion files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7777,6 +7777,7 @@
/en-US/docs/Web/API/CanvasRenderingContext2D/mozImageSmoothingEnabled /en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled
/en-US/docs/Web/API/CanvasRenderingContext2D/mozTextStyle /en-US/docs/Web/API/CanvasRenderingContext2D/font
/en-US/docs/Web/API/Canvas_API/Drawing_graphics_with_canvas /en-US/docs/Web/API/Canvas_API/Tutorial
/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing/Example /en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
/en-US/docs/Web/API/CharacterData.previousElementSibling /en-US/docs/Web/API/CharacterData/previousElementSibling
/en-US/docs/Web/API/ChildNode.nextElementSibling /en-US/docs/Web/API/Element/nextElementSibling
/en-US/docs/Web/API/ChildNode.remove /en-US/docs/Web/API/Element/remove
Expand Down Expand Up @@ -12034,7 +12035,7 @@
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Basic_animations /en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Basic_usage /en-US/docs/Web/API/Canvas_API/Tutorial/Basic_usage
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Compositing /en-US/docs/Web/API/Canvas_API/Tutorial/Compositing
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Compositing/Example /en-US/docs/Web/API/Canvas_API/Tutorial/Compositing/Example
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Compositing/Example /en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Drawing_shapes /en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Optimizing_canvas /en-US/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas
/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Pixel_manipulation_with_canvas /en-US/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas
Expand Down
4 changes: 0 additions & 4 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -24687,10 +24687,6 @@
"trevorh"
]
},
"Web/API/Canvas_API/Tutorial/Compositing/Example": {
"modified": "2019-03-23T23:28:23.382Z",
"contributors": ["brttd", "beaugunderson", "jpmedley", "fscholz", "Sheppy"]
},
"Web/API/Canvas_API/Tutorial/Drawing_shapes": {
"modified": "2020-08-05T11:19:13.950Z",
"contributors": [
Expand Down
319 changes: 0 additions & 319 deletions files/en-us/web/api/canvas_api/tutorial/compositing/example/index.md

This file was deleted.

2 changes: 0 additions & 2 deletions files/en-us/web/api/canvas_api/tutorial/compositing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ We can not only draw new shapes behind existing shapes but we can also use it to
- {{domxref("CanvasRenderingContext2D.globalCompositeOperation", "globalCompositeOperation = type")}}
- : This sets the type of compositing operation to apply when drawing new shapes, where type is a string identifying which of the twelve compositing operations to use.

For examples, see the [compositing example](/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing/Example) page.

## Clipping paths

A clipping path is like a normal canvas shape but it acts as a mask to hide unwanted parts of shapes. This is visualized in the image below. The red star shape is our clipping path. Everything that falls outside of this path won't get drawn on the canvas.
Expand Down
Loading

0 comments on commit bb95933

Please sign in to comment.