4.8 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
4.8 version
"In Cell" game example will be corrected.
Two new notes durations will be added: 1/64 and 1/128.
Two new notes durations will be added: 1/64 and 1/128.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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
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
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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].
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].
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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].
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].
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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.
GET SCREEN SIZE w,h
gets width and height of the screen for current device orientation to variables [w] and [h], in points.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
New interface command will be added:
FIELD n$ DESELECT
deactivates text input field which name is [n$].
FIELD n$ DESELECT
deactivates text input field which name is [n$].
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.8 version
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.
ATAN2 (y, x)
returns arctangent of [y]/[x], from -π to +π. If arguments are real then command OPTION ANGLE has its effect in this function.