Added s.rseed
This commit is contained in:
@@ -168,7 +168,6 @@ var $builtinmodule = function (name) {
|
||||
};
|
||||
}
|
||||
|
||||
console.log("LiteCanvas Screen Module Loaded (v1.2)");
|
||||
Object.defineProperty(mod, 'T', { get: function () { return toPy(lc_instance ? lc_instance.T : (window.T || 0)); } });
|
||||
Object.defineProperty(mod, 'W', { get: function () { return toPy(lc_instance ? lc_instance.W : (window.W || 0)); } });
|
||||
Object.defineProperty(mod, 'H', { get: function () { return toPy(lc_instance ? lc_instance.H : (window.H || 0)); } });
|
||||
@@ -243,6 +242,7 @@ var $builtinmodule = function (name) {
|
||||
mod.iskeypressed = new Sk.builtin.func((k) => toPy(iskeypressed(k ? toJS(k) : undefined)));
|
||||
mod.rand = new Sk.builtin.func((mn, mx) => toPy(rand(mn ? toJS(mn) : 0, mx ? toJS(mx) : 1)));
|
||||
mod.randi = new Sk.builtin.func((mn, mx) => toPy(randi(mn ? toJS(mn) : 0, mx ? toJS(mx) : 1)));
|
||||
mod.rseed = new Sk.builtin.func((s) => { seed(toJS(s)); return Sk.builtin.none.none$; });
|
||||
mod.sin = new Sk.builtin.func((a) => toPy(Math.sin(toJS(a))));
|
||||
mod.cos = new Sk.builtin.func((a) => toPy(Math.cos(toJS(a))));
|
||||
mod.abs = new Sk.builtin.func((n) => toPy(Math.abs(toJS(n))));
|
||||
|
||||
Reference in New Issue
Block a user