Hextris / hextris

Fast paced HTML5 puzzle game inspired by Tetris!
https://hextris.io
Other
2.22k stars 971 forks source link

Alternate color combination to Red/Green, Color blind people may face issue. #74

Open sanketsudake opened 10 years ago

sanketsudake commented 10 years ago

Most of people have complex of red/green combination. You might look out for some other good color combination.

lengstrom commented 10 years ago

Thanks, I didn't think about that. I'll look into it.

DnlRKorn commented 10 years ago

I was looking into it, and changing initialization.js to this changes red to purple and green to brown, but it'll need some sort of options implementation to switch between them

    window.colors = ["#cc66ff","#f1c40f","#3498db","#ac6319"];
    window.hexColorsToTintedColors = {
        "#cc66ff": "rgb(233,148,212)",
        "#f1c40f": "rgb(246,223,133)",
        "#3498db": "rgb(151,201,235)",
        "#ac6319": "rgb(214,177,140)"
    };

    window.rgbToHex = {
        "rgb(204,102,255)": "cc66ff",
        "rgb(241,196,15)": "#f1c40f",
        "rgb(52,152,219)": "#3498db",
        "rgb(172,99,25)": "#ac6319"
    };

    window.rgbColorsToTintedColors = {
        "rgb(204,102,255)": "rgb(233,148,212)",
        "rgb(241,196,15)": "rgb(246,223,133)",
        "rgb(52,152,219)": "rgb(151,201,235)",
        "rgb(172,99,25)": "rgb(214,177,140)"
    };
lengstrom commented 10 years ago

I don't like those colors too much. We pulled all of our colors from http://flatuicolors.com - perhaps you could play around with the colors there?

DnlRKorn commented 10 years ago

Ok, Ill run some new ones by you

8e44ad - Purple

d2b4de - Purble tinted

d35400 - Orange

e59866 - Orange tinted

DnlRKorn commented 10 years ago

Side note: After testing out the colorblind version and then reopening the game in normal mode, the save state loaded with the purple and brown blocks still in play, but with no way to actually get rid of them.

lengstrom commented 10 years ago

Clear your local storage / try testing in an incognito window (if you're using Chrome) if you would like to try to test color combinations.

garrettdreyfus commented 10 years ago

Hey IceManQ I'd be interested in adding maybe an optional button in the pause menu. Would that be good? I'm sorry but we've come a bit attached to the games current colors. I'll try to get to work on it tomorrow! Btw those colors look great although I know nothing about color blindness I'm afraid.

DnlRKorn commented 10 years ago

Sure! Doing it before the game starts will probably be easier though, because otherwise you'd have to work out how to change all the blocks colors midgame, and setting them is much simpler

garrettdreyfus commented 10 years ago

Haha that is a very good point.

On Monday, August 18, 2014, IceManQ notifications@github.com wrote:

Sure! Doing it before the game starts will probably be easier though, because otherwise you'd have to work out how to change all the blocks colors midgame, and setting them is much simpler

— Reply to this email directly or view it on GitHub https://github.com/Hextris/hextris/issues/74#issuecomment-52450883.

Calinou commented 10 years ago

In fact, if you want to support all types of colour blindness, you need to use something based on shapes instead of colours. Or something brightness-based in grayscale, but then it is hard to distinguish between bricks.

lengstrom commented 10 years ago

Do you think that we could just use gradients?

devRandy commented 7 years ago

Hello! I have strong Protanopia colorblindness, saw this issue and wanted to give it a shot. I forked and used FlatUI colors, tell me what you think. protanopia_hextris

lengstrom commented 7 years ago

That's so cool! Could you package it up as an option in Hextris?

devRandy commented 7 years ago

Already did as an option on the main menu, its just a checkbox and label right now. Though the issue with it not changing previous block colors remains, I'm think maybe this checkbox(or button) should also restart a new session. Thoughts check _option_hextris ?