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 AppGameKit Corner / Is there a command which fills a certain area with a certain color ?

Author
Message
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 13th Mar 2017 05:05
// @forumengine: caps is turned off...

Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 13th Mar 2017 05:08
e.g. if i created a box like

DrawLine (100,100,200,100,255,255,0)
DrawLine (100,100,75,75,255,255,0)
DrawLine (200,100,175,75,255,255,0)
DrawLine (75,75,175,75,255,255,0)

(how) can i fill it with color ?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Mar 2017 08:01
There is no flood fill command, but if you search flood fill on these forums you should find some discussions about it.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 13th Mar 2017 08:08
ok, thanks
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Mar 2017 14:08
There is a filled box command, drawBox()

You could also use a sprite.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Mar 2017 15:26
I checked the dimensions, it's not a rectangle
It looks like a rectangle, but with one side at an angle.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-04-25 09:32:56
Your offset time is: 2024-04-25 09:32:56