Fixed some silly mistakes
This commit is contained in:
parent
4ed361ca65
commit
3bc356636e
@ -39,10 +39,10 @@ class DebugCanvas {
|
|||||||
this.imageBuffer = new Uint8ClampedArray(buffer);
|
this.imageBuffer = new Uint8ClampedArray(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
trace = function(className, arrayIndex){
|
trace = function(arrayIndex, colorClass){
|
||||||
this.imageBuffer[arrayIndex ] = this.traceColors[className][0];
|
this.imageBuffer[arrayIndex ] = colorClass.colorRgb[0];
|
||||||
this.imageBuffer[arrayIndex+1] = this.traceColors[className][1];
|
this.imageBuffer[arrayIndex+1] = colorClass.colorRgb[1];
|
||||||
this.imageBuffer[arrayIndex+2] = this.traceColors[className][2];
|
this.imageBuffer[arrayIndex+2] = colorClass.colorRgb[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
update(){
|
update(){
|
||||||
@ -77,12 +77,12 @@ class DebugCanvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DebugCanvasClasses = {
|
DebugCanvasClasses = {
|
||||||
VIOLATION = {color: '#ff4400', text: 'violation (general)'},
|
VIOLATION: {color: '#ff4400', colorRgb: [255, 68, 0], text: 'violation (general)'},
|
||||||
WARN = {color: '#d08539', text: 'lesser violation (general)'},
|
WARN: {color: '#d08539', colorRgb: [208, 133, 57], text: 'lesser violation (general)'},
|
||||||
GUARDLINE_BLACKBAR = {color: '#3333FF', text: 'guardline/blackbar (expected value)'},
|
GUARDLINE_BLACKBAR: {color: '#3333FF', colorRgb: [51, 51, 255], text: 'guardline/blackbar (expected value)'},
|
||||||
GUARDLINE_IMAGE = {color: '#000088', text: 'guardline/image (expected value)'},
|
GUARDLINE_IMAGE: {color: '#000088', colorRgb: [0, 0, 136], text: 'guardline/image (expected value)'},
|
||||||
|
|
||||||
EDGEDETECT_ONBLACK = {color: '#444444', text: 'edge detect - perpendicular (to edge)'},
|
EDGEDETECT_ONBLACK: {color: '#444444', colorRgb: [68, 68, 68], text: 'edge detect - perpendicular (to edge)'},
|
||||||
EDGEDETECT_BLACKBAR = {color: '#07ac93', text: 'edge detect - parallel, black test'},
|
EDGEDETECT_BLACKBAR: {color: '#07ac93', colorRgb: [7, 172, 147], text: 'edge detect - parallel, black test'},
|
||||||
EDGEDETECT_IMAGE = {color: '#046c5c', text: 'edge detect - parallel, image test'}
|
EDGEDETECT_IMAGE: {color: '#046c5c', colorRgb: [4, 108, 92], text: 'edge detect - parallel, image test'}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user