@@ -108,7 +108,11 @@ const testInterpolateBetween = (percentage: number) => {
108
108
const testPrepPointsA = ( percentage : number ) => {
109
109
const a = blob ( "a" , 6 , 0.15 , { x : 0.45 , y : 0.1 } ) ;
110
110
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
+ ) ;
112
116
} ;
113
117
114
118
const testPrepPointsB = ( percentage : number ) => {
@@ -119,7 +123,11 @@ const testPrepPointsB = (percentage: number) => {
119
123
point ( 0.6 , 0.4 , 0 , 0 , 0 , 0 ) ,
120
124
point ( 0.45 , 0.4 , 0 , 0 , 0 , 0 ) ,
121
125
] ;
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
+ ) ;
123
131
} ;
124
132
125
133
const testPrepPointsC = ( percentage : number ) => {
@@ -138,7 +146,11 @@ const testPrepPointsC = (percentage: number) => {
138
146
point ( 0.45 , 0.5 , 0 , 0 , 0 , 0 ) ,
139
147
point ( 0.5 , 0.5 , 0 , 0 , 0 , 0 ) ,
140
148
] ;
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
+ ) ;
142
154
} ;
143
155
144
156
const testPrepPointsD = ( percentage : number ) => {
@@ -148,7 +160,11 @@ const testPrepPointsD = (percentage: number) => {
148
160
point ( 0.525 , 0.725 , 0 , 0 , 0 , 0 ) ,
149
161
point ( 0.525 , 0.725 , 0 , 0 , 0 , 0 ) ,
150
162
] ;
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
+ ) ;
152
168
} ;
153
169
154
170
const testPrepLetters = ( percentage : number ) => {
@@ -167,7 +183,11 @@ const testPrepLetters = (percentage: number) => {
167
183
point ( 0.65 , 0.45 , 0 , 0 , 0 , 0 ) ,
168
184
] ;
169
185
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
+ ) ;
171
191
} ;
172
192
173
193
const testGen = ( ) => {
0 commit comments