From ff569dd626c6e07d9bb58d658416086e0c0d3d89 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 27 Dec 2022 12:09:57 +0000 Subject: [PATCH] Changed colors of node IO --- static/diagram.js | 2 +- static/diagram.ts | 2 +- todo.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/diagram.js b/static/diagram.js index c829767..a9ed844 100644 --- a/static/diagram.js +++ b/static/diagram.js @@ -102,7 +102,7 @@ var NodeIO = /** @class */ (function (_super) { } }; NodeIO.prototype.draw = function (ctx, ms) { - ctx.fillStyle = this.input ? "red" : "blue"; + ctx.fillStyle = this.input ? "#ED575A" : "#66A7C5"; ctx.beginPath(); ctx.arc(ms.offset.x + this.x, ms.offset.y + this.y, this.radius, circleRightRadians, circleTopRadians, this.input); ctx.fill(); diff --git a/static/diagram.ts b/static/diagram.ts index 87c5314..f9ed920 100644 --- a/static/diagram.ts +++ b/static/diagram.ts @@ -104,7 +104,7 @@ class NodeIO extends CanvasObject { } draw(ctx: CanvasRenderingContext2D, ms: MouseState): void { - ctx.fillStyle = this.input ? "red" : "blue"; + ctx.fillStyle = this.input ? "#ED575A" : "#66A7C5"; ctx.beginPath(); ctx.arc(ms.offset.x + this.x, ms.offset.y + this.y, this.radius, circleRightRadians, circleTopRadians, this.input); ctx.fill(); diff --git a/todo.md b/todo.md index bc188ec..1dfa43b 100644 --- a/todo.md +++ b/todo.md @@ -19,4 +19,4 @@ - walmart - etsy - aliexpress.com -- softer colors for IO of filter \ No newline at end of file +- start connection, don't connect, cant start new connection bug? \ No newline at end of file