tpaley wrote:
scimonster wrote:
Check the Glossary; it has instructions on how to make a cap.
Where's the glossary?
Last edited by scimonster (2011-10-09 11:37:52)
Offline
scimonster wrote:
Pecola1 wrote:
techdoodle wrote:
When I select save image for end-user it brings up a black, uncloseable screen and does not save a thing! help? please?
Hmmm never has happened to me... idk what to do...
I do.
techdoodle, click twice on the black. Shift click the R again, and choose "Turn fill screen on". Try saving the image now.
I clicked twice and nothing hapened....
Offline
techdoodle wrote:
scimonster wrote:
Pecola1 wrote:
Hmmm never has happened to me... idk what to do...I do.
techdoodle, click twice on the black. Shift click the R again, and choose "Turn fill screen on". Try saving the image now.I clicked twice and nothing hapened....
Are you holding down shift? And make sure it's the curvy part of the R...
Offline
Greenatic wrote:
techdoodle wrote:
scimonster wrote:
I do.
techdoodle, click twice on the black. Shift click the R again, and choose "Turn fill screen on". Try saving the image now.I clicked twice and nothing hapened....
Are you holding down shift? And make sure it's the curvy part of the R...
He's talking about double-clicking on the black. He can't get back to shift-clicking the R again because it isn't there
Offline
meowmeow55 wrote:
Greenatic wrote:
techdoodle wrote:
I clicked twice and nothing hapened....Are you holding down shift? And make sure it's the curvy part of the R...
He's talking about double-clicking on the black. He can't get back to shift-clicking the R again because it isn't there
Oh. Re-install Scratch then.
Offline
('%n is a factor of %n' #b #IsFactor:Of:) IsFactor: t1 Of: t2 t2 isInf ifTrue:[^ true]. [t2/t1] ifError: [^ false]. ^ (t2/t1) = (t2/t1) rounded
('%n is a multiple of %n' #b #IsMultiple:Of:) IsMultiple: t1 Of: t2 | t3 t4 | t2 = 0 ifTrue:[^ false]. t1 isInf ifTrue:[^ true]. (t1 isNaN) | (t2 isInf) | (t2 isNaN) ifTrue:[^ false]. t3 _ t2. t4 _ 1. [t3 abs < t1 abs] whileTrue:[ t3 _ t2 * t4. t4 _ t4 + 1]. ^ t3 = t1
('%f is valid for %n?' #r #IsValid:For:) IsValid: t1 For: t2 [self computeFunction: t1 of: t2] ifError: [^ false]. ^ true
Last edited by Greenatic (2011-10-09 21:22:54)
Offline
Speaking of the glossary, by the way, I came across some wonderfully easy to grasp explanations for some of those features found so often in Squeak and other OOPs at a lecture I had yesterday:
Objects
• Objects have properties, methods and events
• An object is based on a class
– Objects (noun or thing)
• Forms, Controls
– Properties (adjectives)
• Name, Color, Size, Location
– Methods (verbs)
• Close, Show, Clear
– Events (occurs when user takes action)
• Click, KeyPress, Scroll, Close window
– Classes (template or blueprint)
• Contain definition of all available properties, methods and
events
I'll update the glossary with these if people like them later when I have a moment
Offline
sparks wrote:
Speaking of the glossary, by the way, I came across some wonderfully easy to grasp explanations for some of those features found so often in Squeak and other OOPs at a lecture I had yesterday:
Objects• Objects have properties, methods and events
• An object is based on a class
– Objects (noun or thing)
• Forms, Controls
– Properties (adjectives)
• Name, Color, Size, Location
– Methods (verbs)
• Close, Show, Clear
– Events (occurs when user takes action)
• Click, KeyPress, Scroll, Close window
– Classes (template or blueprint)
• Contain definition of all available properties, methods and
eventsI'll update the glossary with these if people like them later when I have a moment
Nice. I needed this earlier!
Offline
sparks wrote:
Has someone appealed about the weebly site being blocked by Scratch? I can do so if not, or back up the plea.
I did. No response though.
Offline
*cough* update *cough*
Offline
('note %N as note, #s' #r #AsNoteSharps:) AsNoteSharps: t1 | t2 | t1 isInf ifTrue:[^ 'Invalid']. t1 isNaN ifTrue:[ ^ 'Invalid']. t1 ~= t1 rounded ifTrue:[^ 'Invalid']. t2 _ t1 abs \\ 12. t2 = 0 ifTrue:[ ^ 'C']. t2 = 1 ifTrue:[ ^ 'C#']. t2 = 2 ifTrue:[ ^ 'D']. t2 = 3 ifTrue:[ ^ 'D#']. t2 = 4 ifTrue:[ ^ 'E']. t2 = 5 ifTrue:[ ^ 'F']. t2 = 6 ifTrue:[ ^ 'F#']. t2 = 7 ifTrue:[ ^ 'G']. t2 = 8 ifTrue:[ ^ 'G#']. t2 = 9 ifTrue:[ ^ 'A']. t2 = 10 ifTrue:[ ^ 'A#']. t2 = 11 ifTrue:[ ^ 'B'].
(That's a flat, not a letter b)
('note %N as note, bs' #r #AsNoteFlats:) AsNoteFlats: t1 | t2 | t1 isInf ifTrue:[^ 'Invalid']. t1 isNaN ifTrue:[ ^ 'Invalid']. t1 ~= t1 rounded ifTrue:[^ 'Invalid']. t2 _ t1 abs \\ 12. t2 = 0 ifTrue:[ ^ 'C']. t2 = 1 ifTrue:[ ^ 'Db']. t2 = 2 ifTrue:[ ^ 'D']. t2 = 3 ifTrue:[ ^ 'Eb']. t2 = 4 ifTrue:[ ^ 'E']. t2 = 5 ifTrue:[ ^ 'F']. t2 = 6 ifTrue:[ ^ 'Gb']. t2 = 7 ifTrue:[ ^ 'G']. t2 = 8 ifTrue:[ ^ 'Ab']. t2 = 9 ifTrue:[ ^ 'A']. t2 = 10 ifTrue:[ ^ 'Bb']. t2 = 11 ifTrue:[ ^ 'B'].
Last edited by Greenatic (2011-10-11 22:05:41)
Offline
Greenatic wrote:
http://www.freewebs.com/polyeztahpuppie … sharps.gif
Code:
('note %N as note, #s' #r #AsNoteSharps:) AsNoteSharps: t1 | t2 | t2 _ t1 abs. [t2 < 12] whileFalse:[ t2 _ t2 - 12]. t2 = 0 ifTrue:[ ^ 'C']. t2 = 1 ifTrue:[ ^ 'C#']. t2 = 2 ifTrue:[ ^ 'D']. t2 = 3 ifTrue:[ ^ 'D#']. t2 = 4 ifTrue:[ ^ 'E']. t2 = 5 ifTrue:[ ^ 'F']. t2 = 6 ifTrue:[ ^ 'F#']. t2 = 7 ifTrue:[ ^ 'G']. t2 = 8 ifTrue:[ ^ 'G#']. t2 = 9 ifTrue:[ ^ 'A']. t2 = 10 ifTrue:[ ^ 'A#']. t2 = 11 ifTrue:[ ^ 'B'].http://www.freewebs.com/polyeztahpuppie … eflats.gif
(That's a flat, not a letter b)Code:
('note %N as note, bs' #r #AsNoteFlats:) AsNoteFlats: t1 | t2 | t2 _ t1 abs. [t2 < 12] whileFalse:[ t2 _ t2 - 12]. t2 = 0 ifTrue:[ ^ 'C']. t2 = 1 ifTrue:[ ^ 'Db']. t2 = 2 ifTrue:[ ^ 'D']. t2 = 3 ifTrue:[ ^ 'Eb']. t2 = 4 ifTrue:[ ^ 'E']. t2 = 5 ifTrue:[ ^ 'F']. t2 = 6 ifTrue:[ ^ 'Gb']. t2 = 7 ifTrue:[ ^ 'G']. t2 = 8 ifTrue:[ ^ 'Ab']. t2 = 9 ifTrue:[ ^ 'A']. t2 = 10 ifTrue:[ ^ 'Bb']. t2 = 11 ifTrue:[ ^ 'B'].
Replace the whiles with t1\\12 (t2 mod 12) which returns the remainder of t2/12. If t1 is huge, Squeak will temporarily freeze. Oh, and you may want to replace t2_t1 abs with t2_t1 abs rounded (just in case) and t1 ifNaN: [^self]. (again, just in case).
Offline
Hardmath123 wrote:
Greenatic wrote:
http://www.freewebs.com/polyeztahpuppie … sharps.gif
Code:
('note %N as note, #s' #r #AsNoteSharps:) AsNoteSharps: t1 | t2 | t2 _ t1 abs. [t2 < 12] whileFalse:[ t2 _ t2 - 12]. t2 = 0 ifTrue:[ ^ 'C']. t2 = 1 ifTrue:[ ^ 'C#']. t2 = 2 ifTrue:[ ^ 'D']. t2 = 3 ifTrue:[ ^ 'D#']. t2 = 4 ifTrue:[ ^ 'E']. t2 = 5 ifTrue:[ ^ 'F']. t2 = 6 ifTrue:[ ^ 'F#']. t2 = 7 ifTrue:[ ^ 'G']. t2 = 8 ifTrue:[ ^ 'G#']. t2 = 9 ifTrue:[ ^ 'A']. t2 = 10 ifTrue:[ ^ 'A#']. t2 = 11 ifTrue:[ ^ 'B'].http://www.freewebs.com/polyeztahpuppie … eflats.gif
(That's a flat, not a letter b)Code:
('note %N as note, bs' #r #AsNoteFlats:) AsNoteFlats: t1 | t2 | t2 _ t1 abs. [t2 < 12] whileFalse:[ t2 _ t2 - 12]. t2 = 0 ifTrue:[ ^ 'C']. t2 = 1 ifTrue:[ ^ 'Db']. t2 = 2 ifTrue:[ ^ 'D']. t2 = 3 ifTrue:[ ^ 'Eb']. t2 = 4 ifTrue:[ ^ 'E']. t2 = 5 ifTrue:[ ^ 'F']. t2 = 6 ifTrue:[ ^ 'Gb']. t2 = 7 ifTrue:[ ^ 'G']. t2 = 8 ifTrue:[ ^ 'Ab']. t2 = 9 ifTrue:[ ^ 'A']. t2 = 10 ifTrue:[ ^ 'Bb']. t2 = 11 ifTrue:[ ^ 'B'].Replace the whiles with t1\\12 (t2 mod 12) which returns the remainder of t2/12. If t1 is huge, Squeak will temporarily freeze. Oh, and you may want to replace t2_t1 abs with t2_t1 abs rounded (just in case) and t1 ifNaN: [^self]. (again, just in case).
Good ideas! I'll add t1 isInf too.
EDIT: Original post has been edited with the new code.
Last edited by Greenatic (2011-10-11 22:07:03)
Offline
maybe put #s and bs in a dropdown?
Offline
Also for panther, I'm officially requesting a "Delete background $Number$" and a "Delete costume $Number$" block to go with it. Also is there an import image from file block yet? (weebly blocked so cant check easily)
Offline
yes, it is number 51 I think.
Offline
LiquidMetal wrote:
maybe put #s and bs in a dropdown?
A dropdown for two values? Really?
Offline
LiquidMetal wrote:
Also for panther, I'm officially requesting a "Delete background $Number$" and a "Delete costume $Number$" block to go with it. Also is there an import image from file block yet? (weebly blocked so cant check easily)
I thought you were sparks because of the signature.
Offline
Greenatic wrote:
LiquidMetal wrote:
maybe put #s and bs in a dropdown?
A dropdown for two values? Really?
Yes!! Much better then all these extra blocks.
Offline
Hardmath123 wrote:
LiquidMetal wrote:
Also for panther, I'm officially requesting a "Delete background $Number$" and a "Delete costume $Number$" block to go with it. Also is there an import image from file block yet? (weebly blocked so cant check easily)
I thought you were sparks because of the signature.
Doesn't Sparks use the image with "New" in the first image? Anyway, we are not the only two with that type of signature. It can be found on some page in sparks's api thread. (if it is still there, have not checked in a while)
Offline
BYOB blocks:
Forever when % is true:
Forever when % is false:
Last edited by SJRCS_011 (2011-10-16 13:28:45)
Offline
SJRCS_011 wrote:
BYOB blocks:
Forever when % is true:
http://farm7.static.flickr.com/6225/625 … b8eb_m.jpg
http://farm7.static.flickr.com/6093/625 … e7df_m.jpg
Forever when % is false:
http://farm7.static.flickr.com/6103/625 … 37e5_m.jpg
http://farm7.static.flickr.com/6045/625 … 12e7_m.jpg
kinda already have that in scratch.
Offline
YourLocalBlockLib wrote:
The Block Library Is Currently Broken; DO NOT PANIC! We Are Sorting Out The Problem That Weebly Is Currently Filtered By Scratch
Is google sites also filtered?
Last edited by zippynk (2011-10-17 11:41:53)
Offline