Added color tweening

This commit is contained in:
Devine Lu Linvega
2017-11-22 19:43:42 +13:00
parent bef1257276
commit 7ff25747dc
4 changed files with 24 additions and 14 deletions

View File

@@ -8,8 +8,8 @@ function Cursor(rune)
this.query = null;
this.mode = "vertex";
this.color = "#f00"
this.color_alt = "#fff"
this.color = "#444444"
this.color_alt = "#ff0000"
this.size = 4;
this.under = false;

View File

@@ -3,8 +3,6 @@ function Module(name,docs = "Missing documentation.")
this.name = name;
this.methods = {};
this.routes = {};
this.ports = {};
this.docs = docs;
this.hint = function()
@@ -15,12 +13,7 @@ function Module(name,docs = "Missing documentation.")
var v = this.methods[id];
html += v.hint();
}
for(route_id in this.routes){
var route_val = this.routes[route_id];
html += route_id+"->"+route_val+" ";
}
return html.trim() != "" ? " "+html.trim() : "";
}
}