MurrellGroup / ProtPlot.jl

Protein ribbon plots implemented in Julia using Makie
MIT License
13 stars 1 forks source link

Add support for explicit `Colorants` #29

Closed timholy closed 6 months ago

timholy commented 6 months ago

Allow residue colors to be specified by explicit Colorant values, e.g., RGBA(1, 0, 0, 0.5).

AntonOresten commented 6 months ago

Thanks for the pull request! I made some changes to reuse the rendering code by setting the colormap to be the colorant vector (overriding the colormap) + fixed an old issue with residue coloring. Please note that the splines don't behave quite right at the ends of segments, so residue colors might not be aligned with the actual residue positions. See #30