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

#1 2010-09-14 15:13:27

Scr1ptr
New Scratcher
Registered: 2010-09-14
Posts: 12

Convex Polygon Filler!

http://scratch.mit.edu/static/projects/Scr1ptr/1298507_med.png
Click here to see the project!

*Run this Offline in the "Turbo Speed" Speed Step mode for fast drawing!*

Hey everyone! This is my first scratch program! Here I attempted Filling a polygonal shape with pixels using inequalities and the equation of a straight line!

This polygon filler allows you to plot points by holding Z and clicking somewhere, and lets you draw by pressing the Space Bar.

Unfortunately this Filler only supports convex polygons, but you can make concave polygons by combining multiple concave polygons (as shown in the project thumbnail!)

Please tell me what you think!  smile

Offline

 

#2 2010-09-14 18:32:24

Scr1ptr
New Scratcher
Registered: 2010-09-14
Posts: 12

Re: Convex Polygon Filler!

The program takes a while. Also note that only CONVEX shapes work. Concave shapes will either draw incorrectly or not at all.

Offline

 

#3 2010-09-14 18:41:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Convex Polygon Filler!

Wow - that's excellent! Keep up the great work!

Offline

 

#4 2010-09-14 19:55:23

Scr1ptr
New Scratcher
Registered: 2010-09-14
Posts: 12

Re: Convex Polygon Filler!

Thanks!  smile

Offline

 

#5 2010-09-15 11:07:14

Scr1ptr
New Scratcher
Registered: 2010-09-14
Posts: 12

Re: Convex Polygon Filler!

Bumps

Offline

 

Board footer