Book a Demo

Author Topic: ArcTo in shape script (and other quirks)  (Read 7045 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
ArcTo in shape script (and other quirks)
« on: January 14, 2014, 11:47:42 pm »
Can someone confirm that the following shape produces non-sense:

Code: [Select]
shape main {
      MoveTo(50,50);
      ArcTo(0,0,100,100,100,50,0,0);
}

Even worse:
Code: [Select]
shape main {
      MoveTo(50,50);
      ArcTo(0,0,100,100,100,50,100,0);
}

q.
« Last Edit: January 15, 2014, 07:30:49 am by qwerty »

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: ArcTo in shape script
« Reply #1 on: January 15, 2014, 12:02:53 am »
Hi Thomas

All depends on what you mean by nonsense - they produce incomplete ellipse like shapes.  I could post picture if only I knew how on this forum.

BR
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ArcTo in shape script
« Reply #2 on: January 15, 2014, 01:50:28 am »
The 2nd looks like this:

(Just use the img tag above and insert the public dropbox link)

This does not look like what is described in the help (partial arc).

q.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: ArcTo in shape script
« Reply #3 on: January 15, 2014, 01:56:50 am »
Mine look similar but not the same - so even more interesting.  
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ArcTo in shape script
« Reply #4 on: January 15, 2014, 02:49:19 am »
Obviously it's wrong then. Thanks for the feedback :-)

Sparxians: you may open a ticket if you feel that this needs correction. I will definitely NOT send a bug report (as you may know I'm sick of that).

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ArcTo in shape script
« Reply #5 on: January 15, 2014, 07:28:48 am »
Here's another one:

vs.

SetPenWidth seems to be "pre-evaluated" in the script.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ArcTo in shape script (and other quirks)
« Reply #6 on: January 15, 2014, 07:48:28 am »
And one or two more:

SetDefaultColors will draw everything invisible.


SetFillColor does not do anything. Instead all elements are painted in the user defined color.

Well, I'm just at simple examples. What surprise will there be hidden in more complex things?

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ArcTo in shape script (and other quirks)
« Reply #7 on: January 15, 2014, 09:11:28 am »
PrintIfDefined doesn't print anything at all. Neither truepart nor falsepart. Further the help says falsepart is optional. The compiler however claims that 3 parameters are needed. Anyhow: why does that method exist if there are control structures??

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: ArcTo in shape script (and other quirks)
« Reply #8 on: January 17, 2014, 02:49:28 pm »
I just noticed we have a fix pending for arcto in the preview window. That could be the cause of that issue.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ArcTo in shape script (and other quirks)
« Reply #9 on: January 17, 2014, 10:33:12 pm »
Thanks or the info. Maybe you could have a look at the other ones too.

q.