You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to draw a shape which i load by using load_shape method. Yet i can draw it if i comment out the shape method in the app.rb file of ruby-processing. There must be a proper way to draw SVG shapes.
The text was updated successfully, but these errors were encountered:
class IstanbulMigration < Processing::App
def setup
@main_shape = load_shape("turkey_textless.svg")
smooth
no_loop
end
def draw
shape(@main_shape)
end
end
IstanbulMigration.new :title => "IstanbulMigration", :width => 1000, :height => 500
without overwriting it says
Exception in thread "Animation Thread" /Library/Ruby/Gems/1.8/gems/ruby-processing-1.0.9/lib/ruby-processing/app.rb:259:in `shape': no beginShape with arguments matching [class processing.core.PShapeSVG] on object #<Processing::App:IstanbulMigration:IstanbulMigration> (NameError)
using the shape method as below does not helps either
shape(@main_shape,0,0)
only solution that worked in my case was overwriting app.rb
i just checked the latest version of source on github and saw that shape method in app.rb is removed i guess one installed with the gem is the old version. i cloned the gem and installed from the sourced and now it works.
There is no way to draw a shape which i load by using load_shape method. Yet i can draw it if i comment out the shape method in the app.rb file of ruby-processing. There must be a proper way to draw SVG shapes.
The text was updated successfully, but these errors were encountered: