mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 09:08:11 +00:00
removed interior area fill
This commit is contained in:
@@ -240,20 +240,6 @@ export class FactoryRadiusLayer implements Layer {
|
||||
}
|
||||
}
|
||||
|
||||
private drawFill(ctx: CanvasRenderingContext2D) {
|
||||
const fillColor = "rgba(0, 255, 0, 0.12)";
|
||||
const offsetX = -this.game.width() / 2;
|
||||
const offsetY = -this.game.height() / 2;
|
||||
|
||||
// Draw filled circles (the fill naturally unions due to transparency)
|
||||
ctx.fillStyle = fillColor;
|
||||
for (const circle of this.factoryRanges) {
|
||||
ctx.beginPath();
|
||||
ctx.arc(circle.x + offsetX, circle.y + offsetY, circle.r, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
}
|
||||
}
|
||||
|
||||
private computeCircleUnions() {
|
||||
this.factoryRanges = this.getMyFactoryRanges();
|
||||
for (const circle of this.factoryRanges) {
|
||||
@@ -266,9 +252,6 @@ export class FactoryRadiusLayer implements Layer {
|
||||
|
||||
context.save();
|
||||
|
||||
// Draw the fill first (uses natural transparency blending)
|
||||
this.drawFill(context);
|
||||
|
||||
// Draw only the outer arc segments for the stroke
|
||||
for (const circle of this.factoryRanges) {
|
||||
this.drawArcSegments(context, circle);
|
||||
|
||||
Reference in New Issue
Block a user