Skip to content

Instantly share code, notes, and snippets.

View roseforyou's full-sized avatar
🎯
Focusing

AZu roseforyou

🎯
Focusing
View GitHub Profile
@roseforyou
roseforyou / index.html
Last active January 24, 2018 05:29 — forked from anonymous/index.html
createjs roulettle DEMO: http://jsbin.com/hamigujefi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
</head>
<style>
#demoCanvas {
@roseforyou
roseforyou / index.html
Created July 17, 2015 09:12 — forked from anonymous/index.html
canvas 二次方贝赛尔曲线 打点
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<script>
function quadraticBzier(p, p0, p1, p2){
return Math.pow(1-p,2)*p0 +2*p*(1-p)*p1+Math.pow(p,2)*p2;