Platforms to show: All Mac Windows Linux Cross-Platform

/Util/Resplugin Examples/Color Fading


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/Color Fading

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

Project "Color Fading.xojo_binary_project"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control r1 Inherits TextField
ControlInstance r1 Inherits TextField
End Control
Control g1 Inherits TextField
ControlInstance g1 Inherits TextField
End Control
Control b1 Inherits TextField
ControlInstance b1 Inherits TextField
End Control
Control r2 Inherits TextField
ControlInstance r2 Inherits TextField
End Control
Control g2 Inherits TextField
ControlInstance g2 Inherits TextField
End Control
Control b2 Inherits TextField
ControlInstance b2 Inherits TextField
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() dis.FadeGammaTo(0, RGB(Val(r1.Text), Val(g1.Text), Val(b1.Text)), 500) dis.FadeGammaTo(0, RGB(Val(r2.Text), Val(g2.Text), Val(b2.Text)), 2000) dis.FadeGammaTo(1000, RGB(0, 0, 0), 500) End EventHandler
End Control
EventHandler Sub Close() dis = nil 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) End EventHandler
Property dis As DisplayMBS
End Class
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
End Class
End Project

See also:

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


The biggest plugin in space...