优化时钟绘制

This commit is contained in:
toly
2021-07-06 21:22:11 +08:00
parent 6234c8114d
commit ca81162e51
5 changed files with 233 additions and 167 deletions

View File

@@ -1,9 +1,9 @@
import 'dart:math';
import 'dart:ui';
import 'dart:ui' as ui;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
/// create by 张风捷特烈 on 2020/5/1
/// contact me by email 1981462002@qq.com
@@ -69,7 +69,7 @@ class PaperPainter extends CustomPainter {
}
double f(double thta) {
double p = 150*sin(5*thta).abs();
double p = 120 * sin(5 * thta).abs();
return p;
}