Skip to content

Commit

Permalink
color wrangling
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Feb 3, 2024
1 parent 85fd466 commit 22b5186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/feature/render/renderFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ function renderAminoAcidSequence(ctx, exon, bpStart, bpPerPixel, y, height, feat
ctx.fillStyle = diagnosticColor
} else {
if ('+' === strand) {
ctx.fillStyle = 0 === ss % 2 ? '#8931ff' : '#fffa03'
ctx.fillStyle = 0 === ss % 2 ? '#008cff' : 'rgba(135,206,235,0.36)'
} else {
ctx.fillStyle = 0 === ee % 2 ? '#83f902' : '#028401'
ctx.fillStyle = 0 === ee % 2 ? '#ff726e' : 'rgba(255,0,0,0.22)'
}

}
Expand All @@ -242,10 +242,10 @@ function renderAminoAcidSequence(ctx, exon, bpStart, bpPerPixel, y, height, feat

if ('+' === strand) {
ss += phase
doPaint(strand, ss - phase, ss, '#ff7fd3')
doPaint(strand, ss - phase, ss, '#83f902')
} else {
ee -= phase
doPaint(strand, ee, ee + phase, '#ff7fd3')
doPaint(strand, ee, ee + phase, '#83f902')
}
}

Expand Down

0 comments on commit 22b5186

Please sign in to comment.