local curve = _Curve.new()curve:addPoint(_Vector2.new( 0,20 ))curve:addPoint(_Vector2.new( 50,10 ))curve:addPoint(_Vector2.new( 60,10 ))curve:addPoint(_Vector2.new( 80,50 ))curve:addPoint(_Vector2.new( 100,60 ))curve:addPoint(_Vector2.new( 150,100 ))_app:onIdle(function(e) curve:draw( 100, 100, _Color.White )end)_app:onKeyDown(function(key)if key == _System.Key1 then curve.type = _Curve.Straight elseif key == _System.Key2 then curve.type = _Curve.Hermite elseif key == _System.KeyA then local point = curve:getValue( 0.5 ) print( '0.5Value:', point.x, point.y) elseif key == _System.KeyS then local point = curve:getPoint(2) print( '2Point:', point.x, point.y) elseif key == _System.KeyD then local points = curve:getPoints() print( '#Points:', #points) endend)