Update Readme

This commit is contained in:
Martyn 2022-02-11 19:39:17 +01:00
parent e056290e46
commit d0f7d1a7f8
1 changed files with 15 additions and 0 deletions

View File

@ -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.