-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cecil
committed
Apr 3, 2015
1 parent
24bc508
commit d9a4578
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Shoes.app width: 400, height: 400 do | ||
ext = "svg" | ||
path = "#{LIB_DIR}/snapshotfile.#{ext}" | ||
|
||
stack do | ||
button("shoot!") do | ||
r = snapshot :format => ext.to_sym, :filename => path do | ||
stroke blue | ||
strokewidth 4 | ||
fill black | ||
oval 100, 100, 200 | ||
end | ||
info r.inspect | ||
alert path, title: "snapshot saved to :" | ||
Shoes.show_log | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Shoes.app width: 100, height: 100 do | ||
stack width: 80, height: 80, margin: [10,10,0,0] do | ||
background orange | ||
end | ||
stroke blue | ||
strokewidth 1 | ||
nofill | ||
rect 10,10,80,80 | ||
end |