Open SimonN opened 8 years ago
SimonN: When you nudge erasers into position, do you use the mouse or the keyboard? I have a loose idea to not draw any selection rectangles during mouse move Nepster: I do all precise adjustments with the keyboard. The mouse gets only used if the tile is half a screen away from its final position. SimonN: good, I do that too SimonN: I have already tried drawing only 50 % of the rectangle, the 4 sections close to the corners (8 lines). That looked too disconnected and was slow SimonN: enlarge box by 1 pixel obscures information on the other piece you're trying to intersect. Enlarging by 2 pixels feels weird when aligning normal blocks, I'd like to find something better Nepster: Hmm, yes, I see the problem. Nepster: What do you think about keeping the current box size, but changing the alpha-value of the box pixels periodically? SimonN: I can try SimonN: in the impl, the colors change only slightly. Maybe I need more change so that you can see adequately the tile below. Then your old complaint about strong flickering comes back Nepster: I envisioned more a low-frequency gradual alpha-change (not necessarily totally in sync with the color changes). If the box fades for one second and then takes another second to reappear, the flickering effect is hopefully not too bad.
Nepster: I would suggest to make the frame one (or perhaps even two) pixels larger on all sides.
This will still hide information, but now in other tiles than in the seleceted tile.
I have no idea how to fix it properly. Re-test this alpha idea?
Nepster: What do you think about keeping the current box size, but changing the alpha-value of the box pixels periodically? I envision a more low-frequency gradual alpha-change (not necessarily totally in sync with the color changes). If the box fades for one second and then takes another second to reappear, the flickering effect is hopefully not too bad.
Nepster: The rectangular frames around selected terrain pieces are currently inside the tile boundaries. This way they turn the outermost 1-pixel layer of the terrain piece invisible. For rectangular pieces this is not a problem, but for irregular pieces this hides information. If I want to erase or add a few pixels then this outermost layer of the piece is precisely the part I want to see. Currently I have to place it at approximately the correct position, then deselect the piece, see whether it's positioned correctly, select it again and move it another one or two pixels.
Nepster: I would suggest to make the frame one (or perhaps even two) pixels larger on all sides.
Simon: Yeah, excellent. Or draw the highlight with a blender, such that underlying pixels change the highlighting frame's color.