Forum Replies Created
-
AuthorPosts
-
Yep, wordpress is pretty impressive these days!
Welcome!
Gone now.
Don’t think I like that ‘popup’ toolbar though.
Thanks Skid!
I’ve managed to avoid ANY web coding so far – wordpress is pretty damned cool.
(Like the monkey labs name too…might pinch it).
Monkey1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889#Import "<mojo.monkey2>"Using stdUsing mojoUsing mojo2Using std.fiberClass RainbowCycler Extends Generator<Color>Method New( speed:Float,loops:Int=1 )Start( Lambda()For Local i:=0 Until loopsFor Local h:=0.0 Until 1.0 Step speedYield( Color.FromHSV( h,1,1 ) )NextNextEnd )EndEndClass MyWindow Extends WindowMethod New()Super.New( "My Window",0,0,640,480,WindowFlags.Center )Destroyed=App.TerminateStartFiber( CycleClearColor )Local button:=New Button( "Click me!" )button.Layout="float"AddView( button )'Ok, make button 'drop in'!StartFiber( Lambda()Local y:=0.0RepeatLocal dy:=.75-yIf Abs( dy )<.001 Return 'near enough...y+=dy*.05button.Gravity=New Vec2f( 0.5,y )App.WaitIdle()ForeverEnd )EndMethod CycleClearColor()RepeatLocal cycler:=New RainbowCycler( .01 )While cycler.HasNextClearColor=cycler.GetNext()App.WaitIdle()WendForeverEndMethod OnRender( canvas:Canvas ) OverrideApp.RequestRender()EndEndFunction Main()New AppInstanceNew MyWindowApp.Run()EndOkay, that turned out to be easy!
A HUGE shout out to ‘Devolonter’ for at some point adding monkey syntax highlighting to Crayon…not quite monkey2, but close!
Wordpress + bbPress + bbpStylePack + Crayon + CleanTalk + FirmaSite FTW!!!!!
-
AuthorPosts