04-29-2025, 02:59 AM
CLS ,color
flood fill ?
|
04-29-2025, 02:59 AM
CLS ,color
05-01-2025, 05:59 PM
05-01-2025, 06:35 PM
@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.
05-01-2025, 07:20 PM
(05-01-2025, 05:59 PM)CMR Wrote:(04-29-2025, 02:59 AM)SMcNeill Wrote: CLS ,color Yes. It's the CLS command. Code: (Select All) myImage = _NEWIMAGE(800, 600, 32) That blank image is now filled with full red. There's no simpler tool and no easier way to do this than to just use CLS. (05-01-2025, 07:20 PM)SMcNeill Wrote:(05-01-2025, 05:59 PM)CMR Wrote:(04-29-2025, 02:59 AM)SMcNeill Wrote: CLS ,color Thanks, I didn't realize CLS had been upgraded. I was still thinking it was the same from QB. ![]() |
« Next Oldest | Next Newest »
|