From Test-Scratch-Wiki

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

The Pen Up 积木 is a 画笔类积木 and a 条形积木. If a 角色 is currently using the 画笔 feature because of the 下笔 block, the block will stop it from continuing. If the pen feature is not being used, the block will have no effect.

用法示例

This block is only used for a small amount of circumstances, but it still can have much effect when used. Its most popular use is to raise a lowered pencil (or pen, paintbrush, etc.) from the screen in a drawing 专案.

Some common uses for the Pen Up block:

下筆
重複 (10) 次 
  x 改變 (5)
end
停筆
  • Drawing patterns on the screen
下筆
重複 (50) 次 
  x 設為 (隨機取數 (-240) 到 (240))
  y 設為 (隨機取數 (-180) 到 (180))
end
停筆
定位到 x: (0) y: (0)
筆跡顏色設為 [#CCCCCC]
筆跡寬度設為 (20)
下筆
x 改變 (150)
停筆
定位到 x: (5) y: (0)
筆跡顏色設為 [#5555FF]
筆跡寬度設為 (12)
下筆
x 改變 (140)
停筆


Note Note: All these examples include the 下笔 block; they often work together.

应用

There is no direct workaround for this block, since it is a primitive function of Scratch. However, you can set the pen color to the background color, so that the pen has no effect. It only works on uniformly colored backgrounds.

参见

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