<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[The Pen Extension (Part 1)]]></title><description><![CDATA[<p dir="auto"> </p>
<h2><a class="anchor-offset" name="prerequisite"></a>Prerequisite</h2>
<ul>
<li><a href="/topic/103/working-with-colors">Working with Colors</a></li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="introduction"></a>Introduction</h2>
<p dir="auto">In the CreatiCode playground, you can draw on the stage directly, using the <strong>Pen</strong> extension. You first need to add that extension as shown below:</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6708ed6a-82e1-4cd3-8dd1-1fbafabfa33c.gif" width="1000" style="border-radius:5px;border:1px solid #29622d" /></p>
<h2><a class="anchor-offset" name="how-we-draw-with-a-pen"></a>How we draw with a pen</h2>
<p dir="auto">When we try to draw a line on paper, we take 3 steps:</p>
<ol>
<li><strong>Put the pen down</strong>, so it touches the paper</li>
<li><strong>Move the pen</strong> while keeping the pen down</li>
<li><strong>Raise the pen up</strong> when we are done with the line</li>
</ol>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/1d6dce58-18f1-4c68-b7a7-b4b3f4965204.gif" width="400" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /></p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="pen-down-and-pen-up-blocks"></a>Pen Down and Pen Up Blocks</h2>
<p dir="auto">To draw on the stage using our sprite, you need to pretend it is a pen. Therefore, you need to use these 2 blocks to put down the pen and hold it up.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2b4580e1-7cd6-47f0-ae4a-4d836e9bc544.png" width="350" /></p>
<p dir="auto">For example, to draw a line, we can put down the pen, move the sprite down a few steps, and then raise the pen up:</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d2e90f61-f300-4617-819f-ec60d2444271.gif" width="677" style="border-radius:5px;border:1px solid #29622d" /></p>
<p dir="auto">Note that the pen draws at the center point of the sprite, so <strong>the sprite may cover part of the drawing</strong>. You can fix that by hiding the sprite. In fact, even if you keep the sprite hidden all the time, it can still work as a pen.</p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="erase-all-drawings"></a>Erase All Drawings</h2>
<p dir="auto">To erase all the drawings on the stage, you can use the “erase all” block:</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c112a3a9-48d8-4d0d-944e-e4fde4f3c94a.gif" width="477" style="border-radius:5px;border:1px solid #29622d" /></p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="pen-size"></a>Pen Size</h2>
<p dir="auto">You can make the pen much thicker by changing its size. The tip of the pen is a circle, and the pen size is the diameter of this circle.</p>
<p dir="auto">First, you can set the pen size directly using the “set pen size” block:</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/20bb86fb-194d-4d3c-8b66-9ae86da53a77.gif" width="800" style="border-radius:5px;border:1px solid #29622d" /></p>
<p dir="auto">On the other hand, you can change the pen size relative to its current size, using the “change pen size” block. For example, we can increase the pen size by 10 each time we draw:</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/60183083-61ec-420b-a583-fe9e7927aaa3.gif" width="800" style="border-radius:5px;border:1px solid #29622d" /></p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="pen-color"></a>Pen Color</h2>
<p dir="auto">There are 3 ways to change the color of the pen.</p>
<ul>
<li>First, you can use the “set pen color to” block, which provides a color picker. Note that transparency works as well. In addition, if you do not move the sprite, the “pen down” block would still draw a big dot centered at the sprite.</li>
</ul>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/5ff08f37-c3f9-4ba3-bc18-011d1e7c9bb9.gif" width="800" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /></p>
<ul>
<li>Secondly, you can use the “set pen &lt;color/brightness/saturation/transparency&gt; to” block, which allows you to set the value for these 4 properties directly.</li>
</ul>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b5b57fbf-a02d-45dd-b436-48f0a7383281.gif" width="600" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /></p>
<ul>
<li>Lastly, you can use the “change pen &lt;color/brightness/saturation/transparency&gt; by” block, which allows you to change the value for these 4 properties relative to its current value.</li>
</ul>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c336038e-ccb8-4f73-a303-cb549064643d.gif" width="600" style="margin-left:40px;border-radius:5px;border:1px solid #29622d" /></p>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="stamping"></a>Stamping</h2>
<p dir="auto">Besides drawing with a pen, you can also use the sprite’s costume as a rubber stamp. When you run the “stamp” block, the sprite will draw itself on the stage.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fd5a7173-d613-47da-9748-7d7e583c09b9.gif" width="600" style="border-radius:5px;border:1px solid #29622d" /></p>
]]></description><link>https://forum.creaticode.com/topic/175/the-pen-extension-part-1</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 03:54:15 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/175.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jun 2022 03:58:46 GMT</pubDate><ttl>60</ttl></channel></rss>