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.

DarkBASIC Professional Discussion / DarkBasic graphic commands

Author
Message
GAMELMPR
12
Years of Service
User Offline
Joined: 21st Feb 2012
Location: Helsinki
Posted: 9th Nov 2015 19:16
Is there a fill command on DarkBasic like in QuickBasic where you can fill areas with certain colour?

CLS
INK RGB(0,200,0),0
FOR pk = 601 to 768
LINE 0,pk,1024,pk
NEXT
INK RGB(100,100,100),0
FOR at = 400 to 600
LINE 500,at,700,at
NEXT
WAIT KEY

Like filling this bottom area on green and Sky area on blue.
GAMELMPR
12
Years of Service
User Offline
Joined: 21st Feb 2012
Location: Helsinki
Posted: 9th Nov 2015 19:23 Edited at: 9th Nov 2015 19:24
One question: Can I make 3D models to Dark Basic Pro other programs then Cartography Shop? It is good tool but bit limited. Can I use Blender or other free tool?
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 9th Nov 2015 19:27
There is a box command for fill, and yes you can use many modeling programs including Blender
wattywatts
14
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 9th Nov 2015 19:27
Quote: " Can I use Blender or other free tool?"

You can use whatever you want as long as you have a way to convert your models to .x, 3ds or dbo.
GAMELMPR
12
Years of Service
User Offline
Joined: 21st Feb 2012
Location: Helsinki
Posted: 9th Nov 2015 19:31
Box command only draws filled boxes. Is there a command filling screens like in paint program that paint bucket which fills whole area?
GAMELMPR
12
Years of Service
User Offline
Joined: 21st Feb 2012
Location: Helsinki
Posted: 9th Nov 2015 19:36
Check and run my code snippet and you can see my problem there

My screen resolution is:
SET DISPLAY MODE 1024,768,32
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 10th Nov 2015 06:53
Does this solve your problem.

Login to post a reply

Server time is: 2024-04-25 16:04:27
Your offset time is: 2024-04-25 16:04:27