Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crosshair indistinguishable from gray background #232

Open
bnehoran opened this issue Nov 21, 2018 · 2 comments
Open

Crosshair indistinguishable from gray background #232

bnehoran opened this issue Nov 21, 2018 · 2 comments
Labels
Priority: Medium Realm: Google Affects google/neuroglancer as well. Fix/Feature should be sent back. Status: Available Type: New Feature

Comments

@bnehoran
Copy link

bnehoran commented Nov 21, 2018

It seems that the color of the cursor is determined by inverting the color of the image behind it.

While this works in many cases, whenever the image is gray, which happens when there is no data, the inverse of this gray is itself, and the cursor just disappears.

This is frustrating, because even in locations where there is no data, I still want to know where I'm pointing, for a number of uses.

A fix strategy would involve finding a color-to-color function that has no fixed points, and hopefully one that maximizes contrast.

Steps to reproduce:
Open a dataset to a location where it doesn't have data.
For example: https://goo.gl/UDxDRb
Move the cursor over the window. The cursor becomes "invisible".

Browser: Chrome 70
OS: tested on Windows 10

Edit: This issue also makes it very difficult to see the cursor on normal tissue at high mip levels (where the image tends to average out to look nearly gray)

@nkemnitz
Copy link

Hm... the cursor color and behavior might be an OS thing - Neuroglancer just uses the default crosshair cursor.
It's definitely easier to change the default background color: You can do that by adding "crossSectionBackgroundColor": "#606060" to the top-level JSON state object. (Or whatever color you prefer)

@nkemnitz nkemnitz changed the title Crosshair cursor disappears when the image is gray Cross-hair indistinguishable from gray background Nov 21, 2018
@nkemnitz nkemnitz changed the title Cross-hair indistinguishable from gray background Crosshair indistinguishable from gray background Nov 21, 2018
@nkemnitz nkemnitz added Type: New Feature Priority: Medium Status: Available Realm: Google Affects google/neuroglancer as well. Fix/Feature should be sent back. labels Nov 21, 2018
@nkemnitz
Copy link

Looks like the only option is a custom cursor. To make it work on all sorts of backgrounds, we could
❤️ : create an outlined version - which could still become nearly invisible if the underlying EM image closely resembles the
🎉 : let the user control the color - which means another setting that needs to be saved, and which the user has to be aware of (also need to check if CSS color blending even works with cursors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium Realm: Google Affects google/neuroglancer as well. Fix/Feature should be sent back. Status: Available Type: New Feature
Projects
None yet
Development

No branches or pull requests

2 participants