Can disable cell colors in v6 mode

This commit is contained in:
Wuzzy 2023-10-27 18:18:26 +02:00
parent 1e866e82f4
commit d354078ad1

View File

@ -1131,6 +1131,7 @@ function drawV6() {
clear(context);
if (v6_flag_snowbiomes) {
let cx, cy;
@ -1149,6 +1150,7 @@ function drawV6() {
// Desert <-> Jungle <-> Temperate
[cx_hot2, cy_hot2] = biomeCoordsToCanvasPixelCoords(MGV6_FREQ_HOT, MGV6_FREQ_JUNGLE);
if (showCellColors) {
// Render biome areas
context.fillStyle = CELL_COLOR_V6_NORMAL;
// Temperate
@ -1195,6 +1197,11 @@ function drawV6() {
context.lineTo(w, cy_snow2);
context.closePath();
context.fill();
} else {
// Use a "neutral" background color for the whole area if cell colors are disabled
context.fillStyle = CELL_COLOR_NEUTRAL;
context.fillRect(-DRAW_OFFSET, -DRAW_OFFSET, w+DRAW_OFFSET, h+DRAW_OFFSET);
}
// Render biome borders
context.lineWidth = 2.5;