Giter Club home page Giter Club logo

colorfulx's Introduction

Hello World

I'm a random guy on the internet. Currently developing apps for mobile platform.

💬 Worked language for me

  • ✅ ⁠ ⁢⁣⁡⁠ ⁢⁣⁡Swift / Objective-C
  • ✅ ⁠ ⁢⁣⁡⁠ ⁢⁣⁡Kotlin / Java
  • ✅ ⁠ ⁢⁣⁡⁠ ⁢⁣⁡Python / TypeScript / JavaScript
  • ✅ ⁠ ⁢⁣⁡⁠ ⁢⁣⁡C / C++

📮 How to reach me

Magic Number

Visited By

👀 Some cool stuff to look into

Have a look at pinned projects below.

colorfulx's People

Contributors

lakr233 avatar lessica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

colorfulx's Issues

App 从后台返回到前台时,deltaTime 过大导致颜色跳变

我在自己的 app 中使用 ColorfulX 时,注意到应用返回前台后颜色效果会直接「跳跃」到下一个状态。如下所示:

ScreenRecording_06-15-2024.15-34-36_1.mov

查看 ColorfulX 代码后发现,虽然应用进入后台后移除了 CADisplayLink,但是 AnimatedMulticolorGradientView 中的 lastUpdate 属性依然保留着进入后台前最后一刻的时间戳。这导致回到前台后,updateRenderParameters 中计算出的 deltaTime 较大,使得下一个渲染的颜色与进入后台前的颜色差值很大,从而产生了跳变。

目前我自己的 workaround 是在 isPaused 的 willSet 回调中(也就是应用返回前台的瞬间),强制更新一次 lastUpdate。

Xnip2024-06-15_15-43-00

不知道这里是否有更好的解决方法?谢谢!

Example is for iOS 17 only

The library works in iOS 14+. What about to make an example which works at least in iOS 15+, not only iOS 17?

Report a bug: Texture Descriptor Validation MTLTextureDescriptor has a height (8520) greater than the maximum allowed size of 8192

Platform: tvOS 17.0 simulator.

ColorfulX Version: 2.1.3

when I used VStack to generate a rather long vertical ScrollView, and if the content is too long, it reports the error:

-[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation MTLTextureDescriptor has height (8520) greater than the maximum allowed size of 8192.

The program breaks at line 67 in MetalView.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.