Top Level Namespace

Defined Under Namespace

Modules: JRubyArt, Processing Classes: AaBb, Numeric, PryException, StringExtra

Constant Summary collapse

K9_ROOT =
File.expand_path(File.dirname(__FILE__) + '/../')
MESSAGE =
"You need to 'jruby -S gem install pry' for 'live' mode"
BASIC =
<<-CODE
def setup
  sketch_title '%s'
end

def draw

end

def settings
  size %s, %s
  # pixel_density(2) # here for hi-dpi displays only
  # smooth # here
end

CODE
BASIC_MODE =
<<-CODE
def setup
  sketch_title '%s'
end

def draw

end

def settings
  size %s, %s, %s
  # smooth # here
end

CODE
CLASS_BASIC =
<<-CODE
# encoding: utf-8
# frozen_string_literal: false
class %s < Processing::App
  def setup
    sketch_title '%s'
  end

  def draw

  end

  def settings
    size %s, %s
    # pixel_density(2) # here for hi-dpi displays only
    # smooth # here
  end
end
CODE
EMACS_BASIC =
<<-CODE
# encoding: utf-8
# frozen_string_literal: false
require 'jruby_art'
require 'jruby_art/app'

Processing::App::SKETCH_PATH = __FILE__

class %s < Processing::App
  def setup
    sketch_title '%s'
  end

  def draw

  end

  def settings
    size %s, %s
    # smooth # here
  end
end

%s.new unless defined? $app
CODE
CLASS_MODE =
<<-CODE
# encoding: utf-8
# frozen_string_literal: false
class %s < Processing::App
  def setup
    sketch_title '%s'
  end

  def draw

  end

  def settings
    size %s, %s, %s
    # smooth # here
  end
end
CODE
EMACS_MODE =
<<-CODE
# encoding: utf-8
# frozen_string_literal: false
require 'jruby_art'
require 'jruby_art/app'

Processing::App::SKETCH_PATH = __FILE__

class %s < Processing::App
  def setup
    sketch_title '%s'
  end

  def draw

  end

  def settings
    size %s, %s, %s
    # smooth # here
  end
end

%s.new unless defined? $app
CODE
INNER =
<<-CODE
# encoding: utf-8
# frozen_string_literal: false
class %s
  include Processing::Proxy

end
CODE