From bcc4e5ee0b2c0cf48af7a6d4893e55dadd558ccd Mon Sep 17 00:00:00 2001 From: MacDue Date: Tue, 31 Jan 2023 19:12:00 +0100 Subject: [PATCH] Base: Add a test page for canvas patterns --- Base/res/html/misc/canvas-patterns.html | 55 +++++++++++++++++++++++++ Base/res/html/misc/welcome.html | 1 + 2 files changed, 56 insertions(+) create mode 100644 Base/res/html/misc/canvas-patterns.html diff --git a/Base/res/html/misc/canvas-patterns.html b/Base/res/html/misc/canvas-patterns.html new file mode 100644 index 0000000000..d2d4d31693 --- /dev/null +++ b/Base/res/html/misc/canvas-patterns.html @@ -0,0 +1,55 @@ +

Canvas Patterns

+Canvas pattern: Repeat (heart)
ctx.createPattern(img, "repeat")
+

+Canvas pattern: Repeat
ctx.createPattern(img, "repeat")
+

+Canvas pattern: Repeat
ctx.createPattern(img, "repeat-x")
+

+Canvas pattern: Repeat
ctx.createPattern(img, "repeat-y")
+

+Canvas pattern: Repeat
ctx.createPattern(img, "no-repeat")
+ + + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 88563300a7..0a99d20b6b 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -186,6 +186,7 @@
  • Canvas

  • canvas 2D test
  • canvas gradients!
  • +
  • canvas patterns
  • canvas rotate()
  • canvas path rect test
  • canvas path quadratic curve test