fix
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use crate::utils::string_to_polygon;
|
||||
use crate::{polygon_draw::*, utils::string_to_color};
|
||||
use iced::Length::Fill;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use kira::{AudioManager, sound::static_sound::StaticSoundData};
|
||||
@@ -10,7 +9,6 @@ use iced::widget::canvas;
|
||||
use iced::widget::canvas::Stroke;
|
||||
use iced::widget::canvas::Style;
|
||||
use iced::{Color, Rectangle, Renderer, Theme};
|
||||
use iced::{Vector, color};
|
||||
use std::f32::consts::PI;
|
||||
use std::time::Duration;
|
||||
#[derive(Serialize, Deserialize)]
|
||||
@@ -113,7 +111,7 @@ impl Music {
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ADD/REMOVE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
pub fn add_Point(&mut self, delta: f32) {
|
||||
pub fn add_point(&mut self, delta: f32) {
|
||||
let pos = self
|
||||
.poly_frame
|
||||
.binary_search_by(|(d, _)| d.partial_cmp(&delta).unwrap())
|
||||
@@ -145,7 +143,6 @@ impl<Message> canvas::Program<Message> for Music {
|
||||
_cursor: mouse::Cursor,
|
||||
) -> Vec<canvas::Geometry> {
|
||||
let mut frame = canvas::Frame::new(renderer, bounds.size());
|
||||
let radius = frame.size().width.min(frame.size().height) / 2.0 - 32.0;
|
||||
let mut toggle_color = true;
|
||||
let padding = 8.;
|
||||
let w = bounds.width - (padding * 2.);
|
||||
|
||||
Reference in New Issue
Block a user