46

前端算法之弹幕设计

 5 years ago
source link: https://juejin.im/post/5b5a96fff265da0f8a14a8f9
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
大家都说前端写页面较多,几乎用不到算法。本文愿从弹幕设计这个场景来描述算法在前端中的应用,我们先来看下实现效果: 图1.1 弹幕效果 开场之前我们先来描述弹幕开发的难度,再集中精力描述算法设计的思路。 如何保证不同字号的弹幕不碰撞 弹幕的位置计算 弹幕的速

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK