aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/blt/spline.rb
blob: 84d96a08f0f30110b3a221d964f4d86767f6aa66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: false
#
#  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