Assets 3

Updated for Xojo 2018r3 and dark mode

Added 3 new methods:

  • IsDarkMode: A simple wrapper for REALbasic.IsDarkMode when available (2018r3 and newer) or returns False when not available (2018r2 and earlier)
  • ColorLuminance: Calculates the relative luminance of a color. Useful for calculating contrast between colors.
  • ColorIsBright: Uses brightness and luminance to determine if a color appears "light" on the screen.

@thommcgrath thommcgrath released this Jan 4, 2016 · 15 commits to master since this release

Assets 3

Minor feature release:

  • It is now possible to start or update an animation from the ArtisanKit.Control.AnimationStep event. Previously, if the animation was on the final step, a newly started animation would be stopped too. This essentially prevented looping animations.
  • Added Finished As Boolean parameter to ArtisanKit.Control.AnimationStep event. This will be true when the final step of an animation is being executed.
  • Added Ease As Boolean = True parameter to ArtisanKit.Control.StartAnimation method. Previously, all animations would use an 'ease-out' effect. Now, when Ease is false, the animation will run at a steady pace.