4.8 version

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

4.8 version

Post by Mr. Kibernetik »

"In Cell" game example will be corrected.

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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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].

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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].

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post by Mr. Kibernetik »

New interface command will be added:

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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 4.8 version

Post 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.

Post Reply