伯恩斯坦多项式模拟
代码语言:html
所属分类:动画
代码描述:伯恩斯坦多项式模拟
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; background-color: rgb(0, 0, 0, 0.9); } </style> </head> <body translate="no"> <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/p5.js"></script> <script > const colors = [ "#b774f2", "#70bef9", "#67e5b7", "#fcff72", "#ffab44", "#f287d9"]; const getBernsteinPolynomial = t => { return [ pow(1 - t, 5), .........完整代码请登录后点击上方下载按钮下载查看
网友评论0