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 / Subdivided plain problem

Author
Message
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Apr 2011 21:35 Edited at: 16th Apr 2011 22:19
Why isn't this working? Can someone point me in the right direction?



The plain should display the image generated (a yellow circle on a blue background), but all I get are some very strange color gradients...

TheComet

Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 16th Apr 2011 22:48
You use some kind of plugin for drawing?

Is there only 255 available memblocks in DBP, or why do you check for availability up till that?

-In.Dev.X: A unique heavy story based shoot'em ~6%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Apr 2011 23:01 Edited at: 16th Apr 2011 23:05
The plugin I'm using is the Advanced 2D plugin. And yes, only 255 memblocks in DBP The function is self-adjustable, it will search for unavailable memblocks so I don't have to hard-code it.

If you don't have the plugin, you can replace them like so:

a2fillbox x1,y1,x2,y2,color --> ink color,0 : box x1,y1,x2,y2
a2circle x1,y1,r,color --> ink color,0 : circle x1,y1,r


TheComet

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Apr 2011 23:02
This line looks wrong to me at first glance:

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Apr 2011 23:44
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th Apr 2011 00:22
Oh wow, that must have been the dumbest mistake of them all... Thanks a lot guys!

TheComet

Login to post a reply

Server time is: 2026-07-18 06:41:20
Your offset time is: 2026-07-18 06:41:20