I couldn't help but notice your use of periods in the code. I had no idea that was legal syntax. I can understand a single period being interpreted as a 0 in the for loop, but . . . "NEXT.END"?
Wait what? How does this work??
It does work (it draws the circle like a pie chart)
What does TO.STEP mean? Because it doesn't work without that
Please fix the formatting on this page.
Replying to:SimeonWait what? How does this work??
It does work (it draws the circle like a pie chart)
What does TO.STEP mean? Because it doesn't work without that
A single period is recognized as a "0" in smilebasic.
Example, ?A[.]
Now for the NEXT.END, I thought that maybe SB recognizes the "." token like it does spaces, and it seemed that way up until you tried it with any other command.
As it turns out, the NEXT instruction accepts an optional input after it, which it promptly ignores.
Simply put, NEXT X has no weight over NEXT SQR(-1), and likewise with this strange "." functionality, which it recognizes simply as "0"
NEXT.END is the same code as NEXT 0 END.
Replying to:MZ952I couldn't help but notice your use of periods in the code. I had no idea that was legal syntax. I can understand a single period being interpreted as a 0 in the for loop, but . . . "NEXT.END"?
Never mind, I figured it out lol.
Replying to:SimeonWait what? How does this work??
It does work (it draws the circle like a pie chart)
What does TO.STEP mean? Because it doesn't work without that
So something similar applies to "TO.STEP" too?
Replying to:SimeonWait what? How does this work??
It does work (it draws the circle like a pie chart)
What does TO.STEP mean? Because it doesn't work without that
Yes. TO.STEP is the same as TO 0 STEP.
Replying to:SimeonWait what? How does this work??
It does work (it draws the circle like a pie chart)
What does TO.STEP mean? Because it doesn't work without that
Which I'd like to note is a useful golfing trick... when used that way. Since the rest of this code ISN'T condensed, it's just meaningless cuteness/obfuscation.
The circles that this draws are pretty ugly and deformed.
It seems to work OK for me (even in its one-line format). Although it isn't perfect.
I didn't even realize the terrible formatting
And this is basically designed to just draw circles very quickly, not meant to be accurate
Sorry, I didn't realize the terrible formatting, I was on a 3DS and I didn't think it wouldn't automatically have line breaks when using the (code) blocks