summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/blt/spline.rb
blob: 9f75a0b2177a9e393204ed5790ec188bd2e9231f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
#  tkextlib/blt/spline.rb
#                               by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#

require 'tk'
require 'tkextlib/blt.rb'

module Tk::BLT
  module Spline
    extend TkCore

    TkCommandNames = ['::blt::spline'.freeze].freeze

    def self.natural(x, y, sx, sy)
      tk_call('::blt::spline', 'natural', x, y, sx, sy)
    end

    def self.quadratic(x, y, sx, sy)
      tk_call('::blt::spline', 'quadratic', x, y, sx, sy)
    end
  end
end