module ImageParadise::Svg
Constants
- N
#¶ ↑
N
¶ ↑#¶ ↑
Public Class Methods
add(i = '')
click to toggle source
add_linebreak()
click to toggle source
chart_directory()
click to toggle source
circle( a = '100', b = 'red', c = '3', r = '40' )
click to toggle source
close_svg()
click to toggle source
load_chart_module()
click to toggle source
#¶ ↑
Svg.load_chart_module
¶ ↑
This method will load the individual .rb files from the chart/ subdirectory. Currently this is not in use though - perhaps one day when I get to use the chart-svg subsection.
#¶ ↑
# File lib/image_paradise/svg/svg.rb, line 87 def self.load_chart_module these_files = Svg.chart_directory+'*.rb' Dir[these_files].each {|file| file = 'image_paradise/svg/charts/'+File.basename(file) require file # And require it. } end
rectangle( a = Svg::Rectangle::DEFAULT_WIDTH, b = Svg::Rectangle::DEFAULT_HEIGHT, c = Svg::Rectangle::DEFAULT_FILL_COLOUR, d = '3', &block )
click to toggle source
#¶ ↑
ImageParadise::Svg.rectangle
¶ ↑
Always sync to the above method.
Usage examples:
Svg.rectangle(150,:blue,5,20)
#¶ ↑
# File lib/image_paradise/svg/rectangle.rb, line 144 def self.rectangle( a = Svg::Rectangle::DEFAULT_WIDTH, b = Svg::Rectangle::DEFAULT_HEIGHT, c = Svg::Rectangle::DEFAULT_FILL_COLOUR, d = '3', &block ) Svg::Rectangle.create(a,b,c,d) { block } end
reset()
click to toggle source
string?()
click to toggle source