Skip to content

Commit 86adbb5

Browse files
author
monkstone
committed
getting near
1 parent 7cdd928 commit 86adbb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ruby-processing/app.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module Processing
2121
Dir["#{RP_CONFIG["PROCESSING_ROOT"]}/core/library/\*.jar"].each do |jar|
2222
require jar unless jar =~ /native/
2323
end
24+
Java::Monkstone::MathToolLibrary.new.load(JRuby.runtime, false)
2425
# Include some core processing classes that we'd like to use:
2526
include_package 'processing.core'
2627

@@ -40,6 +41,7 @@ module Processing
4041
class App < PApplet
4142
include Math
4243
include HelperMethods
44+
include MathTool
4345
# Alias some methods for familiarity for Shoes coders.
4446
# attr_accessor :frame, :title
4547
alias_method :oval, :ellipse
@@ -194,6 +196,7 @@ def run_sketch(options = {})
194196
# unfettered access to the methods defined in the surrounding class.
195197
module Proxy
196198
include Math
199+
include MathTool
197200
# Generate a list of method names to proxy for inner classes.
198201
# Nothing camelCased, nothing __internal__, just the Processing API.
199202
def self.desired_method_names(inner_class)

0 commit comments

Comments
 (0)