1 /** 2 * In this file, maybe... 3 * There could be like a "library of nice preset curves" 4 * Hmm.. why not also parametric shapes as functions? 5 * 6 */ 7 // -------------------------------------------------------------------------------- 8 // 0: A roundish, squarish, symmetrical profile curve: 9 var cptsProfile = [ 10 1, -1,0,1, 11 1, .0,0,1, 12 1, 1,0,1, 13 0, 1,0,1, 14 -1, 1,0,1, 15 -1, .0,0,1, 16 -1, -1,0,1, 17 0, -1,0,1, 18 1, -1,0,1, 19 1, .0,0,1, 20 1, 1,0,1, 21 ]; 22 // 1: Rim of "E", like a sharp-angled C 23 var cptsC = [ 24 3,4-.4,0,1, 25 1,4-.4,0,1, 26 -1,4-.4,0,1, 27 -1,4-.4,0,1, 28 -1, 0.4,0,1, 29 -1, 0.4,0,1, 30 1, 0.4,0,1, 31 3, 0.4,0,1, 32 ]; 33 // ... and so on.. some examples in the early "courselogo.js" 34