diff --git a/main/extensions/penPlus/blocks/imageBlocks/BlankImage.svg b/main/extensions/penPlus/blocks/imageBlocks/BlankImage.svg index 8893333..0f8debe 100644 --- a/main/extensions/penPlus/blocks/imageBlocks/BlankImage.svg +++ b/main/extensions/penPlus/blocks/imageBlocks/BlankImage.svg @@ -1,4 +1,4 @@ -

Image Blocks

+If you are looking to render to a texture. Check out Render Textures. +

+ These blocks are blocks for simple image manipulation and importing! Some of these may seem trivial but have use cases that make them very useful. +

+Remember that your current image prefix effects the names of the images!. + +

+ "add blank image" +

+ +

Adds a blank image to the Pen+ costume library that can be used at any time. This image is of the specified color and size!

+
+ + + Some websites will block these image requests. Github and Google Icons are always safe bets.
+ You could also use the dog api! +
+

+ "add image from url" +

+ +

This gets the image from the url and adds it to the Pen+ costume library. It will have the name you give to it.

+
+ +

+ "remove image" +

+ +

+ Permantly deletes the desired image from the Pen+ costume library! Useful for images that are only temporary.
+ Example : An image used to display a user's profile picture on a multiplayer game.

+
+ +

+ "does image exist" +

+ +

A simple true or false value for if the image exists in the Pen+ costume library.

+
+ +

+ "get data uri for costume" +

+ +

Returns the URI (or raw bit data in base 64) for a costume in scratch's costume library.

+
+ +

+ "get Pen+ costume size" +

+ +

Returns the desired image's width or height in pixels.

+
+ + + Setting a pixel's color is done cpu side! So it will not be the fastest! + +

+ "set pixel color" +

+ +

+ Sets the pixel at the specified coordinate on the Pen+ costume to the specified color.
+ The pixel coordinates start at (1,1) or the top left of the image and go down to the image's width and height, which would be the bottom right. +

+
+ +

+ "get pixel color" +

+ +

+ This block gets the color of the pixel at the desired coordinates on a Pen+ costume library image. The coordinate system is the same as the Set Pixel Color block. +

+
+ +

+ "get data uri for Pen+ costume" +

+ +

Returns the URI (or raw bit data in base 64) for a costume in Pen+'s costume library.

+
\ No newline at end of file diff --git a/main/extensions/penPlus/main.html b/main/extensions/penPlus/main.html index f429527..6ee4bf3 100644 --- a/main/extensions/penPlus/main.html +++ b/main/extensions/penPlus/main.html @@ -32,7 +32,7 @@

  • Square Blocks
  • Main Triangle Blocks
  • Color Blocks
  • -
  • Image Blocks
  • +
  • Image Blocks
  • Shaders Blocks
  • Cubemap Blocks
  • List Blocks
  • diff --git a/main/extensions/penPlus/triangleBlocks.html b/main/extensions/penPlus/triangleBlocks.html index c03340f..72b991a 100644 --- a/main/extensions/penPlus/triangleBlocks.html +++ b/main/extensions/penPlus/triangleBlocks.html @@ -1,7 +1,6 @@ Triangle Blocks

    Triangle Blocks

    -In version 7's beta these blocks have some backend shader changes. If you are looking for list based rendering check list blocks

    This is where 3d Gurus get excited. The triangle blocks contain many helpful utilities for drawing triangles.