Lively Kernel canvas
0.1
60
149.33087280751496
-2.694671058465035
null
null
null
Unbordered
20
null
3
false
null
null
<---Don'tbotherwiththiscontrol
0
true
null
1
null
null
null
BigText
20
null
null
null
null
null
null
stickmetothestar
1.538458587231121
0.9946305365331853
0
true
1
null
null
andifyoufeellikeit...
-1.5384585892019127
1.0053984404006187
22
true
24
null
null
Grabme
1
false
null
1
null
null
null
false
null
null
SoyouknowJavaScript,eh?Thentakenoteofthedo-itandprint-itcommandsabove.Selectthisexpressionandtypealt-p...355/113Notabadapproximationtopi,huh?Now,ifyoudon'tcareaboutthispageanymore,selectthenextsetoflinesandtypealt-d.Funtimesahead(thisisawebpage?)...WorldMorph.current().submorphs.forEach(function(m){m.velocity=pt(20,20).random();m.angularVelocity=0.1*Math.random();m.startStepping(100,"stepAndBounce");});
3
null
true
false
96
true
null
97
null
null
true
false
null
false
null
1
true
false
true
false
null
false
null
false
null
false
Advanced
null
false
null
false
false
false
null
false
false
null
null
null
null
false
null
Backtothemainpage
4
false
null
1
null
null
false
null
GeneralcharacteristicsTextistheonekindofsimpleobjectthatisnotsosimple.Inadditiontofill,border,andborderwidth,textMorphsalsohaveadefaulttextcolor,fontfamilyandsize.Mostoftheparameterscanbesetfromthestylepanel,butsomeotherscanonlybesetbyevaluatingprogrammaticexpressions.GrabbingAslightinconveneinecewithlivetextobjectsisthatclickingthemouseonthemmeanstomakeaselection,soitishardtograbthemwiththehand.Herearethethreesure-firewaystopickupapieceoftext:1.Grabitbythenarrowmarginbetweenitstoporleftedgesanditsborder?Can'tseethetoporleftedges?Clicktwiceatthebeginningofthetext--thiswillselectallthetext,andthetopandleftedgesoftheselectionrevealthetopandleftedgesofthetext.Can'tseetheborder?You'llhavetomakethebordervisiblewiththestylepanel,ortryanotherway...2.Usethetext'smorphmenutoselect'grab'.3.Drawoutaselectionintheworldthatincludestheboundsofthetext,afterwhichyoucandragorcopytheselection.SelectingSelectingintheLivelyeditorissimilartomostothersystems,exceptfordouble-clicking...*Double-clickingisindependentoftiming.Youjustclicktwiceinthesamespot.*Double-clickinginsideawordwillselectaword*adddetailhereaboutwhichcharactersareincludedandhow*coulddobetterwithperiod*Double-clickingnexttoabracketcharacterwillselectuptothematchingbracket*thisincludes![..],{..},(..),<..>,andeven/*..*/*Doubleclickingatthebeginningortheendofthetextselectstheentiretext*DoubleclickingatthebeginningortheendofalineselectstheentirelineCommandkeysTheeditingcommandsalluseacommand-keymodifiersuchastheApplekeyorthealtkey.*a--selectAll.Firstuseselectswhatyoumayhavejusttyped.Seconduseselectsentiretext.*x--Cut.Cuttheselectedtextandcopyittotheclipboard.*c--Copy.Copytheselectedtexttotheclipboard*v--Paste.Pastetheclipboardcontentstothecurrentselection*m--More.Repeatthelastreplacement.Inotherwordssearchforwardforthenextpossiblesimilarreplacementandperformit.Thisisagreattime-saverbecauseyoudon'thavetoplanaheadformultiplereplacements.*e--Exchange.Exchangethecurrentselectionwiththepreviousselection.Anothergreattime-saver,especiallyinconjunctionwithdouble-clickselection.*f--Find.Promptsforsometextandthensearchesforthefirstoccurrenceinthetextfollowingthecurrentselection.*g--aGain.Searchforwardforthenextoccurrenceoftheprevioussearchstring*w--Where.Whensourcecodeisonline,thiswillsearchtheentirecodebaseforstringsmatchingthecurrentselection,andopenachangeListbrowseronallpatchescontainingthatstring.*d--Do-it.EvaluatethecurrentselectionasJavaScript.*p--Print-it.EvaluatethecurrentselectionasJavaScriptandprinttheresultfollowingtheselection.*s--Save.Savethecontentsofthistextpane.Thismaymeandifferentthingsindifferentplaces.Theseemphasiscommandsturntheirattributeonoroffdependingonthefirstcharacteroftheselection*b--Bold.Maketheentireselectionboldornotbold*i--Italic.MaketheentireselectionitalicornotitalicThefontsizecommandsarerelativetothefontSizesetforthetextMorphasawhole.[rknotes:thesepreventcurly/squarebracketsongermankeyboards]*4--fontSize*0.8*5--fontSize*1.0*6--fontSize*1.2*7--fontSize*1.5*8--fontSize*2.0Textalignmentcommands*l--Leftflush*r--Rightflush*j--Justify,ie,alignflushwithleftandrightmargins*h--Halfway,ie,centerthistextOthercommands*u--URL.Associatealinkwiththistext(andcoloritblue)*o--Givetheselectionsomelocalcolor*z--Undothepreviouschangetothebestofourability
, and even /*..*/\n * Double clicking at the beginning or the end of the text selects the entire text\n * Double clicking at the beginning or the end of a line selects the entire line\n\nCommand keys\rThe editing commands all use a command-key modifier such as the Apple key or the alt key.\n * a -- select All. First use selects what you may have just typed. Second use selects entire text.\n * x -- Cut. Cut the selected text and copy it to the clipboard.\n * c -- Copy. Copy the selected text to the clipboard\n * v -- Paste. Paste the clipboard contents to the current selection\n * m -- More. Repeat the last replacement. In other words search forward for the next possible similar replacement and perform it. This is a great time-saver because you don't have to plan ahead for multiple replacements.\n * e -- Exchange. Exchange the current selection with the previous selection. Another great time-saver, especially in conjunction with double-click selection.\n * f -- Find. Prompts for some text and then searches for the first occurrence in the text following the current selection.\n * g -- aGain. Search forward for the next occurrence of the previous search string\n * w -- Where. When source code is online, this will search the entire code base for strings matching the current selection, and open a changeList browser on all patches containing that string.\n * d -- Do-it. Evaluate the current selection as JavaScript.\n * p -- Print-it. Evaluate the current selection as JavaScript and print the result following the selection.\n * s -- Save. Save the contents of this text pane. This may mean different things in different places.\n \nThese emphasis commands turn their attribute on or off depending on the first character of the selection\n * b -- Bold. Make the entire selection bold or not bold\n * i -- Italic. Make the entire selection italic or not italic\n\t \nThe font size commands are relative to the fontSize set for the textMorph as a whole.\n[rk notes: these prevent curly/square brackets on german keyboards]\n * 4 -- fontSize * 0.8\n * 5-- fontSize * 1.0\n * 6 -- fontSize * 1.2\n * 7 -- fontSize * 1.5\n * 8 -- fontSize * 2.0\n\t \nText alignment commands\n * l -- Left flush\n * r -- Right flush\n * j -- Justify, ie, align flush with left and right margins\n * h -- Halfway, ie, center this text\n\nOther commands\n * u -- URL. Associate a link with this text (and color it blue)\n * o -- Give the selection some local color\n * z -- Undo the previous change to the best of our ability\n\n"]]>
79
true
false
3021
true
null
3022
, and even /*..*/\n * Double clicking at the beginning or the end of the text selects the entire text\n * Double clicking at the beginning or the end of a line selects the entire line\n\nCommand keys\rThe editing commands all use a command-key modifier such as the Apple key or the alt key.\n * a -- select All. First use selects what you may have just typed. Second use selects entire text.\n * x -- Cut. Cut the selected text and copy it to the clipboard.\n * c -- Copy. Copy the selected text to the clipboard\n * v -- Paste. Paste the clipboard contents to the current selection\n * m -- More. Repeat the last replacement. In other words search forward for the next possible similar replacement and perform it. This is a great time-saver because you don't have to plan ahead for multiple replacements.\n * e -- Exchange. Exchange the current selection with the previous selection. Another great time-saver, especially in conjunction with double-click selection.\n * f -- Find. Prompts for some text and then searches for the first occurrence in the text following the current selection.\n * g -- aGain. Search forward for the next occurrence of the previous search string\n * w -- Where. When source code is online, this will search the entire code base for strings matching the current selection, and open a changeList browser on all patches containing that string.\n * d -- Do-it. Evaluate the current selection as JavaScript.\n * p -- Print it. Evaluate the current selection as JavaScript and print the result following the selection.\n * s -- Save. Save the contents of this text pane. This may mean different things in different places.\n \nThese emphasis commands turn their attribute on or off depending on the first character of the selection\n * b -- Bold. Make the entire selection bold or not bold\n * i -- Italic. Make the entire selection italic or not italic\n\t \nThe font size commands are relative to the fontSize set for the textMorph as a whole.\n[rk notes: these prevent curly/square brackets on german keyboards]\n * 4 -- fontSize * 0.8\n * 5-- fontSize * 1.0\n * 6 -- fontSize * 1.2\n * 7 -- fontSize * 1.5\n * 8 -- fontSize * 2.0\n\t \nText alignment commands\n * l -- Left flush\n * r -- Right flush\n * j -- Justify, ie, align flush with left and right margins\n * h -- Halfway, ie, center this text\n\nOther commands\n * u -- URL. Associate a link with this text (and color it blue)\n * o -- Give the selection some local color\n * z -- Undo the previous change to the best of our ability\n\n"]]>
null
true
false
false
1
true
false
null
true
false
null
false
null
false
null
false
TextintheLivelyKernel
null
false
null
false
false
false
null
false
false
null
null
null
null
false
null
1229075412618
272274
1
23
null
1229075412
null