Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBJS Color Problem (Solved!)
#3
(09-07-2023, 03:51 PM)dbox Wrote: Hey @blus, I think I see the problem...

The G2D.FillEllipse method takes 6 parameters:

G2D.FillEllipse x&, y&, radiusX&, radiusY& [, rotation& ][, clr~&]

The last two parameters are optional.  But if you want to specify color you should just use 0 for rotation or leave that parameter blank.

Code: (Select All)
G2D.Ellipse cx, cy, lastr, 29 / 35 * pr, 0, &HFF000000
OR

Code: (Select All)
G2D.Ellipse cx, cy, lastr, 29 / 35 * pr, , &HFF000000

OK thanks, but it is odd it draws the ellipse once but changes that color to Color value updated in Color statement. Could be an asset as well as a glitch.

I will try ellipse with black as 6th argument but already changed drawing with Color value ink.

Never did figure out why my own ellipse code didn't draw correctly, I tested the sub independent of all the other code and it worked fine in QBJS.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
QBJS Color Problem (Solved!) - by bplus - 09-07-2023, 02:44 PM
RE: QBJS Color Problem - by dbox - 09-07-2023, 03:51 PM
RE: QBJS Color Problem - by bplus - 09-07-2023, 04:01 PM
RE: QBJS Color Problem - by dbox - 09-07-2023, 04:52 PM
RE: QBJS Color Problem - by bplus - 09-07-2023, 06:50 PM
RE: QBJS Color Problem - by dbox - 09-07-2023, 07:15 PM
RE: QBJS Color Problem - by bplus - 09-07-2023, 08:12 PM
RE: QBJS Color Problem - by mnrvovrfc - 09-07-2023, 09:01 PM
RE: QBJS Color Problem - by dbox - 09-07-2023, 09:25 PM
RE: QBJS Color Problem (Solved!) - by bplus - 09-07-2023, 10:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CBASIC Conversion Problem eoredson 3 439 10-29-2025, 02:23 PM
Last Post: Jack
  Color-Changing Xmas Tree CharlieJV 0 498 02-10-2024, 07:12 PM
Last Post: CharlieJV
  BAM: Setup for a VIC-II (ish) color palette CharlieJV 1 603 08-26-2023, 09:24 AM
Last Post: johnno56

Forum Jump:


Users browsing this thread: 1 Guest(s)