made waves more smooth.

This commit is contained in:
be5invis 2015-11-11 03:29:45 +08:00
parent f468d1428e
commit 7be5aaa964

View File

@ -335,13 +335,13 @@ define [hookend y tight s] : return {.type 'interpolate' .af [lambda [before aft
define [WaveShape l r cy extendy tension sw] : glyph-construction
local cx : mix l r 0.5
local wavex : (r - l) * tension
local endwavey : extendy * 0.95
local endwavey : extendy * 0.97
include : spiro
widths.center sw
g4 l (cy - endwavey)
bezcontrols.absolute (l + wavex) (cy + extendy) (cx - wavex) (cy + extendy) 6 important
bezcontrols.absolute (l + wavex) (cy + extendy) (cx - wavex * 0.8) (cy + extendy) 8 important
g4 cx cy
bezcontrols.absolute (cx + wavex) (cy - extendy) (r - wavex) (cy - extendy) 6 important
bezcontrols.absolute (cx + wavex * 0.8) (cy - extendy) (r - wavex) (cy - extendy) 8 important
g4 r (cy + endwavey)
# Derived subfonts