Compare commits

..

No commits in common. "f980f7e380e738ee80c874577bc39d209790d15d" and "e7a2bbb60d1b85c4a03cc0012d42d29e561c8530" have entirely different histories.

5 changed files with 11 additions and 11 deletions

View File

@ -68,7 +68,7 @@ export function p5 (commands) {
const new_state = command_to_state(prev_state, this_command)
all_states[turtle_id].push(new_state)
}
console.log(all_states)
const [r, g, b, _] = resolve_color(background_color)
if ((r + g + b)/3 > 128) set_turtle_color([0, 0, 0, 150])
const p5_calls = [...p5_call_root()]

4
pkg/rudus.d.ts vendored
View File

@ -14,8 +14,8 @@ export interface InitOutput {
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_export_6: WebAssembly.Table;
readonly closure343_externref_shim: (a: number, b: number, c: any) => void;
readonly closure365_externref_shim: (a: number, b: number, c: any, d: any) => void;
readonly closure355_externref_shim: (a: number, b: number, c: any) => void;
readonly closure368_externref_shim: (a: number, b: number, c: any, d: any) => void;
readonly __wbindgen_start: () => void;
}

View File

@ -146,11 +146,11 @@ export function ludus(src) {
}
function __wbg_adapter_18(arg0, arg1, arg2) {
wasm.closure343_externref_shim(arg0, arg1, arg2);
wasm.closure355_externref_shim(arg0, arg1, arg2);
}
function __wbg_adapter_44(arg0, arg1, arg2, arg3) {
wasm.closure365_externref_shim(arg0, arg1, arg2, arg3);
wasm.closure368_externref_shim(arg0, arg1, arg2, arg3);
}
async function __wbg_load(module, imports) {
@ -306,8 +306,8 @@ function __wbg_get_imports() {
const ret = false;
return ret;
};
imports.wbg.__wbindgen_closure_wrapper1044 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 344, __wbg_adapter_18);
imports.wbg.__wbindgen_closure_wrapper1080 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 356, __wbg_adapter_18);
return ret;
};
imports.wbg.__wbindgen_init_externref_table = function() {

BIN
pkg/rudus_bg.wasm (Stored with Git LFS)

Binary file not shown.

View File

@ -9,6 +9,6 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
export const __wbindgen_malloc: (a: number, b: number) => number;
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
export const __wbindgen_export_6: WebAssembly.Table;
export const closure343_externref_shim: (a: number, b: number, c: any) => void;
export const closure365_externref_shim: (a: number, b: number, c: any, d: any) => void;
export const closure355_externref_shim: (a: number, b: number, c: any) => void;
export const closure368_externref_shim: (a: number, b: number, c: any, d: any) => void;
export const __wbindgen_start: () => void;