Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 159255adda |
+13
-9
@@ -263,22 +263,26 @@ namespace VISEQ::GRAPH::NODES {
|
||||
radius = (float)midiPolyPressure.value * 0.002f + 15.0f;
|
||||
break;}
|
||||
}
|
||||
|
||||
DrawRing(position, radius, radius + 4, 0, 360, 24, VS_COLOR_DARKGREY);
|
||||
//DrawRing(position, radius, radius + 4, 0.0f - 90.0f, (360.0f/127.0f) * getNotes().velocity - 90.0f, 24, (Color){158, 134, 200, 255});
|
||||
if(!selected) DrawCircleLinesV(position, radius + 4, VS_COLOR_GREY);
|
||||
|
||||
if(!selected) DrawCircle(position.x, position.y, radius, state->settings.mode_colors[mode]);
|
||||
if(selected) DrawCircle(position.x, position.y, radius, VS_COLOR_LIGHTBLUE);
|
||||
|
||||
float trigger_alpha = (1.f / getNotes().gate) * fade;
|
||||
|
||||
DrawCircle(position.x, position.y, radius, ColorLerp(state->settings.mode_colors[mode], VS_COLOR_RED, trigger_alpha));
|
||||
if(hovering()) DrawCircleLinesV(position, radius + 4, VS_COLOR_PINK);
|
||||
if(picked_up || (in_selection_rect && MOUSE_LEFT.down) || selected) DrawCircleLinesV(position, radius + 4, VS_COLOR_LIGHTBLUE);
|
||||
//if(selected) DrawCircle(position.x, position.y, radius, (Color){255, 153, 187, 255});
|
||||
if(!selected && !pickedUp() && !hovering()) DrawRing(position, radius, radius + 3, 0, 360, 24, VS_COLOR_GREY);
|
||||
DrawRing(position, radius, radius + 3, 0, 360, 24, ColorLerp(VS_COLOR_GREY, VS_COLOR_RED, trigger_alpha));
|
||||
if(selected) DrawRing(position, radius, radius + 3, 0, 360, 24, VS_COLOR_RED);
|
||||
if(picked_up || (in_selection_rect && MOUSE_LEFT.down) || selected) DrawRing(position, radius, radius + 3, 0, 360, 24, VS_COLOR_LIGHTBLUE);
|
||||
if(hovering()) DrawRing(position, radius, radius + 3, 0, 360, 24, VS_COLOR_PINK);
|
||||
|
||||
DrawCircleLinesV(position, radius + 3, VS_COLOR_LIGHTGREY);
|
||||
|
||||
|
||||
//if(hovering()) DrawCircleLinesV(position, radius + 4, VS_COLOR_PINK);
|
||||
|
||||
if(distributionMode == Distribution::RANDOM) DrawCircle(position.x, position.y, radius/2.0f, VS_COLOR_PINK);
|
||||
if(distributionMode == Distribution::ROUNDROBIN) DrawCircle(position.x, position.y, radius/2.0f, VS_COLOR_YELLOW);
|
||||
|
||||
//if(selected) DrawCircleLinesV(position, radius+8, (Color){158, 255, 210, 255});
|
||||
|
||||
VMATH::Vec2D<float> desc_position = position + VMATH::Vec2D<float>(radius + 7.0f, radius + 7.0f);
|
||||
switch(mode){
|
||||
|
||||
Reference in New Issue
Block a user