Drawing with the Mouse

Материал из Поле цифровой дидактики

This tutorial explains how to use the pen blocks to draw with the mouse through a sprite. The following method, using a sprite that follows the mouse, creates the effect that the mouse is making the drawing. Adding different colors can create different effects.

Method 1

Here is the first script that allows one to draw:

whenclickedpenuperaseallforevergotomouse-pointerifmousedown?thenpendownelsepenupendend

Шаблон:Tip

Method 2

Here is the second method that allows one to draw:

whenclickederaseallassumingthegreenflagistheclearbuttonforevergotomouse-pointerwhenthisspriteclickedstamp

Шаблон:Note

See Also

de:Mit dem Mauszeiger malen id:Menggambar dengan Mouse ja:マウスで描く