gpt4 book ai didi

swift - 当填充设置为清除颜色时,CGPath 曲线闪烁黑色填充

转载 作者:搜寻专家 更新时间:2023-11-01 07:05:27 25 4
gpt4 key购买 nike

简单的正弦波 CGPath。

添加到黑色闪烁的图层时,视频:

https://gfycat.com/PaleIllAustraliansilkyterrier

照片(毫秒级显示):

enter image description here

shapeLayer.lineWidth = 1
shapeLayer.fillColor = UIColor.clear.cgColor
shapeLayer.strokeColor = UIColor.white.cgColor

我记得几年前经历过类似的事情并做了一些解决方法,但现在我找不到确切的项目。

我已经检查过视野宽度可以除以波长,但没有成功。

一些社区想法?你有过这样的经历吗?

最佳答案

闪烁可能来自设置填充颜色。您应该将此颜色设置为背景颜色或(更好)nil avoids filling .清色和无色是不一样的。

关于swift - 当填充设置为清除颜色时,CGPath 曲线闪烁黑色填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48336414/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com