Skip to content

Instantly share code, notes, and snippets.

View bq-wrongway's full-sized avatar

bq_wrongway bq-wrongway

View GitHub Profile
// use rand::Rng;
// use iced::time::{Duration, Instant};
// use iced::widget::canvas::{Frame, Geometry, Path, Program};
// use iced::widget::{button, canvas, center, column, text};
// use iced::{Element, Point, Rectangle, Renderer, Size, Theme};
// use iced::{Fill, Subscription, Task};
// const NUM_BARS: usize = 10;
// const MAX_BAR_HEIGHT: f32 = 0.7;
use iced::advanced::graphics::core::widget;
use iced::advanced::{layout, renderer, Layout, Widget};
use iced::mouse::Cursor;
use iced::widget::canvas::{self, Canvas,Cache, Path, Program};
use iced::{ Element, Length, Point, Rectangle, Size, Theme};
pub struct WaveLoader {
pub phase: f32,
pub bar_count: usize,
use iced::{
widget::{button, canvas::{self, Canvas, Frame, Path, Program }, column, row}, Element, Length, Point, Renderer, Settings, Size, Subscription, Task, Theme
};
use std::time::{Duration, Instant};
use std::f32::consts::PI;
fn main() -> iced::Result {
iced::application(
SineWaveApp::new,
use iced::advanced::layout;
use iced::advanced::renderer::{self, Quad};
use iced::advanced::widget::tree::{self, Tree};
use iced::advanced::{self, Clipboard, Layout, Shell, Widget};
use iced::mouse;
use iced::time::Instant;
use iced::window;
use iced::{Background, Color, Element, Event, Length, Rectangle, Size};