Module: Pixelart

Defined in:
lib/pixelart/base.rb,
lib/pixelart.rb,
lib/pixelart/led.rb,
lib/pixelart/blur.rb,
lib/pixelart/misc.rb,
lib/pixelart/image.rb,
lib/pixelart/spots.rb,
lib/pixelart/circle.rb,
lib/pixelart/invert.rb,
lib/pixelart/sample.rb,
lib/pixelart/sketch.rb,
lib/pixelart/vector.rb,
lib/pixelart/convert.rb,
lib/pixelart/stripes.rb,
lib/pixelart/ukraine.rb,
lib/pixelart/version.rb,
lib/pixelart/composite.rb,
lib/pixelart/generator.rb,
lib/pixelart/pixelator.rb,
lib/pixelart/silhouette.rb,
lib/pixelart/transparent.rb

Overview

todo/check - use a config block or such - why? why not?

Defined Under Namespace

Classes: Generator, Image, ImageColorBar, ImageComposite, ImagePalette8bit, Metadata, Pixelator, Vector

Constant Summary collapse

Palette256Image =
Palette8BitImage = Palette8bitImage =
ImagePalette256 = ImagePalette8Bit = ImagePalette8bit
CompositeImage =
ImageComposite
MAGICK_SCRIPT =
'./tmp/magick_script.txt'
MAGICK_INPUT =
'./tmp/magick_input.png'
MAGICK_OUTPUT =
'./tmp/magick_output.png'
MAJOR =
1
MINOR =
4
PATCH =
0
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



13
14
15
# File 'lib/pixelart/version.rb', line 13

def self.banner
  "pixelart/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
end

.rootObject



17
18
19
# File 'lib/pixelart/version.rb', line 17

def self.root
  File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end

.versionObject



9
10
11
# File 'lib/pixelart/version.rb', line 9

def self.version
  VERSION
end