Page 1 of 5

4.8 version

Posted: Fri Jan 16, 2015 2:05 pm
by Mr. Kibernetik
"In Cell" game example will be corrected.

Two new notes durations will be added: 1/64 and 1/128.

Re: 4.8 version

Posted: Fri Jan 16, 2015 6:10 pm
by Mr. Kibernetik
Function MID$() will be expanded:

MID$ (a$, x, y, b$)
returns string [a$], in which the part, starting at index [x] and with length [y], is replaced with string [b$]. Command OPTION BASE has its effect in this function.

Re: 4.8 version

Posted: Sun Jan 18, 2015 8:26 pm
by Mr. Kibernetik
New function will be added:

LAUNCHER$ ()
returns string indicating how the program was launched: "appstore" if as a stand-alone application; "basic" if from smart BASIC application; "desktop" if by desktop icon.

Re: 4.8 version

Posted: Thu Jan 29, 2015 4:58 pm
by Mr. Kibernetik
New command will be added:

SLOWDOWN
makes CPU idle for a short time period, thus reducing power consumption. This command can be used in waiting cycles, for example when waiting for button press, and also in looping places where execution speed is not as important as low power consumption. For example, this program uses CPU at 100% although performs simple looping:
1 GOTO 1
and this program leaves CPU almost idle although looping much slower because of short CPU pause in SLOWDOWN command:
1 SLOWDOWN
GOTO 1

Re: 4.8 version

Posted: Mon Feb 02, 2015 2:49 pm
by Mr. Kibernetik
Command FIELD AT functionality will be expanded with ML and RO parameters:

FIELD n$ TEXT a$ AT x,y SIZE w,h ML RO
creates text input field with name [n$] and text [a$] at point [x,y] with width [w] and height [h]. Parameter ML (multi-line) is optional, if it is used then text input field will be multi-line. Parameter RO (read-only) is optional, if it is used then text field is read-only. Parameter TEXT is optional, if it is not set then text input field is created empty. Parameter SIZE is optional, if it is not set then text input field is autosized.

Re: 4.8 version

Posted: Tue Feb 03, 2015 2:25 pm
by Mr. Kibernetik
New graphics commands will be added:

FILL QUAD x1,y1, x2,y2, x3,y3, x4,y4
fills quadrangle with vertices at points [x1,y1], [x2,y2], [x3,y3] and [x4,y4].

FILL TRI x1,y1, x2,y2, x3,y3
fills triangle with vertices at points [x1,y1], [x2,y2] and [x3,y3].

Re: 4.8 version

Posted: Wed Feb 04, 2015 4:03 pm
by Mr. Kibernetik
New graphics commands will be added:

DRAW QUAD x1,y1, x2,y2, x3,y3, x4,y4
draws quadrangle with vertices at points [x1,y1], [x2,y2], [x3,y3] and [x4,y4].

DRAW TRI x1,y1, x2,y2, x3,y3
draws triangle with vertices at points [x1,y1], [x2,y2] and [x3,y3].

Re: 4.8 version

Posted: Thu Feb 05, 2015 4:04 pm
by Mr. Kibernetik
New graphics command will be added:

GET SCREEN SIZE w,h
gets width and height of the screen for current device orientation to variables [w] and [h], in points.

Re: 4.8 version

Posted: Fri Feb 06, 2015 6:42 pm
by Mr. Kibernetik
New interface command will be added:

FIELD n$ DESELECT
deactivates text input field which name is [n$].

Re: 4.8 version

Posted: Sat Feb 14, 2015 6:54 am
by Mr. Kibernetik
New math function will be added:

ATAN2 (y, x)
returns arctangent of [y]/[x], from -π to +π. If arguments are real then command OPTION ANGLE has its effect in this function.