Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flood fill ?
#23
@CMR

Specify it:
If you want to color a bounded area (for example, the inside of a circle), then if the color of the circle is the same around the perimeter, there is a PAINT statement for that. 
If the color around the perimeter is different, use my Paint2 function. 
If you want more colors inside the circle instead of one color, create a virtual texture and then map it to the given location with the _MapTriangle (2D) statement. However, when texturing, you need to think about how the given area should be textured. Should it be textured 1 to 1? So - will the filled area contain the texture in the same proportion? Or should the texture be stretched? Or reduced? Or should it be placed only in the center (if the bounded area is large and the texture is small) and the rest should be left unchanged? _MapTriangle will allow you to do this. It has 2 versions, 2D and 3D, for drawing on the screen use the 2D version. For 3D games use the 3D version or OpenGl, but in that case you have to use the OpenGl coordinate system to determine the texture position (even in the case of _MapTriangle in the 3D version).
For easy texturing of rectangular areas use _PutImage.


Reply


Messages In This Thread
flood fill ? - by madscijr - 04-23-2025, 07:38 PM
RE: flood fill ? - by bplus - 04-23-2025, 11:06 PM
RE: flood fill ? - by madscijr - 04-24-2025, 12:08 AM
RE: flood fill ? - by bplus - 04-24-2025, 12:20 AM
RE: flood fill ? - by SMcNeill - 04-24-2025, 12:44 AM
RE: flood fill ? - by SMcNeill - 04-24-2025, 12:54 AM
RE: flood fill ? - by madscijr - 04-24-2025, 03:23 AM
RE: flood fill ? - by Petr - 04-24-2025, 01:28 PM
RE: flood fill ? - by madscijr - 04-24-2025, 11:50 PM
RE: flood fill ? - by SMcNeill - 04-25-2025, 12:58 AM
RE: flood fill ? - by SMcNeill - 04-25-2025, 01:52 AM
RE: flood fill ? - by madscijr - 04-25-2025, 05:51 AM
RE: flood fill ? - by madscijr - 04-25-2025, 02:27 AM
RE: flood fill ? - by SMcNeill - 04-25-2025, 11:36 AM
RE: flood fill ? - by madscijr - 04-25-2025, 01:11 PM
RE: flood fill ? - by madscijr - 04-25-2025, 06:49 PM
RE: flood fill ? - by madscijr - 04-25-2025, 07:36 PM
RE: flood fill ? - by TempodiBasic - 04-27-2025, 07:15 PM
RE: flood fill ? - by madscijr - 04-27-2025, 08:36 PM
RE: flood fill ? - by CMR - 04-29-2025, 02:56 AM
RE: flood fill ? - by SMcNeill - 04-29-2025, 02:59 AM
RE: flood fill ? - by CMR - 05-01-2025, 05:59 PM
RE: flood fill ? - by SMcNeill - 05-01-2025, 07:20 PM
RE: flood fill ? - by CMR - 05-03-2025, 02:28 AM
RE: flood fill ? - by Petr - 05-01-2025, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Brick Pattern Fill Question NakedApe 3 919 12-01-2023, 09:37 PM
Last Post: NakedApe

Forum Jump:


Users browsing this thread: 1 Guest(s)