From 607e57fa768e1c6acc550350fc7590e941aad7ca Mon Sep 17 00:00:00 2001 From: Obvious Alex C <76855369+David-Orangemoon@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:01:15 -0400 Subject: [PATCH] Update docs to include the first 2 pages --- .../squareBlocks/getPenSquareAttribute.svg | 45 +++++++++++ .../blocks/squareBlocks/resetSquare.svg | 45 +++++++++++ .../squareBlocks/setPenSquareAttribute.svg | 45 +++++++++++ .../blocks/squareBlocks/stampSquare.svg | 45 +++++++++++ .../blocks/squareBlocks/stampTexSquare.svg | 45 +++++++++++ .../blocks/squareBlocks/tintSquare.svg | 45 +++++++++++ main/extensions/penPlus/main.html | 2 +- main/extensions/penPlus/squareBlocks.html | 79 +++++++++++++++++++ script.js | 28 +++++++ 9 files changed, 378 insertions(+), 1 deletion(-) create mode 100644 main/extensions/penPlus/blocks/squareBlocks/getPenSquareAttribute.svg create mode 100644 main/extensions/penPlus/blocks/squareBlocks/resetSquare.svg create mode 100644 main/extensions/penPlus/blocks/squareBlocks/setPenSquareAttribute.svg create mode 100644 main/extensions/penPlus/blocks/squareBlocks/stampSquare.svg create mode 100644 main/extensions/penPlus/blocks/squareBlocks/stampTexSquare.svg create mode 100644 main/extensions/penPlus/blocks/squareBlocks/tintSquare.svg create mode 100644 main/extensions/penPlus/squareBlocks.html diff --git a/main/extensions/penPlus/blocks/squareBlocks/getPenSquareAttribute.svg b/main/extensions/penPlus/blocks/squareBlocks/getPenSquareAttribute.svg new file mode 100644 index 0000000..7823571 --- /dev/null +++ b/main/extensions/penPlus/blocks/squareBlocks/getPenSquareAttribute.svg @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/main/extensions/penPlus/blocks/squareBlocks/resetSquare.svg b/main/extensions/penPlus/blocks/squareBlocks/resetSquare.svg new file mode 100644 index 0000000..560ca55 --- /dev/null +++ b/main/extensions/penPlus/blocks/squareBlocks/resetSquare.svg @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/main/extensions/penPlus/blocks/squareBlocks/setPenSquareAttribute.svg b/main/extensions/penPlus/blocks/squareBlocks/setPenSquareAttribute.svg new file mode 100644 index 0000000..02c14d2 --- /dev/null +++ b/main/extensions/penPlus/blocks/squareBlocks/setPenSquareAttribute.svg @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/main/extensions/penPlus/blocks/squareBlocks/stampSquare.svg b/main/extensions/penPlus/blocks/squareBlocks/stampSquare.svg new file mode 100644 index 0000000..e6d221a --- /dev/null +++ b/main/extensions/penPlus/blocks/squareBlocks/stampSquare.svg @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/main/extensions/penPlus/blocks/squareBlocks/stampTexSquare.svg b/main/extensions/penPlus/blocks/squareBlocks/stampTexSquare.svg new file mode 100644 index 0000000..ae0f33f --- /dev/null +++ b/main/extensions/penPlus/blocks/squareBlocks/stampTexSquare.svg @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/main/extensions/penPlus/blocks/squareBlocks/tintSquare.svg b/main/extensions/penPlus/blocks/squareBlocks/tintSquare.svg new file mode 100644 index 0000000..3b2351d --- /dev/null +++ b/main/extensions/penPlus/blocks/squareBlocks/tintSquare.svg @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/main/extensions/penPlus/main.html b/main/extensions/penPlus/main.html index b655843..3073673 100644 --- a/main/extensions/penPlus/main.html +++ b/main/extensions/penPlus/main.html @@ -17,7 +17,7 @@
+ Pen Property blocks look into the default pen's properties, or even detach certain functions of the pen. +
+Stamps a square using the current pen size and attributes with its own attributes.
+Stamps a square using the current pen size and attributes with its own attributes. With an image attached!
++Sets the attribute of a sprite's pen square! Attributes include +
+Gets the attribute of a sprite's pen square! Attributes include +
++Tints the square to be whatever color you put in there +
++Resets the current square's attributes +
+${this.innerHTML}
`; + + this.style.display = "block"; + this.style.padding = "8px"; + this.style.margin = "8px 0"; + this.style.borderRadius = "8px"; + + if (this.getAttribute("color")) { + this.style.background = `${this.getAttribute("color")}3e`; + this.style.border = `1px solid ${this.getAttribute("color")}9a`; + } + else { + this.style.background = "rgba(0, 149, 255, 0.245)"; + this.style.border = "1px solid rgba(0, 149, 255, 0.604)"; + } + } + } + + customElements.define("info-box", infoBox); + //Get the page path window.penPlusPath = window.location.origin + window.location.pathname;