Platforms to show: All Mac Windows Linux Cross-Platform

/Util/Resplugin Examples/Rainbow


Required plugins for this example: MBS Util Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/Resplugin Examples/Rainbow

This example is the version from Sun, 17th Mar 2012.

Project "Rainbow.xojo_binary_project"
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
EventHandler Sub Close() timer = Nil if dis<>nil then dis.FadeGammaTo(1000, RGB(0, 0, 0), 200) end if End EventHandler
EventHandler Sub Open() if not ResolutionLibraryPresentMBS then msgBox "The library RezLib was not found. Please place this library into the Realbasic or after compiling into your application folder." end if dis = GetDisplayMBS(0) hue = 0 if dis<>Nil then timer = New OurTimer timer.Period = 2 timer.Mode = 2 dis.FadeGammaTo(500, HSV(App.hue, 1, 1), 200) end if End EventHandler
Property dis As DisplayMBS
Property hue As Double
Property timer As Timer
End Class
Class OurTimer Inherits Timer
EventHandler Sub Action() App.hue = App.hue + 0.002 If App.hue > 1 Then App.hue = App.hue - 1 End If App.dis.FadeGamma(500, HSV(App.hue, 1, 1)) End EventHandler
End Class
End Project

See also:

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...