Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / filling blank areas in 2D mode

Author
Message
NachoMan
21
Years of Service
User Offline
Joined: 14th Apr 2003
Location: United Kingdom
Posted: 19th Apr 2003 15:49
I have created a random object using a load of lines. The object is sealed by the lines, but inside and outside the shape the background is black, is there a "fill" command which will set the colour inside the shape to a new colour, or does anyone know an effective way to do this?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Apr 2003 00:30
Neither DB or DBPro has a fill command, but ...

... here's one I made earlier



Just call the code with x/y coordinates to start filling, and an RGB() colour to fill with.
NachoMan
21
Years of Service
User Offline
Joined: 14th Apr 2003
Location: United Kingdom
Posted: 20th Apr 2003 15:18
i dont have DBpro . but thanks anyway.

Login to post a reply

Server time is: 2024-11-24 10:48:48
Your offset time is: 2024-11-24 10:48:48