Hi _why, Jordan et al, Fantastic!! I'm going to announce this great news in the forum of current Shoes course today. :-D
Yay, can't wait! Thanks, ashbb On Thu, Dec 18, 2008 at 5:39 AM, _why <[email protected]> wrote: > On Thu, Dec 18, 2008 at 02:20:11AM +0900, Satoshi Asakawa wrote: > > I got a cool idea from the Shoes programming course of RubyLearning.org. > > > > It's the screenshot feature like this: > > > > Shoes.app do > > ball = oval 0, 0, 10 > > animate{|i| ball.move i, i} > > timer 3 do > > screenshot './pic_in_3_sec.png' > > end > > end > > > > We can get the screenshot of Shoes canvas (meaning without window frame) > > as the png format image data file named pic_in_3_sec.png on the current > > directory! :-D > > Believe it or not, this already (partially) exists! It's called the > `snapshot` method and was patched in many months ago, but appears to > be broken now. (It also doesn't capture native controls or video.) > Thus, it has gone undocumented. > > I've been meaning to fix and get it to give us perfect screenshots. > So, yeah, I'm in favor of this feature. > > _why >
