Skip to content

Commit

Permalink
Make some lines a bit darker
Browse files Browse the repository at this point in the history
In dark mode, we are now changing the background of these lines to #888;
so the lines need to be a bit darker to be seen.
  • Loading branch information
alexdowad committed Jul 7, 2024
1 parent 5730cf5 commit 78c3e88
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _posts/2024-07-04-complex-sin-and-cos.html
Original file line number Diff line number Diff line change
Expand Up @@ -2071,57 +2071,57 @@ <h3>Digression: Most Complex Functions Don't Have a Derivative</h3>
x1: '25', x2: '25', y1: '45', y2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
x1: '25', x2: '25', y1: '0', y2: '100', stroke: '#888', "stroke-width": '0.2'
x1: '25', x2: '25', y1: '0', y2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: '25.3', y: '49.5' }).textContent = '-1';
prependSvgNode(svg, 'line', undefined, {
x1: '75', x2: '75', y1: '45', y2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
x1: '75', x2: '75', y1: '0', y2: '100', stroke: '#888', "stroke-width": '0.2'
x1: '75', x2: '75', y1: '0', y2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: '75.3', y: '49.5' }).textContent = '1';
prependSvgNode(svg, 'line', undefined, {
y1: '25', y2: '25', x1: '45', x2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
y1: '25', y2: '25', x1: '0', x2: '100', stroke: '#888', "stroke-width": '0.2'
y1: '25', y2: '25', x1: '0', x2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: '50.5', y: '24.3' }).textContent = 'i';
prependSvgNode(svg, 'line', undefined, {
y1: '75', y2: '75', x1: '45', x2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
y1: '75', y2: '75', x1: '0', x2: '100', stroke: '#888', "stroke-width": '0.2'
y1: '75', y2: '75', x1: '0', x2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: '50.5', y: '74.3' }).textContent = '-i';
const halfPiDist = Math.PI/scale*50;
prependSvgNode(svg, 'line', undefined, {
x1: String(50 - halfPiDist), x2: String(50 - halfPiDist), y1: '45', y2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
x1: String(50 - halfPiDist), x2: String(50 - halfPiDist), y1: '0', y2: '100', stroke: '#888', "stroke-width": '0.2'
x1: String(50 - halfPiDist), x2: String(50 - halfPiDist), y1: '0', y2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: String(50 - halfPiDist + 0.3), y: '49.5' }).textContent = '-π/2';
prependSvgNode(svg, 'line', undefined, {
x1: String(50 + halfPiDist), x2: String(50 + halfPiDist), y1: '45', y2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
x1: String(50 + halfPiDist), x2: String(50 + halfPiDist), y1: '0', y2: '100', stroke: '#888', "stroke-width": '0.2'
x1: String(50 + halfPiDist), x2: String(50 + halfPiDist), y1: '0', y2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: String(50 + halfPiDist + 0.3), y: '49.5' }).textContent = 'π/2';
prependSvgNode(svg, 'line', undefined, {
y1: String(50 - halfPiDist), y2: String(50 - halfPiDist), x1: '45', x2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
y1: String(50 - halfPiDist), y2: String(50 - halfPiDist), x1: '0', x2: '100', stroke: '#888', "stroke-width": '0.2'
y1: String(50 - halfPiDist), y2: String(50 - halfPiDist), x1: '0', x2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: '50.5', y: String(50 - halfPiDist - 0.7) }).textContent = 'iπ/2';
prependSvgNode(svg, 'line', undefined, {
y1: String(50 + halfPiDist), y2: String(50 + halfPiDist), x1: '45', x2: '55', stroke: '#111', "stroke-width": '0.3'
});
prependSvgNode(svg, 'line', undefined, {
y1: String(50 + halfPiDist), y2: String(50 + halfPiDist), x1: '0', x2: '100', stroke: '#888', "stroke-width": '0.2'
y1: String(50 + halfPiDist), y2: String(50 + halfPiDist), x1: '0', x2: '100', stroke: '#666', "stroke-width": '0.2'
});
prependSvgNode(svg, 'text', 'axislabel', { x: '50.5', y: String(50 + halfPiDist - 0.7) }).textContent = '-iπ/2';

Expand Down

0 comments on commit 78c3e88

Please sign in to comment.