diff --git a/src/datatypes.h b/src/datatypes.h index 06ac360..0719a69 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -6,6 +6,7 @@ #define VS_COLOR_BLACK (Color){20, 20, 20, 255} #define VS_COLOR_DARKGREY (Color){46, 46, 46, 255} +#define VS_COLOR_GREY (Color){80, 80, 80, 255} #define VS_COLOR_LIGHTGREY (Color){100, 100, 100, 255} #define VS_COLOR_WHITE (Color){214, 214, 214, 255} #define VS_COLOR_YELLOW (Color){229, 181, 103, 255} diff --git a/src/node-handle.h b/src/node-handle.h index 879bbe4..6c03394 100644 --- a/src/node-handle.h +++ b/src/node-handle.h @@ -131,17 +131,18 @@ namespace VISEQ::GRAPH::NODES{ bool show = hovering() || picked_up; Color dcol = ColorBrightness(col, -0.5f); Color dyncol = show ? col : dcol; + Color dGrey = ColorBrightness(VS_COLOR_GREY, -0.2f); + Color dynGrey = show ? VS_COLOR_GREY : dGrey; if(steps > 0){ for(int i = 0; i < steps; i++){ Vec2Df pos = parentPosition.orbitAtAngle(orbit, DEG2RAD * i * (360.0f/steps)); - Vec2Df pos1 = parentPosition.orbitAtAngle(orbit - 2.0f, DEG2RAD * i * (360.0f/steps)); - //DrawCircleV(pos, 1.0f, dyncol); - DrawLineV(pos, pos1, dyncol); + Vec2Df pos1 = parentPosition.orbitAtAngle(orbit - 3.0f, DEG2RAD * i * (360.0f/steps)); + DrawLineV(pos, pos1, dynGrey); } } + DrawCircleLinesV(parentPosition, (parentPosition + position).dist(parentPosition), dynGrey); DrawCircleV(position + parentPosition, radius, dyncol); - DrawCircleLinesV(parentPosition, (parentPosition + position).dist(parentPosition), dyncol); VISEQ::HELPER::DrawSuperText(std::format("{}", assignedValueRef), position + parentPosition, position + parentPosition + Vec2Df(50,0), 1, 0, 8, dyncol); //if(show) VISEQ::HELPER::DrawSuperText(name, minP, maxP, 0.5f, 8.0f, 10.0f, dyncol);