Commit c15e2300 authored by Mathieu Giraud's avatar Mathieu Giraud

index.html, js/clone.js: color by clone

Fixes #2205.
parent 009a6fe2
......@@ -153,6 +153,7 @@
<div class="menu" id="color_menu" onmouseover="showSelector('colorSelector');" > color by
<div class="div-menu-selector"><select class="menu-selector" onchange="m.changeColorMethod(this.value)">
<option value="Tag">tag</option>
<option value="clone">clone</option>
<option value="V">V/5'</option>
<option value="J">J/3'</option>
<option value="N">N</option>
......
......@@ -723,6 +723,8 @@ Clone.prototype = {
}else{
this.color = colorGenerator(this.m.scale_color(size * this.m.precision));
}
} else if (this.m.colorMethod == 'clone') {
this.color = colorGeneratorIndex(this.index)
}else if (this.m.colorMethod == "Tag"){
this.color = this.m.tag[this.getTag()].color;
}else if (this.m.colorMethod == "dbscan"){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment