This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-08-14 01:18:28

DanielAjoy
Scratcher
Registered: 2009-08-10
Posts: 7

How to fill an area with a color using a program?

How to fill an area with a color using a program?

In Logo there is command called "fill"

Fills in a region of the graphics window containing the turtle and bounded by lines that have been drawn earlier.

Is there something like that in Scratch? I can't find it.

Offline

 

#2 2009-08-14 02:38:07

numbers1234567890
Scratcher
Registered: 2009-08-14
Posts: 2

Re: How to fill an area with a color using a program?

Dude it's under the sprite edit window between the square maker and eraser.
It looks like a paintbucket.

Offline

 

#3 2009-08-14 04:01:24

DanielAjoy
Scratcher
Registered: 2009-08-10
Posts: 7

Re: How to fill an area with a color using a program?

numbers1234567890 wrote:

Dude it's under the sprite edit window between the square maker and eraser.
It looks like a paintbucket.

No, I need a tile, like:

pendown
penup
clear
stamp

etc.

I need one that works like the paintbucket.

Offline

 

#4 2009-08-14 12:50:00

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How to fill an area with a color using a program?

I don't think there's an actual block that does it, but you might be able to find a way to do it. I recommend looking through some of the drawing projects on scratch, maybe you'll find something there.


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#5 2009-08-14 13:30:05

legolover
Scratcher
Registered: 2008-03-11
Posts: 23

Re: How to fill an area with a color using a program?

Have a small sprite that stamps itself every time it moves. Then make it move in many directions until it touches the color of the border, and at that point it should stop. If you make it then go back to the center, turn maybe 1 or 2 degrees, then repeat the process very quickly, then you will have a fairly realistic paintbucket tool.


Escape the Room 1! http://scratch.mit.edu/projects/legolover/291256

Offline

 

Board footer