@@ -174,7 +174,7 @@ addCanvas(
174
174
at either of the points.` ;
175
175
} ,
176
176
( ctx , width , height , animate ) => {
177
- const angleRange = 30 ;
177
+ const angleRange = 20 ;
178
178
const lengthRange = 40 ;
179
179
const period = 5000 ;
180
180
@@ -213,34 +213,33 @@ addCanvas(
213
213
const a = wobbleHandle (
214
214
frameTime ,
215
215
period / 2 + ( ra * period ) / 2 ,
216
- point ( width * 0.5 , height * 0.3 , 230 , 150 , - 50 , 150 ) ,
216
+ point ( width * 0.5 , height * 0.3 , 210 , 100 , - 30 , 100 ) ,
217
217
false ,
218
218
) ;
219
219
const b = wobbleHandle (
220
220
frameTime ,
221
221
period / 2 + ( rb * period ) / 2 ,
222
- point ( width * 0.8 , height * 0.5 , - 90 , 100 , 90 , 100 ) ,
222
+ point ( width * 0.8 , height * 0.5 , - 90 , 150 , 90 , 150 ) ,
223
223
true ,
224
224
) ;
225
225
const c = wobbleHandle (
226
226
frameTime ,
227
227
period / 2 + ( rc * period ) / 2 ,
228
- point ( width * 0.5 , height * 0.9 , - 40 , 150 , - 140 , 150 ) ,
228
+ point ( width * 0.5 , height * 0.9 , - 30 , 75 , - 150 , 75 ) ,
229
229
false ,
230
230
) ;
231
231
const d = wobbleHandle (
232
232
frameTime ,
233
233
period / 2 + ( rd * period ) / 2 ,
234
- point ( width * 0.2 , height * 0.5 , 90 , 100 , - 90 , 100 ) ,
234
+ point ( width * 0.2 , height * 0.5 , 90 , 150 , - 90 , 150 ) ,
235
235
true ,
236
236
) ;
237
237
238
238
drawClosed ( ctx , [ a , b , c , d ] , true ) ;
239
239
} ) ;
240
240
241
- return `Chaining curves together creates closed shapes. When the handles coming in and
242
- out of a point are directly opposite the transition is smooth. Otherwise the shape will
243
- have parts that look like spikes (either pointing in or out).` ;
241
+ return `Chaining curves together creates closed shapes. When the in/out handles of a point
242
+ form a line, the transition is smooth, and the curve is tangent to the line.` ;
244
243
} ,
245
244
) ;
246
245
0 commit comments