Hammerspoon seal example8/13/2023 ![]() Maybe this will simplify life of hammerspoon maintainers? □ Spoons will be created by community only, so you don't need to maintain the /spoons repository anymore. This model works well with graphical elements that are expected to be managed individually and don't have complex clipping. With github releases it's possbile to check if there is a new version of the spoon. hs.canvas - A different approach to drawing in Hammerspoon- hs.drawing approaches graphical images as independent primitives, each 'shape' being a separate drawing object based on the core primitives: ellipse, rectangle, point, line, text, etc. ![]() Contents Clipping Example adding a canvas transformation Bezier Curve Example adding a element rotation adding mouse enter and exit Gradients and Composite Rules Segments and Points. Each new version can be simply downloaded from the releases page of the repository. Examples Using the hs.canvas Module This document provides some examples which highlight graphical elements possible with this module. With a simple gh-action it's possible to setup automated releases. Gives visibility of which spoons are popular by being able to star a repo. ![]() Readme in markdown: screenshots, video, code examples, etc. To put each spoon in it's own repository. But most of the spoons provides some kind of visual changes, like menubar apps, window management, notifications, and screenshots would be the great addition to the description of the spoon. I guess it's not possible with lua docs to add screenshots. I believe that this way is perfect for libraries or utility functions. Instead of showing how to use the spoons, the spoon page is giving a documentation about the internals of the spoon, like methods and variables ( example). What I think is missing in the current way of sharing spoons using a mono repo : I would like to propose an alternative way of sharing spoons. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |