bluecadet / Cinder-BluecadetViews

Scene graph Cinder block with touch management and various tools for UI dev
MIT License
11 stars 3 forks source link

Add bezel compensation to MiniMap #101

Closed adielfernandez closed 6 years ago

benjaminbojko commented 6 years ago

This works great, thanks @adielfernandez. Only thing I noticed was that occasionally the lines don't connect correctly, but tbh that's probably due to the naive way that I used to draw them in the first place. In a future update we might want to look into using smoothstep for this, but I think this does the job pretty well right now.

image

The above image is with the following settings:

"display": {
    "size": {"x": 1920, "y": 1080},
    "columns": 4,
    "rows": 3,
    "bezel": {"x": 10, "y": 10}
}
adielfernandez commented 6 years ago

Whoa, that's weird. I don't get the glitch on my side with those settings. Will look into it.

benjaminbojko commented 6 years ago

Strange! Don't spend too much time on it though; It doesn't break anything and it only occured for me with that particular setting (not if my bezel was smaller, e.g. 10px)