Coder Social home page Coder Social logo

holocubic_aio_heart's Introduction

HoloCubic_AIO_Heart

原作者的项目链接 https://github.com/peng-zhihui/HoloCubic

本项目基于的代码 https://github.com/ClimbSnail/HoloCubic_AIO

增加了番茄时钟功能以及一个动态的心的APP

番茄时钟APP项目链接 https://github.com/kylefjl/HoloCubic_AIO_TOMATO

动态的心的灵感来源 https://openprocessing.org/sketch/1906399

代码说明

动态的心的APP文件夹在/src/app/particle内

动态的心的实时演算代码在/src/app/idea_anim/ui_animation.cpp内, 第588行到674行

主要实现方法是在心形范围外添加一个向内的力,力的大小由到心形的距离决定

心形的范围由极坐标下的心形函数计算得到,具体公式为: $$\rho=1/\sqrt{1-abs(cos(\theta))*sin(\theta)}$$

动态的心功能演示

b站视频:https://www.bilibili.com/video/BV1Co4y1F7dX/?spm_id_from=333.999.list.card_archive.click&vd_source=5b1cbdc809022d4f7e8f66e2d77bc5d0

holocubic_aio_heart's People

Contributors

fzjpxlay avatar

Stargazers

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

Watchers

 avatar

Forkers

zyue27 oswaldxia

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.