aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2019-05-13 22:32:00 +0200
committerKing Kévin <kingkevin@cuvoodoo.info>2019-05-13 22:32:00 +0200
commitb89f6dbf3d8b6107ff4fc9688ed47bb371b59e83 (patch)
tree89b3143cc065cbc4c6899b620f5129c7c79cdaaa
parentbe72118ab2ecd79051cb48bedb691496e1239f3d (diff)
add spaces for more readibility
-rw-r--r--oshw_logo.html72
1 files changed, 36 insertions, 36 deletions
diff --git a/oshw_logo.html b/oshw_logo.html
index 035c9fc..43d2a3f 100644
--- a/oshw_logo.html
+++ b/oshw_logo.html
@@ -58,64 +58,64 @@
// draw pads
for (var i=0; i<6; i++) {
if (document.getElementById("pad_layer_copper").checked) {
- var west = cvlp_pad(i+1, 0+pad_size/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_size, pad_thickness)
+ var west = cvlp_pad(i + 1, 0 + pad_size / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_size, pad_thickness)
logo.elements = logo.elements.concat(west)
- var south = cvlp_pad(i+7, (pad_size+pad_chip_spacing*2)+pad_spacing*i, (pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2)+pad_size/2, pad_thickness, pad_size)
+ var south = cvlp_pad(i + 7, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, (pad_size + pad_chip_spacing * 2 + pad_spacing * 5 + pad_chip_spacing * 2) + pad_size / 2, pad_thickness, pad_size)
logo.elements = logo.elements.concat(south)
- var east = cvlp_pad(18-i, (pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2)+pad_size/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_size, pad_thickness)
+ var east = cvlp_pad(18 - i, (pad_size + pad_chip_spacing * 2 + pad_spacing * 5 + pad_chip_spacing * 2) + pad_size / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_size, pad_thickness)
logo.elements = logo.elements.concat(east)
- var north = cvlp_pad(24-i, pad_size+pad_chip_spacing*2+pad_spacing*i, pad_size/2, pad_thickness, pad_size)
+ var north = cvlp_pad(24 - i, pad_size + pad_chip_spacing * 2 + pad_spacing * i, pad_size / 2, pad_thickness, pad_size)
logo.elements = logo.elements.concat(north)
} else {
- var west = cvlp_line(0+pad_thickness/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_size-pad_thickness/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_thickness)
+ var west = cvlp_line(0 + pad_thickness / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_size - pad_thickness / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_thickness)
logo.elements = logo.elements.concat(west)
- var south = cvlp_line((pad_size+pad_chip_spacing*2)+pad_spacing*i, (pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2)+pad_thickness/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, (pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2)+pad_size-pad_thickness/2, pad_thickness)
+ var south = cvlp_line((pad_size + pad_chip_spacing * 2) + pad_spacing * i, (pad_size + pad_chip_spacing * 2 + pad_spacing * 5 + pad_chip_spacing * 2) + pad_thickness / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, (pad_size + pad_chip_spacing * 2 + pad_spacing * 5 + pad_chip_spacing * 2) + pad_size - pad_thickness / 2, pad_thickness)
logo.elements = logo.elements.concat(south)
- var east = cvlp_line((pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2)+pad_thickness/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, (pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2)+pad_size-pad_thickness/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_thickness)
+ var east = cvlp_line((pad_size + pad_chip_spacing * 2 + pad_spacing * 5 + pad_chip_spacing * 2) + pad_thickness / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, (pad_size + pad_chip_spacing * 2 + pad_spacing * 5 + pad_chip_spacing * 2) + pad_size - pad_thickness / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_thickness)
logo.elements = logo.elements.concat(east)
- var north = cvlp_line((pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_thickness/2, (pad_size+pad_chip_spacing*2)+pad_spacing*i, pad_size-pad_thickness/2, pad_thickness)
+ var north = cvlp_line((pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_thickness / 2, (pad_size + pad_chip_spacing * 2) + pad_spacing * i, pad_size - pad_thickness / 2, pad_thickness)
logo.elements = logo.elements.concat(north)
}
}
// draw chip outline
- var chip = cvlp_rectangle(pad_size+pad_chip_spacing, pad_size+pad_chip_spacing, pad_chip_spacing*2+pad_spacing*5, pad_chip_spacing*2+pad_spacing*5, chip_thickness, pad_chip_spacing)
+ var chip = cvlp_rectangle(pad_size + pad_chip_spacing, pad_size + pad_chip_spacing, pad_chip_spacing * 2 + pad_spacing * 5, pad_chip_spacing * 2 + pad_spacing * 5, chip_thickness, pad_chip_spacing)
logo.elements = logo.elements.concat(chip)
// draw O letter
- var x = pad_size+pad_chip_spacing*2
- var y = pad_size+pad_chip_spacing*2
- var text = cvlp_polyline([[x,y],
- [x+=pad_spacing*2,y],
- [x,y+=pad_spacing*2],
- [x+=pad_spacing*-2,y],
- [x,y+=pad_spacing*-2]],text_thickness)
+ var x = pad_size+pad_chip_spacing * 2
+ var y = pad_size+pad_chip_spacing * 2
+ var text = cvlp_polyline([[x, y],
+ [x += pad_spacing * 2, y],
+ [x, y += pad_spacing * 2],
+ [x += pad_spacing * -2, y],
+ [x, y += pad_spacing * -2]], text_thickness)
logo.elements = logo.elements.concat(text)
// draw S letter
- var x = pad_size+pad_chip_spacing*2+pad_spacing*5
- var y = pad_size+pad_chip_spacing*2
- var text = cvlp_polyline([[x,y],
- [x+=pad_spacing*-2,y],
- [x,y+=pad_spacing],
- [x+=pad_spacing*2,y],
- [x,y+=pad_spacing],
- [x+=pad_spacing*-2,y]],text_thickness)
+ var x = pad_size + pad_chip_spacing * 2 + pad_spacing * 5
+ var y = pad_size + pad_chip_spacing * 2
+ var text = cvlp_polyline([[x, y],
+ [x += pad_spacing * -2, y],
+ [x, y += pad_spacing],
+ [x += pad_spacing * 2, y],
+ [x, y += pad_spacing],
+ [x += pad_spacing * -2, y]], text_thickness)
logo.elements = logo.elements.concat(text)
// draw H letter
- var x = pad_size+pad_chip_spacing*2
- var y = pad_size+pad_chip_spacing*2+pad_spacing*3
- var text = cvlp_line(x, y, x, y+pad_spacing*2, text_thickness)
+ var x = pad_size + pad_chip_spacing * 2
+ var y = pad_size + pad_chip_spacing * 2 + pad_spacing * 3
+ var text = cvlp_line(x, y, x, y + pad_spacing * 2, text_thickness)
logo.elements = logo.elements.concat(text)
- var text = cvlp_line(x, y+pad_spacing, x+pad_spacing*2, y+pad_spacing, text_thickness)
+ var text = cvlp_line(x, y + pad_spacing, x + pad_spacing * 2, y + pad_spacing, text_thickness)
logo.elements = logo.elements.concat(text)
- var text = cvlp_line(x+pad_spacing*2, y, x+pad_spacing*2, y+pad_spacing*2, text_thickness)
+ var text = cvlp_line(x + pad_spacing * 2, y, x + pad_spacing * 2, y + pad_spacing * 2, text_thickness)
logo.elements = logo.elements.concat(text)
// draw W letter
- var x = pad_size+pad_chip_spacing*2+pad_spacing*3
- var y = pad_size+pad_chip_spacing*2+pad_spacing*3
- var text = cvlp_polyline([[x,y],
- [x,y+=pad_spacing*2],
- [x+=pad_spacing,y+=pad_spacing*-1],
- [x+=pad_spacing,y+=pad_spacing],
- [x,y+=pad_spacing*-2]],text_thickness)
+ var x = pad_size + pad_chip_spacing * 2 + pad_spacing * 3
+ var y = pad_size + pad_chip_spacing * 2 + pad_spacing * 3
+ var text = cvlp_polyline([[x, y],
+ [x, y += pad_spacing * 2],
+ [x += pad_spacing, y += pad_spacing * -1],
+ [x += pad_spacing, y += pad_spacing],
+ [x, y += pad_spacing * -2]], text_thickness)
logo.elements = logo.elements.concat(text)
var svg = json2svg(logo)