hyperized image attribute reporter primitive (monadic)

pull/95/head
jmoenig 2021-01-25 14:34:27 +01:00
rodzic 775029cae8
commit bff16aa49b
3 zmienionych plików z 13 dodań i 2 usunięć

Wyświetl plik

@ -2,9 +2,14 @@
## in development: ## in development:
* **Notable Changes:**
* hyperized image attribute reporter primitive (monadic)
* **Notable Fixes:** * **Notable Fixes:**
* fixed a glitch in the animation library's "sine in-out" easing function * fixed a glitch in the animation library's "sine in-out" easing function
### 2021-01-25
* threads: hyperized image attribute reporter primitive (monadic)
### 2021-01-21 ### 2021-01-21
* new dev version * new dev version
* animation library: fixed a glitch in the "sine in-out" easing function * animation library: fixed a glitch in the "sine in-out" easing function

Wyświetl plik

@ -9,7 +9,7 @@
<script src="src/symbols.js?version=2020-10-07"></script> <script src="src/symbols.js?version=2020-10-07"></script>
<script src="src/widgets.js?version=2021-01-05"></script> <script src="src/widgets.js?version=2021-01-05"></script>
<script src="src/blocks.js?version=2020-12-22"></script> <script src="src/blocks.js?version=2020-12-22"></script>
<script src="src/threads.js?version=2021-01-05"></script> <script src="src/threads.js?version=2021-01-25"></script>
<script src="src/objects.js?version=2021-01-05"></script> <script src="src/objects.js?version=2021-01-05"></script>
<script src="src/gui.js?version=2021-01-21"></script> <script src="src/gui.js?version=2021-01-21"></script>
<script src="src/paint.js?version=2020-05-17"></script> <script src="src/paint.js?version=2020-05-17"></script>

Wyświetl plik

@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, Map,
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, BLACK, isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, BLACK,
TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/ TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/
modules.threads = '2021-January-05'; modules.threads = '2021-January-25';
var ThreadManager; var ThreadManager;
var Process; var Process;
@ -5832,6 +5832,12 @@ Process.prototype.doSetInstrument = function (num) {
// Process image processing primitives // Process image processing primitives
Process.prototype.reportGetImageAttribute = function (choice, name) { Process.prototype.reportGetImageAttribute = function (choice, name) {
if (this.enableHyperOps) {
if (name instanceof List) {
return name.map(each => this.reportGetImageAttribute(choice, each));
}
}
var cst = this.costumeNamed(name) || new Costume(), var cst = this.costumeNamed(name) || new Costume(),
option = this.inputOption(choice); option = this.inputOption(choice);