Retrogamecoding(.org) > BrowserBasic

New release v0.5

<< < (3/4) > >>

SteveOW:
Thanks.
I can plot ellipse at an angle using Push/Translate/Rotate/fillEllipse, strokeEllispe/Pop.
But function Atan2 is not defined.

Guilect:

--- Quote ---Atan2 is not defined.
--- End quote ---
In the current build it is "Atn2"

I will either have to change the help file or the definition in the compiler.
Any preference?

Guilect:

--- Quote ---I can plot ellipse at an angle using Push/Translate/Rotate/fillEllipse, strokeEllispe/Pop.
--- End quote ---

Yah, that is how drawing of primitives is done in HTML5.
If you did not what to do that, there is always making a picture of an oval and then loading that as an image and use the image/sprite commands.

Glad to here you are making progress SteveOW.

SteveOW:

--- Quote from: Guilect on July 08, 2013, 01:21:42 AM ---"Atan2" or "Atn2"
Any preference?

--- End quote ---

I prefer "Atan2",
I can easilly revise my code to fit a later version of BB.
Just as matter of interest is there any technical reason why BB compiler couldnt handle both forms Atn2 and Atan2?
I know its not elegant, just asking. :)

SteveOW:

--- Quote from: Guilect on July 08, 2013, 01:28:07 AM ---
--- Quote ---I can plot ellipse at an angle using Push/Translate/Rotate/fillEllipse, strokeEllispe/Pop.
--- End quote ---

Yah, that is how drawing of primitives is done in HTML5.
If you did not what to do that, there is always making a picture of an oval and then loading that as an image and use the image/sprite commands.

Glad to here you are making progress SteveOW.

--- End quote ---
Yes havent had as much spare time as I would have liked.

I'm not very experienced with sprites and images so will hold off on that for a bit.
I'm trying to de-confuse myself about rotation directions and signs at moment, always a challenge for me. ::)
Usually I just end up doing trial and error until it works right.
Suggest that future version of manual could benefit from a few details on how to use the functions Atan2/Atn2 and Rotate.
I know that any decent programmer should be able to work out the rules but it is a bit of a chore.

BB v0.5 is looking VERY GOOD.   :)
I strongly recommend anyone else to give BB a try-out.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version