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

#1 2009-11-20 14:47:58

Wizard13
Scratcher
Registered: 2009-01-24
Posts: 3

"Fill" command

Hi!
Could you please implement a fill command (perhaps in the Pen category) which uses the sprite's current position and fills with a selected colour until it reaches pixels with different colours? For example, I could use the pen to draw shapes and then fill them with a specific colour.

Offline

 

#2 2009-11-20 16:09:03

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: "Fill" command

While this would e very useful, I'm still not sure whether It would be possible  smile

Although, I don't see any reason why it shouldn't be..


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2009-11-21 11:30:10

Wizard13
Scratcher
Registered: 2009-01-24
Posts: 3

Re: "Fill" command

The reason I thought of this is because I'm teaching some kids Logo and I'd like to replace Logo with Scratch. So, I want them to use a turtle and draw a black 'n' white chessboard, but I can't find a way to draw the black squares.

Offline

 

#4 2009-11-21 12:31:13

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: "Fill" command

Another thing that might be useful that would be like this would be a "Fill" Block that fills an area between 4 Points, which would be useful in creating 3D filled Polygons.  big_smile

Or maybe a function like Flash's beginfill() and endfill().

Last edited by RHY3756547 (2009-11-21 12:40:08)

Offline

 

#5 2009-11-21 13:00:48

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: "Fill" command

06dknibbs wrote:

While this would e very useful, I'm still not sure whether It would be possible  smile

Although, I don't see any reason why it shouldn't be..

Scratch is made in Squeak. This includes the paint editor and everything inside of it. If there is a fill tool in the paint editor, a fill tool is also 100% possible to implement into a block.  smile


http://i.imgur.com/8LX1NrV.png

Offline

 

#6 2009-11-21 13:19:52

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: "Fill" command

illusionist wrote:

06dknibbs wrote:

While this would e very useful, I'm still not sure whether It would be possible  smile

Although, I don't see any reason why it shouldn't be..

Scratch is made in Squeak. This includes the paint editor and everything inside of it. If there is a fill tool in the paint editor, a fill tool is also 100% possible to implement into a block.  smile

Exactly! Squeak is quite advanced and can support everything that you use to create games in scratch, like gradient fills etc. I haven't seen any instances of Alpha PNGs, though but I'm sure even they're possible.  tongue

Last edited by RHY3756547 (2009-11-21 13:20:08)

Offline

 

#7 2009-11-21 13:20:56

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: "Fill" command

Could be especially useful in drawing programs!
I support.


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#8 2009-11-23 10:16:33

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: "Fill" command

bump

Offline

 

#9 2010-06-11 16:22:52

awsomemaster
Scratcher
Registered: 2008-04-10
Posts: 83

Re: "Fill" command

RHY3756547 wrote:

Another thing that might be useful that would be like this would be a "Fill" Block that fills an area between 4 Points, which would be useful in creating 3D filled Polygons.  big_smile

Or maybe a function like Flash's beginfill() and endfill().

ya thats what i was thinking! so then scratch could have texture! i wonder if somebody could do that in BYOB?


scar the REAL 3d fps we've all been waiting for

Offline

 

#10 2010-09-24 11:17:17

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: "Fill" command

here is what the block would look like. [fill color [ ] to outline color [ ] ]

Offline

 

#11 2010-09-24 19:39:10

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: "Fill" command

I can see a ton of possibilities for a fill tool. Textures, better paint projects, etc. I support!

And as to making a filled-in chessboard, you can set the pen size to something small and just scroll up and down across the region to be filled.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer