Show a fading-and-zooming image in the center of the screen
By default the Hammerspoon logo is shown. Typical use is to show it as an indicator when your configuration finishes loading, by adding the following to the bottom of your ~/.hammerspoon/init.lua
file:
hs.loadSpoon('FadeLogo'):start()
Which looks like this: http://imgur.com/a/TbZOl
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/FadeLogo.spoon.zip
Signature | FadeLogo.fade_in_time |
---|---|
Type | Variable |
Description | Number of seconds over which to fade in the image. Defaults to 0.3. |
Source | Source/FadeLogo.spoon/init.lua line 48 |
Signature | FadeLogo.fade_out_time |
---|---|
Type | Variable |
Description | Number of seconds over which to fade out the image. Defaults to 0.5. |
Source | Source/FadeLogo.spoon/init.lua line 53 |
Signature | FadeLogo.image |
---|---|
Type | Variable |
Description | Image to display. Must be an |
Source | Source/FadeLogo.spoon/init.lua line 28 |
Signature | FadeLogo.image_alpha |
---|---|
Type | Variable |
Description | Initial transparency of the image. Defaults to 1.0. |
Source | Source/FadeLogo.spoon/init.lua line 38 |
Signature | FadeLogo.image_size |
---|---|
Type | Variable |
Description |
|
Source | Source/FadeLogo.spoon/init.lua line 33 |
Signature | FadeLogo.logger |
---|---|
Type | Variable |
Description | Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon. |
Source | Source/FadeLogo.spoon/init.lua line 23 |
Signature | FadeLogo.run_time |
---|---|
Type | Variable |
Description | Number of seconds to leave the image on the screen when |
Source | Source/FadeLogo.spoon/init.lua line 58 |
Signature | FadeLogo.zoom |
---|---|
Type | Variable |
Description | Do zoom-and-fade if |
Source | Source/FadeLogo.spoon/init.lua line 43 |
Signature | FadeLogo.zoom_scale_factor |
---|---|
Type | Variable |
Description | Factor by which to scale the image at every iteration during the zoom-and-fade. Defaults to 1.1. |
Source | Source/FadeLogo.spoon/init.lua line 63 |
Signature | FadeLogo.zoom_scale_timer |
---|---|
Type | Variable |
Description | Seconds between the zooming iterations |
Source | Source/FadeLogo.spoon/init.lua line 68 |
Signature | FadeLogo:delete() |
---|---|
Type | Method |
Description | Hide and delete the canvas |
Parameters |
|
Returns | |
Source | Source/FadeLogo.spoon/init.lua line 78 |
Signature | FadeLogo:hide() |
---|---|
Type | Method |
Description | Hide the image without zoom, fading it out over |
Parameters |
|
Returns | |
Source | Source/FadeLogo.spoon/init.lua line 115 |
Signature | FadeLogo:show() |
---|---|
Type | Method |
Description | Display the image, fading it in over |
Parameters |
|
Returns | |
Source | Source/FadeLogo.spoon/init.lua line 90 |
Signature | FadeLogo:start() |
---|---|
Type | Method |
Description | Show the image, wait |
Parameters |
|
Returns | |
Source | Source/FadeLogo.spoon/init.lua line 151 |
Signature | FadeLogo:zoom_and_fade() |
---|---|
Type | Method |
Description | Zoom-and-fade the image over |
Parameters |
|
Returns | |
Source | Source/FadeLogo.spoon/init.lua line 125 |