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.
b = b + ...
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



Users browsing this thread: 1 Guest(s)