From Test-Scratch-Wiki

下笔
下筆
类别 画笔类积木
形狀 条形积木

The Pen Down 积木 is a 画笔类积木 and a 条形积木. The block will make its 角色 continuously pen a trail wherever it moves (until the 停笔 block is used). The color, width, and shade of the trail can be changed with other independent blocks.

用法示例

This block is used most frequently in projects that require art to be drawn. When a sprite will continuously pen a trail (for example, a 专案 where the goal is to fill the whole screen), most projects will use this block. This block is also commonly used in 一角色一脚本类专案 projects.

Some common uses for the Pen Down block:

當收到訊息 [Draw string v]
下筆
重複 (10) 次 
  x 改變 (5)
end
停筆
  • Drawing patterns on the screen
下筆
重複 (50) 次 
  x 設為 (隨機取數 (240) 到 (-240))
  y 設為 (隨機取數 (480) 到 (-480))
end
停筆
定位到 x: (0) y: (0)
筆跡顏色設為 [#7d7d7d]
筆跡寬度設為 (20)
下筆
x 改變 (150)
停筆
定位到 x: (5) y: (0)
筆跡顏色設為 [#00d5fa]
筆跡寬度設為 (12)
下筆
x 改變 (140)
停筆


Note Note: All these examples include the Pen Up block; they often work together.

参见

Cookies help us deliver our services. By using our services, you agree to our use of cookies.