caution! this page do not inspection input value. please check drowd dimention. '15/01/20 s.kato/Graph.K
version 0.1 issus: unwork scaling.
version 0.1.1 fix scalling bug fix. ('15/01/20)

2 pullys belt length v0.1.1

Left pulley's radius Right pulley's radius Axle length
Belt lengh

formula are

θ=acos(R-r)/P
L/2=R(π-θ)+rθ+Psinθ
P = (R(π-θ) + rθ - L/2) / sinθ approximation P = L/2 - (Rπ + rπ)) max P = L/2 - (R(π3/2)+r(π1/2)) minimum condition L > 2πR

MSDN introduce haw to use canvas
canvas リファレンス