mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-14 20:57:10 +00:00
rogueviz::som:: using new atscreenpos
This commit is contained in:
@@ -1401,17 +1401,17 @@ bool draw_heatmap() {
|
|||||||
int pixstep = 4;
|
int pixstep = 4;
|
||||||
int width = heatmap_width;
|
int width = heatmap_width;
|
||||||
for(int y=width; y<vid.yres-width; y+=pixstep) {
|
for(int y=width; y<vid.yres-width; y+=pixstep) {
|
||||||
curvepoint(atscreenpos(width, y, 1) * C0);
|
curvepoint(eupoint(width, y));
|
||||||
curvepoint(atscreenpos(width*2, y, 1) * C0);
|
curvepoint(eupoint(width*2, y));
|
||||||
curvepoint(atscreenpos(width*2, y+pixstep, 1) * C0);
|
curvepoint(eupoint(width*2, y+pixstep));
|
||||||
curvepoint(atscreenpos(width, y+pixstep, 1) * C0);
|
curvepoint(eupoint(width, y+pixstep));
|
||||||
queuecurve(shiftless(Id), 0, darkena(heatmap(ilerp(width, vid.yres-width, y+pixstep/2.)), 0, 0xFF), PPR::LINE);
|
queuecurve(atscreenpos(0,0), 0, darkena(heatmap(ilerp(width, vid.yres-width, y+pixstep/2.)), 0, 0xFF), PPR::LINE);
|
||||||
}
|
}
|
||||||
for(int p=0; p<=10; p++) {
|
for(int p=0; p<=10; p++) {
|
||||||
ld y = lerp(width, vid.yres-width, p / 10.);
|
ld y = lerp(width, vid.yres-width, p / 10.);
|
||||||
curvepoint(atscreenpos(width*2, y, 1) * C0);
|
curvepoint(eupoint(width*2, y));
|
||||||
curvepoint(atscreenpos(width*3, y, 1) * C0);
|
curvepoint(eupoint(width*3, y));
|
||||||
queuecurve(shiftless(Id), 0xFFFFFFFF, 0, PPR::LINE);
|
queuecurve(atscreenpos(0,0), 0xFFFFFFFF, 0, PPR::LINE);
|
||||||
}
|
}
|
||||||
quickqueue();
|
quickqueue();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user