1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-09 12:59:03 +00:00

new linepattern for ultra, and also better edge drawer

This commit is contained in:
Zeno Rogue
2020-05-28 01:50:31 +02:00
parent 4217c7ccc7
commit 9c4a1d6d4e
2 changed files with 33 additions and 4 deletions

View File

@@ -2815,6 +2815,17 @@ EX namespace linepatterns {
gridlinef(V, sh.vertices[p.first], sh.vertices[p.second], col, 2 + vid.linequality);
)
);
linepattern patUltra("ultra-connection", 0xFFFF8000, [] { return cgflags & qULTRA; },
ALLCELLS(
ignore(c);
color_t col2 = col;
if(col2 == 0xFF)
col2 = darkena(c->landparam, 0, 0xFF);
for(auto U: cgi.ultra_mirrors)
gridlinef(V, C0, V, mid(C0, U*C0), col2, 2 + vid.linequality);
)
);
#if HDR
extern linepattern patTriTree, patTriRings, patTriOther;
@@ -2827,7 +2838,7 @@ EX namespace linepatterns {
&patVine, &patPalacelike, &patPalace, &patPower, &patHorocycles,
&patTriRings, &patTriTree, &patTriOther,
&patGoldbergTree, &patIrregularMaster, &patGoldbergSep, &patHeawood, &patArcm,
&patCircles, &patRadii, &patMeridians, &patParallels, &patSublines
&patCircles, &patRadii, &patMeridians, &patParallels, &patSublines, &patUltra
};
EX void clearAll() {