>yeah, IMHO, it would have been confusing that the a list of 3 items
>would do something different depending on the mode� Although, I
>realize that it’s exactly what the addpoints message does ;-) So if
>you send addpoints [x] [y] [curve], it should also work.
I thought I’d tried that with something like:
50 0.5 -0.5
…and I got an error saying point 50 didn’t exist (since it’s assuming [point] [x] [y] )
> Quote: Emmanuel Jourdan wrote on Thu, 03 July 2008 17:29
>> or make it create a new point if you’re in curve mode. Any opinion?
> Would checking whether the first arg is an int or float be too
> subtle? i.e., if it’s an int it’s an index of a point, if it’s a
> float it’s a y value for a new point?
It’s not an easy task in js, because everything have the type
number ;-) I could modulo it, but then if you send 0 0.5 -0.5, it will
cause weird result.