@@ -108,7 +108,11 @@ const testInterpolateBetween = (percentage: number) => {
108108const testPrepPointsA = ( percentage : number ) => {
109109 const a = blob ( "a" , 6 , 0.15 , { x : 0.45 , y : 0.1 } ) ;
110110 const b = blob ( "b" , 10 , 0.15 , { x : 0.45 , y : 0.1 } ) ;
111- drawClosed ( ctx , debug , loopBetween ( percentage , ...prepare ( a , b ) ) ) ;
111+ drawClosed (
112+ ctx ,
113+ debug ,
114+ loopBetween ( percentage , ...prepare ( a , b , { rawAngles : false , divideRatio : 1 } ) ) ,
115+ ) ;
112116} ;
113117
114118const testPrepPointsB = ( percentage : number ) => {
@@ -119,7 +123,11 @@ const testPrepPointsB = (percentage: number) => {
119123 point ( 0.6 , 0.4 , 0 , 0 , 0 , 0 ) ,
120124 point ( 0.45 , 0.4 , 0 , 0 , 0 , 0 ) ,
121125 ] ;
122- drawClosed ( ctx , debug , loopBetween ( percentage , ...prepare ( a , b ) ) ) ;
126+ drawClosed (
127+ ctx ,
128+ debug ,
129+ loopBetween ( percentage , ...prepare ( a , b , { rawAngles : false , divideRatio : 1 } ) ) ,
130+ ) ;
123131} ;
124132
125133const testPrepPointsC = ( percentage : number ) => {
@@ -138,7 +146,11 @@ const testPrepPointsC = (percentage: number) => {
138146 point ( 0.45 , 0.5 , 0 , 0 , 0 , 0 ) ,
139147 point ( 0.5 , 0.5 , 0 , 0 , 0 , 0 ) ,
140148 ] ;
141- drawClosed ( ctx , debug , loopBetween ( percentage , ...prepare ( b , a ) ) ) ;
149+ drawClosed (
150+ ctx ,
151+ debug ,
152+ loopBetween ( percentage , ...prepare ( b , a , { rawAngles : false , divideRatio : 1 } ) ) ,
153+ ) ;
142154} ;
143155
144156const testPrepPointsD = ( percentage : number ) => {
@@ -148,7 +160,11 @@ const testPrepPointsD = (percentage: number) => {
148160 point ( 0.525 , 0.725 , 0 , 0 , 0 , 0 ) ,
149161 point ( 0.525 , 0.725 , 0 , 0 , 0 , 0 ) ,
150162 ] ;
151- drawClosed ( ctx , debug , loopBetween ( percentage , ...prepare ( a , b ) ) ) ;
163+ drawClosed (
164+ ctx ,
165+ debug ,
166+ loopBetween ( percentage , ...prepare ( a , b , { rawAngles : false , divideRatio : 1 } ) ) ,
167+ ) ;
152168} ;
153169
154170const testPrepLetters = ( percentage : number ) => {
@@ -167,7 +183,11 @@ const testPrepLetters = (percentage: number) => {
167183 point ( 0.65 , 0.45 , 0 , 0 , 0 , 0 ) ,
168184 ] ;
169185 const b : Point [ ] = blob ( "" , 8 , 0.25 , { x : 0.65 , y : 0.2 } ) ;
170- drawClosed ( ctx , debug , loopBetween ( percentage , ...prepare ( a , b ) ) ) ;
186+ drawClosed (
187+ ctx ,
188+ debug ,
189+ loopBetween ( percentage , ...prepare ( a , b , { rawAngles : false , divideRatio : 1 } ) ) ,
190+ ) ;
171191} ;
172192
173193const testGen = ( ) => {
0 commit comments