made a nicer screenshot

This commit is contained in:
Sander Hautvast 2021-02-12 18:11:29 +01:00
parent c9021ce1b1
commit 971d3b8db8
3 changed files with 2 additions and 3 deletions

View file

@ -3,7 +3,7 @@
* and a repl: ReadEvalPrint Loop, where Print is doing operations on vectors and matrices in a graphic environment
* written in vanilla javascript (ES6)
<img src="screenshot-0.png" with="250"></img>
<img src="screenshot.png" with="250"></img>
The repl has the following syntax (It's work in progress, new capabilities will be added)
* arithmetic expressions:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

View file

@ -5,7 +5,6 @@
const state = {};
const command_input_element = document.getElementById('command_input');
const command_history_element = document.getElementById('command_history');
const bottom = document.getElementById('bottom');
command_input_element.value = '';
let command_history = [];
let command_history_index = 0;
@ -150,7 +149,7 @@
vector: (args) => add_vector({x0: args[0], y0: args[1], x: args[2], y: args[3]}),
remove: (args) => {
if (args[0].hasOwnProperty('binding')) {
delete this.state[args[0].binding];
delete state[args[0].binding];
return remove_vector(args[0].object); // by binding value
} else {
return remove_vector(args[0]); // by index (@...)