bharvey wrote:
He also figured out how to embed a Snap! project in a web page!
Very cool! Though wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes? Seeing as Snap! is open source and all, that seems like the more obvious solution.
Offline
blob8108 wrote:
bharvey wrote:
Hardmath123 wrote:
Debating whether or not to learn Python. 40% convinced
Not such a big decision! You already know all the semantics of the language; you just have to spend a weekend on the syntax.
See? Learn Python already!
Yeah, I'm convinced.
Offline
shadow_7283 wrote:
wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes?
Would that mean building a particular snapshot of Snap! (so to speak) into your page? I think part of the idea is that as Snap! is improved, so is your embedded project.
I guess you could argue both ways; you might want to ensure against an incompatible change to Snap!.
Offline
How can I send - a single ASCII byte on a PC serial COM Port.
How can I receive - a single ASCII byte on a PC serial COM Port.
I am using BYOB 3.1.1
Donald.Nagy@gmail.com
Offline
DonaldNagy wrote:
How can I send - a single ASCII byte on a PC serial COM Port.
How can I receive - a single ASCII byte on a PC serial COM Port.
I didn't think you could interface with serial ports from inside BYOB, unless you modified it. Squeak might not even have support for it...
Offline
bharvey wrote:
shadow_7283 wrote:
wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes?
Would that mean building a particular snapshot of Snap! (so to speak) into your page? I think part of the idea is that as Snap! is improved, so is your embedded project.
I guess you could argue both ways; you might want to ensure against an incompatible change to Snap!.
@shadow_7283 Thanks for suggesting a way to improve the presentation. Jens provides an example for display of multiple morphic canvas in a page but when I tried to implement for the full Snap! IDE, I couldn't get it to work. Guess I need to to learn more about canvas.style.position controls.
My goal was to find a simple way to provide context for projects. The iframe is not slick but if Pareto* provides a useful rule of thumb, it should cover about 80% of the cases I want to share. It is also simple enough for students, teachers and others to use, too. For example, many more sites that students and teachers use will accept iframes than will accept javascript.
If shadow_7283 (or anyone else) is willing to rough out an html template that would embed Snap! in a canvas element, I'd be willing to test it for some of the remaining 20% cases I want to share.
-------------
* http://en.wikipedia.org/wiki/Pareto_principle
Last edited by scspaeth (2012-07-24 06:36:25)
Offline
bharvey wrote:
shadow_7283 wrote:
wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes?
Would that mean building a particular snapshot of Snap! (so to speak) into your page? I think part of the idea is that as Snap! is improved, so is your embedded project.
...
And it is not just improvements to Snap! but improvements to projects, too. Last week, the blocks in the shape list of the Vee Project were all blue motion blocks.
http://snap.berkeley.edu/snapsource/sna … mo/vee.xml
At the CCSTA Workshop, we discussed how to use block colors to highlight elements of scripts to make them easier to understand (a pedagogical strategy). When I reloaded this page yesterday in response to shadow_7283's comment, I saw new colors that distinguish the terminal shapes (green) and the recursive shapes (purple).
I suspect that Brian revised the copy of /demo/vee.xml in the demo project to make use of the strategy that we discussed at the workshop. The change required no action on my part other than to appreciate the beauty and joy of Snapping in this community.
Last edited by scspaeth (2012-07-23 10:24:10)
Offline
Pitusky12 wrote:
Can someone here help me make my own file format like .sb for my mod?
What do you mean? Why do you need your own format?
I feel you should probably ask on a separate thread, too...
Offline
scspaeth wrote:
christian2000 wrote:
Hardmath123 wrote:
Press the blue check mark button next to it.
I dont see any buttons next to it.
The "blue" check mark button is not blue in the most recent version of Snap!
The checkmark on the right, adjacent to the input field and inside the blue border is a button. You can click on it or simply enter text in the field and then hit the enter key on your keyboard.
when i hit enter it just starts a new line. and the field covers almost all of the bottom of the window, with only scroll bars next to it.
Offline
christian2000 wrote:
scspaeth wrote:
christian2000 wrote:
I dont see any buttons next to it.
The "blue" check mark button is not blue in the most recent version of Snap!
The checkmark on the right, adjacent to the input field and inside the blue border is a button. You can click on it or simply enter text in the field and then hit the enter key on your keyboard.when i hit enter it just starts a new line. and the field covers almost all of the bottom of the window, with only scroll bars next to it.
Does the Ask field look similar to the one in the lower half of the right-hand image in your signature in this forum?
If not, how does it differ?
Can you supply additional troubleshooting information:
Program version:
Browser:
Operating system:
Offline
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
:D
Offline
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
Yippee! After all, what's the point of custom blocks without custom reporters? You could just write out the whole thing then.
Though both of them have their workarounds
Offline
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
Finally!
Offline
MathWizz wrote:
Why not in 2.0?
I can sympathize. Snap! 4.0, barring a miracle, will have minimal costume and sound support, and nothing about sprite inheritance, etc. They don't want to keep pushing back the release date.\
Offline
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
Sweet!
Offline
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
Although there is a simple workaround (make a variable called "returned" and set that when you want to report something), but custom reporters are more efficient because you don't need lots of temporary variables if you want to compose functions
Last edited by joefarebrother (2012-07-26 08:46:22)
Offline
Scspaeth: Iframes seem like a good solution for the needs you described. The only thing I'm not sure about is if iframes will work any better than the canvas element as far as disabled JavaScript is concerned.
I'm going to try writing a script to simplify embedding Snap.
Offline
shadow_7283 wrote:
Scspaeth: Iframes seem like a good solution for the needs you described. The only thing I'm not sure about is if iframes will work any better than the canvas element as far as disabled JavaScript is concerned.
I'm going to try writing a script to simplify embedding Snap.
Let me know when you are ready for testing. Looking forward to it!
Offline
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
Sounds great! (BTW, I only noticed this post because somebody referenced it on the wiki)
Offline
Lucario621 wrote:
bharvey wrote:
Breaking news: At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!
Sounds great! (BTW, I only noticed this post because somebody referenced it on the wiki)
That would be me.
Offline
ROFL guys is jens even on scratch anymore. i mean he created byob.
i havent seen him in over probably a year or 2
Offline
Right-click it and select "edit".
Offline