mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Two-color grid #3134

eishiya posted onGitHub

When working with tilesets that cover a broad range of color values, a single grid color might not be enough, leading to the grid being hard to see on some tiles no matter what color you set it to. I've included a number of examples below.

But first, a proposed solution: Allow the user to set two grid colors, rather than just one, and draw them alternating. This would allow some part of the grid to contrast well against whatever the user throws as it: image Ideally, the user should be able to set the opacity independently for each color. In this example, since the tileset skews quite dark, I set the white color to a lower opacity than the black. Black here also has a higher opacity than the current grid opacity in Tiled.

Currently, Tiled lets you choose an RGB color and sets the opacity automatically to somewhere around 95. With this change, it should give the user two RGBA colors instead, and not change the alpha from what the user sets. Alternatively, for a nicer alpha-setting experience, give the user two RGB colors, and provide an opacity slider for each one (the color picker currently just lets you put a numerical value in, but has no slider or preview).

If this suggestion is implemented, the second color should have opacity 0 by default, to produce the same look as the current grid. This change would have the added benefit of letting users decide how opaque they want the grid to be, even if they stick to using a single color.

This isn't even a particularly high-contrast tileset, but should hopefully demonstrate the limitations of a single-color grid: White grid, good contrast on the lightest parts, too much elsewhere image Grey grid, good contrast in darker parts, not enough on the light parts image Black grid, okay-ish contrast on light parts, not enough elsewhere image Blue grid, decent contrast on light and dark, but gets lost in the blue, and painful to look at. image Orange grid, decent contrast but blends with the lighter/warmer parts... image I could go on, but almost every color fails somewhere, even within this small, simple region. Neon green works because there's no green here, but that's nearly invisible on large regions of my more tree-heavy project.


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests