HTML Canvas
HTML Canvas (original)
Historical
This article or section is about something not included in the current version of PenguinMod. It may return in the future.
The original HTML Canvas extension was a PenguinMod extension that was removed, and later replaced with the current extension when it returned. It had the same name, description, and appeared the same after being added (i.e. with "html canvas"). After the extension was removed, the description and name was modified in livetests, but the name after being added wasn't.
Blocks
This extension originally had 10 blocks in total, with 9 stack blocks and only 1 reporter block. The original set of blocks can still be accessed through livetests under the name "OLD Canvas". Blocks marked with an asterisk are not in the new extension at the moment. Blocks marked with an ampersand are still included but were renamed.
[canvas v]::#0069c2 reporter
*set composite operation of [canvas v] to [source-over v]::#0069c2
*set width: (480) height: (360) of [canvas v]::#0069c2
set transparency of [canvas v] to (0)::#0069c2
*set fill color of [canvas v] to [#ffff00]::#0069c2
*set border color of [canvas v] to [#ffff00]::#0069c2
*clear canvas [canvas v]::#0069c2
clear area at x: (0) y: (0) with width: (480) height: (360) on [canvas v]::#0069c2
draw rectangle at x: (0) y: (0) with width: (480) height: (360) on [canvas v]::#0069c2
draw image [https://studio.penguinmod.com/favicon.ico] at x: (0) y: (0) on [canvas v]::#0069c2
&