Calculator Community > Grammer

Grammer Examples

<< < (2/2)

Xeda112358:
Thanks :] My goal is to make it easier for folks to make use of great graphics :) Although, I still think that Grammer has a higher learning curve than BASIC :/

DJ Omnimaga:

--- Quote from: Snake X on February 22, 2012, 04:06:12 pm ---danggit guys lol you make me want to get back into calc programming XD

But that's pretty awesome though that you can do that with such little coding

--- End quote ---
It would be nice :D. If you do so, don't hesitate to ask questions in the help section if you can find anything on the forums or tutorials. :)

Spyro543:

--- Quote from: Xeda112358 on February 05, 2012, 09:13:36 pm ---Okay, so at request, I started this topic for example codes :) I will try to post a link in this post when I add new codes. The first one is a bouncing circle:

--- Code: ---.0:Return
1→X→Y→B→C
Repeat getKey(15
Circle(Y,X,12,1   ;Draws a circle of radius 12 using pxl-On
DispGraph
ClrDraw
X+B→X
If >83          ;Changed by Spyro
-B→B
Y+C→Y
If >51          ;Changed by Spyro
-C→C
End
Stop

--- End code ---

--- End quote ---
Those two small additions should make the circle bounce on its edge.

Xeda112358:
Nice :D Another trick is you can store the radius to R and use 96-R and 64-R. That way, you can add stuff to change the radius of the circle.

Navigation

[0] Message Index

[*] Previous page

Go to full version