On Green Shoes, do we have a broken arrow?

Team,

I copied the code listed below and attempted to run it. It crashes with
the
following messages.

ruby arrow000.rb
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:625:in
block in arrow': undefined method*’ for nil:NilClass (NoMethodError)
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:569:in
instance_eval' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:569:inblock in shapebase’
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:573:in
call' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:573:inshapebase’
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:593:in
shape' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:624:inarrow’
from arrow000.rb:12:in block in <main>' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/main.rb:98:ininstance_eval’
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/main.rb:98:in
app' from arrow000.rb:2:in

require “green_shoes”
Shoes.app {
fill red
rect(
:left => 10,
:top => 10,
:width => 40
)
arrow(
:left => 30,
:top => 60,
:width => 40
)
}

Thank you

hi,

refer to the manual under art:
http://ashbb.github.io/green_shoes/Art.html

There you have:

Shoes.app do
para ‘An arrow shape:’, left: 20, top: 10
arrow 30, 40, 70
end

kind regards
seba
love shoes!

Sebastjan H. wrote in post #1110046:

hi,

refer to the manual under art:
The Green Shoes Manual // Art for Slots

There you have:

Shoes.app do
para ‘An arrow shape:’, left: 20, top: 10
arrow 30, 40, 70
end

my bad, you need a broken arrow…
maybe if you combine it with line? I haven’t tried it yet though…

Sebastjan H. wrote in post #1110047:

Sebastjan H. wrote in post #1110046:

hi,

refer to the manual under art:
The Green Shoes Manual // Art for Slots

There you have:

Shoes.app do
para ‘An arrow shape:’, left: 20, top: 10
arrow 30, 40, 70
end

my bad, you need a broken arrow…
maybe if you combine it with line? I haven’t tried it yet though…

use rect instead of line unless someone has a better idea…
regards
seba

I forgot to mention I get the same error if I run your code, but the one
from the green shoes manual works fine.

regards
seba

Thank you for your reply.

Actually, an image of a broken arrow is fine. Thank you for the
suggestion.

Where can I find a copy of the manual for green-shoes?
Also, what’s the difference between green-shoes and the non green-shoes?
Or
please point to a url where I can read about it.

Thank you for your help

Off the top of my head, would it suite you to use an image of a broken
arrow?

regards
seba

Hi Ruby S., Seba and folks,

Do you want to draw a broken arrow?
How about using shape method like this:

require “green_shoes”
Shoes.app do
fill red
nostroke
shape do
move_to 50, 20
line_to 50, 125
line_to 120, 180
line_to 100, 200
line_to 150, 200
line_to 150, 150
line_to 130, 170
line_to 65, 120
line_to 65, 20
line_to 50, 20
end
end

Where can I find a copy of the manual for green-shoes?
I have no PDF manual.
But if HTML manual is okay, try to the following steps.
You can make it by yourself. :wink:

  • Open Green Shoes manual, i.e. run this code

    require ‘green_shoes’
    Shoes.show_manual

  • Click to_html link and save html files.

Let’s have fun with Shoes,
ashbb

Now this is awesome! That red, broken arrow looks nice!
I’m looking forward on learning shoes.

BTW, the build of the html manual did not work. But that’s fine. As long
as
I can get to the manual using the instructions provided is just fine.
It looks like a Ruby issue:

*You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted*

Thank you for your help.

Ruby S. wrote in post #1110074:

Thank you for your reply.

Actually, an image of a broken arrow is fine. Thank you for the
suggestion.

Where can I find a copy of the manual for green-shoes?

Find it here: The Green Shoes Manual // Hello!
I don’t think there’s a copy per say like a PDF or something.

Also, what’s the difference between green-shoes and the non green-shoes?
Respective differences are stated in the green shoes manual under each
category if applicable. Like so:

Note: Green Shoes doesn’t support center style.

Or
please point to a url where I can read about it.
Some are described also here:
The Green Shoes Manual // Difference between Red Shoes and Green Shoes

For images I use mostly http://openclipart.org/ as an open source image
source.

kind regards,
seba

Hi Ashbb,

First, thank you for the zipping me a copy of the manual. I downloaded
it.
I actually browsed the entire manual to see what’s in it.

Your help is truly appreciated.

Hi Ruby S.,

the build of the html manual did not work.
Umm,…
I can build on my Windows 7, but have not tried on other platforms,
sorry.

Okay, I uploaded a zip file. You can download from here:
http://ashbb.digi2.jp/green_shoes_manual.zip

I’m looking forward on learning shoes.
Cool!
I’m looking forward to see you on Shoes ML or shoes/shoes4 on GitHub.
:wink:

Cheers,
ashbb