Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmake/yup_modules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ endfunction()
#==============================================================================

function (_yup_module_setup_target module_name
module_path
module_cpp_standard
module_include_paths
module_options
Expand Down Expand Up @@ -289,6 +290,7 @@ function (_yup_module_setup_plugin_client target_name plugin_client_target folde
endif()

_yup_module_setup_target ("${custom_target_name}"
"${module_path}"
"${module_cpp_standard}"
"${module_include_paths}"
"${module_options}"
Expand Down Expand Up @@ -524,6 +526,7 @@ function (yup_add_module module_path module_group)

# ==== Setup module sources and properties
_yup_module_setup_target ("${module_name}"
"${module_path}"
"${module_cpp_standard}"
"${module_include_paths}"
"${module_options}"
Expand Down
29 changes: 10 additions & 19 deletions examples/graphics/source/examples/Audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,42 +123,33 @@ class Oscilloscope : public yup::Component
for (std::size_t i = 1; i < renderData.size(); ++i)
path.lineTo (i * xSize, (renderData[i] + 1.0f) * 0.5f * getHeight());

// Outermost glow layer
g.setStrokeColor (lineColor.withAlpha (0.1f));
g.setStrokeWidth (12.0f);
g.setStrokeCap (yup::StrokeCap::Round);
g.setStrokeJoin (yup::StrokeJoin::Round);
g.strokePath (path);
filledPath = path.createStrokePolygon(4.0f);

// Second glow layer
g.setStrokeColor (lineColor.withAlpha (0.2f));
g.setStrokeWidth (8.0f);
g.strokePath (path);
g.setFillColor (lineColor);
g.setFeather (8.0f);
g.fillPath (filledPath);

// Third glow layer
g.setStrokeColor (lineColor.withAlpha (0.4f));
g.setStrokeWidth (5.0f);
g.strokePath (path);
g.setFillColor (lineColor.brighter (0.2f));
g.setFeather (4.0f);
g.fillPath (filledPath);

// Main stroke
g.setStrokeColor (lineColor.withAlpha (0.8f));
g.setStrokeWidth (2.5f);
g.setStrokeWidth (2.0f);
g.strokePath (path);

// Bright center line
g.setStrokeColor (lineColor.brighter (0.3f));
g.setStrokeWidth (1.0f);
g.strokePath (path);

// Ultra-bright core
g.setStrokeColor (yup::Colors::white.withAlpha (0.9f));
g.setStrokeWidth (0.3f);
g.setStrokeWidth (0.5f);
g.strokePath (path);
}

private:
std::vector<float> renderData;
yup::Path path;
yup::Path filledPath;
};

//==============================================================================
Expand Down
Loading
Loading