From d0f7d1a7f8e540542d02451fa1e3c394fd2d5c10 Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Fri, 11 Feb 2022 19:39:17 +0100 Subject: [PATCH] Update Readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 1c8f509..f5dc838 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,21 @@ Coming soon! Same general code as vidplayback but buffers the ENTIRE file to allow for seeking. I do NOT recommend this for general playback but for some purposes, this will suffice. +## Audio Spectrum + +A widget to create an audio spectrum plot of []int32 data + +|Field|Type|Effect|Values| +|---|---|---|---| +|`audioData`|`[]int32`|The data to display in the widget|default: `[]int32{}` +|`StretchSamples`|`bool`|Resample the samples to fit the widget size or not|default:`false`| +|`TransparentBackground`|`bool`|Don't draw a background rectangle|default:`false`| +|`OverrideForeground`|`bool`|Set the foreground color manually, false = use theme foreground|default:`false`| +|`OverrideForegroundColor`|`color.Color`|Color to override the theme with|default:Black| +|`OverrideBackground`|`bool`|Set the background color manually, false = use theme background|default:`false`| +|`OverrideBackgroundColor`|`color.Color`|Color to override the theme with|default:White| +|`SetMinSize(size)`|`fyne.Size`|Same as image.SetMinsize()|default:`200`x`64`| + ## floatingControlsLayout A layout to have floating controls in any of 9 places overlayed onto another widget/container. Takes exactly **TWO** renderable objects (canvas.Object or descendants) and overlays them so you can have for example, a close button top right of your full-screen app, or a play button in the middle of your video.