josiahseaman / FluentDNA

FluentDNA allows you to browse sequence data of any size using a zooming visualization similar to Google Maps. You can use FluentDNA as a standalone program or as a python module for your own bioinformatics projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color Zooming - best of both worlds

josiahseaman opened this issue · comments

Help Needed: If there's a color lover who wants to take this on, I'd be glad for a pull request.

Natural colors are best close up, high contrast colors are best zoomed out.

Closest layer is natural colors, copy the source file, swap out the color index in raw png file for high contrast given to deep zoom.

Even better, Deepzoom - override "resize" function to calculate sqrt of squares. This is probably prohibitively slow, but it'd look nice.

See "Why Computer Color is Broken" for an explanation.

image
image

Color calculations could also be done in "Lab" space to create the correct perceptual average and eliminate much of the Moire effect.
https://www.codeproject.com/Articles/19045/Manipulating-colors-in-NET-Part
https://en.wikipedia.org/wiki/Lab_color_space#Approximate_formulas_for_Ka_and_Kb