Skip to content

Commit

Permalink
Slimmer displayCrossHatches
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 22, 2022
1 parent a5ac24a commit ccbaf61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/wiggle/src/drawxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function fillRectCtx(
ctx.fillRect(x, y, width, height)
}

const fudgeFactor = 0.3
const fudgeFactor = 0.4
const clipHeight = 2

export function drawXY(
Expand Down Expand Up @@ -202,7 +202,7 @@ export function drawXY(

if (displayCrossHatches) {
ctx.lineWidth = 1
ctx.strokeStyle = 'rgba(200,200,200,0.8)'
ctx.strokeStyle = 'rgba(200,200,200,0.5)'
ticks.values.forEach(tick => {
ctx.beginPath()
ctx.moveTo(0, Math.round(toY(tick)))
Expand Down Expand Up @@ -298,7 +298,7 @@ export function drawLine(

if (displayCrossHatches) {
ctx.lineWidth = 1
ctx.strokeStyle = 'rgba(200,200,200,0.8)'
ctx.strokeStyle = 'rgba(200,200,200,0.5)'
values.forEach(tick => {
ctx.beginPath()
ctx.moveTo(0, Math.round(toY(tick)))
Expand Down

0 comments on commit ccbaf61

Please sign in to comment.